I am using an Amazon Linux distribution (a recent one). I'm trying to install munin in the local node (just one node, both node and master). So I tried:
$ sudo yum install munin munin-node httpd mod_fcgid
Then I edited /etc/munin/munin.conf:
# cgi on demand
html_strategy cgi
graph_strategy cgi
Then I activated the service:
$ sudo chkconfig munin-node on
I checked the version:
$ munin-node-configure --version
Version:
This is munin-node-configure (munin-node) v2.0.20.
[... more text here ...]
I ensured the munin.conf had the ScriptAlias directive:
<directory /var/www/html/munin>
AuthUserFile /etc/munin/munin-htpasswd
AuthName "Munin"
AuthType Basic
require valid-user
ExpiresActive On
ExpiresDefault M310
</directory>
ScriptAlias /munin-cgi/munin-cgi-graph /var/www/cgi-bin/munin-cgi-graph
I ensured the password is set to a good password:
$ sudo htpasswd -c /etc/munin/munin-htpasswd MyUser
#stdin < my password
Then I restarted the service:
$ sudo /etc/init.d/munin restart
And my httpd:
$ sudo /etc/init.d/httpd restart
But hitting /munin-cgi/munin-cgi-graph raises a 404. But this 404 is not an Apache-like 404, but a totally empty 404 error, with no content at all, as if it was given by the cgi script. The httpd error_log shows nothing.
What should I check? What's my problem?