nagios.cmd command file missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
luniversity
Posts: 56
Joined: Mon Dec 10, 2012 9:39 am

nagios.cmd command file missing

Post by luniversity »

I'm running NagiosXI 2012R1.2 on a RHEL 6 vm. Last week I configured a host for "scheduled downtime" which worked as expected, I received notifications when it started and when it ended. This week I'm unable to schedule downtime for any host. When I try I get the following:
Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for processing.
I looked on my XI server and sure enough, there are no files under /usr/local/nagios/var/rw/. But I'm not sure what happened here or exactly what I need to do to fix it. Any suggestions would be greatly appreciated.
Mike Westmoreland
Lamar University
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios.cmd command file missing

Post by lmiltchev »

Is nagios running? Try:

Code: Select all

service nagios start
or

Code: Select all

service nagios restart
then check if the file is in the directory:

Code: Select all

ls /usr/local/nagios/var/rw/
Be sure to check out our Knowledgebase for helpful articles and solutions!
luniversity
Posts: 56
Joined: Mon Dec 10, 2012 9:39 am

Re: nagios.cmd command file missing

Post by luniversity »

Yep. The service was running but restarting the service resolved the issue. Thanks for your help.
Mike Westmoreland
Lamar University
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios.cmd command file missing

Post by lmiltchev »

You are welcome!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked