Have a problem with Nagios and Apache I am unable to go to pages using nagios/cgi-bin.
I got the error message "Error: Could not read object configuration data !.
when I look in the access log for Apache I can see double / it looks strange to me.
“GET /nagios/cgi-bin//tac.cgi” shuld it be // there ?
Nagios is working fine but not with Apache.
Someone that had this problem before ?
no, the // shouldn’t be there;
the source is likely to come from your httpd.conf config file for apache.
You should check it (to narrow your problem, open it, and search for the word ScriptAlias; check these lines and those below).
Make sure there are no //.
“/var/www/cgi-bin” should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured.
#<Directory “/var/www/cgi-bin”>
# AllowOverride None
#** Options None
#** Order allow,deny
#** Allow from all
#**
ScriptAlias /nagios/cgi-bin/ “/usr/lib/nagios/cgi-bin/”
<Directory /usr/lib/nagios/cgi-bin/>
Options ExecCGI
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
AuthName "nagios"
require valid-user
Alias /nagios /usr/share/nagios/html
<Directory /usr/share/nagios/html>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
AuthName "nagios"
require valid-user
Ups; sorry… i didn’t read carefully your first question and jumped a bit too quickly on the // problem.
In fact, your problem may just come from an error in your nagios config files. You should check them using the:
nagios-dir/bin/nagios -v /nagios-dir/etc/nagios.cfg
command
It will tell you what the problem is, if there is one.