Nagios – Error “Error: Could not open command file ‘/var/spool/nagios/rw/nagios.cmd’ for update”

nagios-logo


After an upgrade of Nagios, Nagios re-schedule function for next service check is not working. The Nagios web interface complained “Error: Could not open command file ‘/var/spool/nagios/rw/nagios.cmd’ for update“. Its problem lies on the webserver was unable to access the file to update the schedule.


Change the ownership of the file to the webserver so that the webserver is able to update the schedule.

e.g.

chown httpd:httpd /var/spool/nagios/rw/nagios.cmd


To determine the owner of the webserver, use the following command to find out :

e.g.

ps aux | grep -i httpd


Hasta la vista !!!

More post - related

Please sponsor my coffee if you find my posts worth reading, thanks!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
-->
Improve the web with Nofollow Reciprocity.