Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-24 Thread Marc Powell
On Dec 24, 2008, at 1:40 AM, Rahul Nabar wrote: On Wed, Dec 24, 2008 at 1:14 AM, Ian Masters i...@acces.co.jp wrote: Have you Googled and checked the list archives? I answered this same question earlier this month. Oh! I'll google on the Nagios list. I missed out on this one. Sorry. Make

Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-24 Thread Rahul Nabar
On Wed, Dec 24, 2008 at 8:41 AM, Marc Powell m...@ena.com wrote: list. I missed out on this one. Sorry. Make sure you've followed the Documentation on enabling External Commands. The CGI's use that functionality to send commands to nagios. It's disabled by default. I must be missing out on

Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-24 Thread Marc Powell
On Dec 24, 2008, at 9:40 AM, Rahul Nabar wrote: I must be missing out on something very basic. Here's what I have confirmed in my nagios.cfg : check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd Make sure you've restarted nagios after

Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-24 Thread Rahul Nabar
On Wed, Dec 24, 2008 at 9:51 AM, Marc Powell m...@ena.com wrote: Make sure you've restarted nagios after adding these. Also check for errors in nagios.log. Works! Thanks Marc. I am not sure what it was. But earlier I was doing a /etc/init.d nagios reload Now I tried a restart. Perfect!

[Nagios-users] nagios error: Could not stat() command file

2008-12-23 Thread Rahul Nabar
When I try to access many of the sub-menu options under nagios (eg. deactivate the service etc.) I get the following error: 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

Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-23 Thread Ian Masters
Rahul Nabar wrote: When I try to access many of the sub-menu options under nagios (eg. deactivate the service etc.) I get the following error: 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,

Re: [Nagios-users] nagios error: Could not stat() command file

2008-12-23 Thread Rahul Nabar
On Wed, Dec 24, 2008 at 1:14 AM, Ian Masters i...@acces.co.jp wrote: Have you Googled and checked the list archives? I answered this same question earlier this month. Oh! I'll google on the Nagios list. I missed out on this one. Sorry. -- Rahul