LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nagios notifications for a host problem (https://www.linuxquestions.org/questions/linux-software-2/nagios-notifications-for-a-host-problem-678208/)

cmx08 10-21-2008 11:08 PM

Nagios notifications for a host problem
 
Hi All

I have install the Nagios monitor tool. I can run the Nagios properly without any problem but when I try to use the Nagios web interface to schedule a host for downtime (disable notifications for a host) I get the following error:

Code:

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 already check all the .cfg file and didn't see any problem there. Is anybody can give me the solution to fix this problem?

Thx.

Babs 07-20-2011 07:35 AM

Nagios issue
 
do chkconfig --list to check if nagios services has started. Depending on Linux
distribution
Ref Centos
run the following command.
chkconfig nagios on
service nagios start or /etc/init.d/nagios start

Use the command below to check exactly what is causing the problem for you this must be done on your nagios server and you might need to change the path to suit your environment. if you using CentOS or RedHat this will work depnding on how you install Nagios on the box though.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


All times are GMT -5. The time now is 02:27 PM.