Error in Nagios log

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Error in Nagios log

Post by devilsguest »

What happens if I see an error in Nagios.log. This is what the error is saying
No such file or directory: Could not open password file: /usr/local/etc/nagios/htpasswd.users
.Do you think it's just the same error in apache that is sending to nagios.log after a little config changes?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error in Nagios log

Post by abrist »

Have you created the file yet?

Code: Select all

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
ls -l /usr/local/nagios/etc/htpasswd.users
Make it available for the user who runs httpd.

Code: Select all

chmod o+r /usr/local/nagios/etc/htpasswd.users
Restart the httpd service.

Code: Select all

service httpd restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked