Installing munin & configuring apache.

Do you really need cgi? I assume you have the basic static site up and running now?


Yes another CGI example.
Try the most basic first.

graph_strategy cron
html_strategy cron

Then move to bling.
I use fcron instead of cron. But that should not be the problem. I see maybe i missed copying some .sample files to there non-sample versions.
 
One babystep further
Code:
/usr/local/bin/munin-cron --debug
Creates a lot of rrd files in :
Code:
/var/munin/ap-ports-job-04/
No somehow these rrd files must be converted to some visible html/images.
I seem to have:
Code:
/usr/local/www/munin/ap-ports-job-04/ap-ports-job-04/smart_ada1-week.png
 
After some last tweaking everything works fine now. I post the httpd.conf file which is quite simple.
Code:
#Apache Cron Configuration , Virtualhost configuration
<VirtualHost 127.0.0.1:13000>
    ServerName 127.0.0.1
    ServerAlias localhost
    ServerAdmin  devosalain@ymail.com
    DocumentRoot /var/www
    Alias /munin/static/ /usr/local/etc/munin/static/
    <Directory           /usr/local/etc/munin/static/>
        Require all granted
        Options Indexes MultiViews
    </Directory>
    Alias /munin    /usr/local/www/munin/
    <Directory      /usr/local/www/munin>
        Require all granted
        Options Indexes MultiViews
    </Directory>
    CustomLog /var/log/apache2/munin.example.org-access.log combined
    ErrorLog  /var/log/apache2/munin.example.org-error.log
</VirtualHost>

Relevant lines in munin.conf:
Code:
graph_strategy cron
html_strategy cron

To fcron-tab i added the line:
Code:
@first(120s)    300s                                /usr/local/bin/munin-cron                     -u munin

Thanks Phishry for guiding in the good direction.
 
Back
Top