Friday, 29 October 2010

Nagios Gotchas

So, youve just set up nagios. youve followed these links:

http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
and
http://nagios.sourceforge.net/docs/2_0/commandfile.html

but youre still getting this error!?! Logfile looks good

It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."

well theres nothing like doing what da man says. Did you perhaps not set nagiosadmin as the user in htpasswd.users ? because if you didnt, nagios wont let you view any pages like hosts/etc. so what do you do? you need to either a:

vi path/to/nagios/etc/cgi.cfg

and change the authenticated user from nagiosadmin to $username
or

htpasswd -c /path/to/nagios/etc/htpasswd.users nagiosadmin (type password)

Im kinda surprised this has been hard-coded.

if this has helped you, please leave a comment - i love feedback and i promise to post more often if i do :)

No comments:

Post a Comment