From: Lonni J F. <net...@gm...> - 2012-09-30 22:45:28
|
Doesn't look like anyone else replied here, so I'll chime in. I've got a fairly large munin server (monitoring about 550 nodes, a mix of Linux, Darwin & Windows). Its been running 1.4.x for ages, with tons of horrific hacks to keep it from flying apart under the load. I just spent over an hour fighting with this stuff on Fedora16, in preparation for an upcoming upgrade to 2.x. Fedora16+ actually now ships munin-2.x RPMs from their official yum repo. You'd think this meant that it should all just work(tm) out of the box, but no. The number of hacks needed to get this working was horrible. I've filed a bug with RH/Fedora to hopefully address a lot of this: https://bugzilla.redhat.com/show_bug.cgi?id=861816 The way I debugged all of this was to keep checking assorted logs. First it was the apache error log, as /var/log/munin wasn't recording anything. Once I fixed all of the apache errors, then I looked at the assorted /var/log/munin/munin-cgi*.log's. The vast majority of the problems were missing directories and/or incorrect ownership/permissions. Have you looked at the logs to see what might be going wrong? One oddity that I just noticed is that /var/log/munin-cgi-html.log still isn't logging anything. But I'm also not entirely clear what sort of html content is supposed to get generated by cgi either. On Thu, Sep 27, 2012 at 12:20 PM, Aaron St. Pierre <as...@p0...> wrote: > Hello, > > I've followed the instructions here to a tee: > > http://munin-monitoring.org/wiki/CgiHowto2 > > and I can't seem to get it to work. > > I'm running on centos 6.3 and I can get things to work with cron just not > cgi. I just upgraded to 2.0.6 and things seemed find until I went to my > graphs and the dynazoom was failing. It was at that point I tried > configuring things to use cgi essentially so I could just follow the example > outright. > > Could you point me in the right direction? > > For now I'm going to have to go back to cron generation but then the zooming > fails. > > Thanks, > > Here are my configuration files: > > apache: > > # Rewrites > RewriteEngine On > > # HTML > RewriteCond %{REQUEST_URI} !^/static > RewriteCond %{REQUEST_URI} .html$ [or] > RewriteCond %{REQUEST_URI} =/ > RewriteRule ^/(.*) /usr/lib/cgi-bin/munin-cgi-html/$1 [L] > > # Images > > # - remove path to munin-cgi-graph, if present > RewriteRule ^/munin-cgi/munin-cgi-graph/(.*) /$1 > > RewriteCond %{REQUEST_URI} !^/static > RewriteCond %{REQUEST_URI} .png$ > RewriteRule ^/(.*) /usr/lib/cgi-bin/munin-cgi-graph/$1 [L] > > # Ensure we can run (fast)cgi scripts > ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/cgi-bin/munin-cgi-graph > <Location /munin-cgi/munin-cgi-graph> > Options +ExecCGI > <IfModule mod_fcgid.c> > SetHandler fcgid-script > </IfModule> > <IfModule !mod_fcgid.c> > SetHandler cgi-script > </IfModule> > </Location> > > ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/cgi-bin/munin-cgi-html > <Location /munin-cgi/munin-cgi-html> > Options +ExecCGI > <IfModule mod_fcgid.c> > SetHandler fcgid-script > </IfModule> > <IfModule !mod_fcgid.c> > SetHandler cgi-script > </IfModule> > </Location> > > > </VirtualHost> > > munin > > dbdir /var/lib/munin > htmldir /var/www/stats.saintlysolutions.com > logdir /var/log/munin > rundir /var/run/munin > > tmpldir /etc/munin/templates > staticdir /etc/munin/static > > # cgitmpdir /var/lib/munin/cgi-tmp > > includedir /etc/munin/conf.d > > graph_period second > > graph_strategy cgi > > #munin_cgi_graph_jobs 6 > > #cgiurl_graph /cgi-bin/munin-cgi-graph > > #max_size_y 4000 > > html_strategy cron > > max_processes 16 > > #rrdcached_socket /var/run/rrdcached.sock > > <snipped out contacts> > > <snipped out node tree> > -- > > Aaron |