- Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
- Apache Address already in use: make_sock: could not bind to port 80 or 443 error
- Linux / Unix: Sed Substitute Multiple Patterns [ Find & Replace ]
- HowTo: Flush Contents Of a Memcached Server Using Command Line
- How to Find and Kill All Zombie Processes
If you’re updating nagios, and/or you are trying to reschedule checks manually, and you get the error below:
Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
Then it means that the permissions on the folder are messed up. Don’t bother setting up the permissions on the file itself, nagios.cmd, since that file gets recreated very often, so:
chown nagios.nagcmd /usr/local/nagios/var/rw chmod g+rwx /usr/local/nagios/var/rw chmod g+s /usr/local/nagios/var/rw
This should get you up and running without problems.