Page 1 of 1

Passive check testing doesn't work

Posted: Tue Jan 07, 2014 9:52 am
by vmesquita
We starting checking this after a few passive checks stopped being processed with no apparent cause. We did a tcpdump check and the packages were arriving ok.

So I tried to submit a manual result, via "Submit passive check result" option in XI interface. And I got this error:
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.
An error occurred while attempting to commit your command for processing.
I checked the folder and the file '/usr/local/nagios/var/rw/nagios.cmd' didn't exist. So Following advice found in other topics, I restarted nagios service after a while the passive checks are back working again. However the 'Submit passive check' option still gives the same message. How can I fix this?

Re: Passive check testing doesn't work

Posted: Tue Jan 07, 2014 9:56 am
by scottwilkerson
Was nagios running?

Code: Select all

service nagios status

Re: Passive check testing doesn't work

Posted: Tue Jan 07, 2014 12:20 pm
by vmesquita
I found the issue. While I was trying to fix the problem, I changed the permission of the folder "/usr/local/nagios/var/rw". Returning the permissions to the default ones fixed the issue. Thanks!