htpasswd -bc /etc/nagios/htpasswd.users nagios YOURPASSWORD
Of course, you can add as many users as you want. I was also thinking of making this completely open, but that isn't very secure.
Now you will see some errors, when you run the verification script. For my part I mostly had typos, and was confused with the templating of hosts, etc. This took me awhile to figure out.
Two folders needed to be created
-/var/log/nagios/*spool/checkresults*
-/var/log/nagios/*rw
Create a file under /var/log/nagios/rw called 'nagios.cmd'. Chmod it to 755.
Those two new subdirectories *MUST* be chown'd to nagios:nagios and all subitems:
chown -hR nagios:nagios /var/log/nagios/*
Now, I am getting errors on the web UI (the one that comes with Nagios-Core):
No comments:
Post a Comment