Failed to issue forced notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rks
Posts: 38
Joined: Sun Mar 31, 2013 4:08 pm

Failed to issue forced notification

Post by rks »

I am taking a host (the Nagios host itself) out of maintenance most and am trying to issue
a forced notification. When I do that, I get the error

Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!

(pl see screenshot attached).

Here is the listing of /usr/local/nagios/var/:

Code: Select all

[root@ctvmanager var]# ls -l
total 2208
drwxrwxr-x 2 nagios nagios    4096 Aug 22 00:00 archives
-rw-rw-r-- 1 root   nagios       0 Aug 22 16:03 host-perfdata
-rw-rw-r-- 1 nagios nagios  499991 Aug 22 16:03 nagios.debug
-rw-rw-r-- 1 nagios nagios 1000050 Aug 22 16:00 nagios.debug.old
-rw-r--r-- 1 nagios nagios       6 Aug 22 15:36 nagios.lock
-rw-r--r-- 1 nagios nagios   18128 Aug 22 15:36 nagios.log
-rw-r--r-- 1 nagios nagios       5 Aug 21 17:57 ndo2db.lock
-rw-rw-r-- 1 nagios nagios       0 Aug 22 15:36 ndomod.tmp
srwxr-xr-x 1 nagios nagios       0 Aug 21 17:57 ndo.sock
-rw-r--r-- 1 nagios nagios  104675 Aug 21 17:57 npcd.log
-rw-r--r-- 1 nagios nagios  125566 Aug 22 15:36 objects.cache
-rw-rw-rw- 1 nagios nagios  100555 Jul 17 15:09 perfdata.log
-rw------- 1 nagios nagios  167444 Aug 22 15:20 retention.dat
drwxrwsr-x 2 nagios nagcmd    4096 Aug 22 15:36 rw
-rw-rw-r-- 1 root   nagios   27376 Aug 22 16:03 service-perfdata
drwxr-xr-x 5 nagios root      4096 Apr  5 11:48 spool
drwxr-xr-x 2 nagios nagios    4096 Aug 22 16:03 stats
-rw-rw-r-- 1 root   nagios  167890 Aug 22 16:03 status.dat
[root@ctvmanager var]# 
[root@ctvmanager var]# ls -l rw
total 0
[root@ctvmanager var]# 
What is the root cause of this error?

thanks,

rk
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Failed to issue forced notification

Post by slansing »

Can you post the output of the following:

Code: Select all

ll -la /usr/local/nagios/var/rw/
Is Nagios actually running?
rks
Posts: 38
Joined: Sun Mar 31, 2013 4:08 pm

Re: Failed to issue forced notification

Post by rks »

Its running:

Code: Select all

+ service nagios status
nagios (pid 29192) is running...
+ service ndo2db status
ndo2db (pid 1819) is running...
+ service mysqld status
mysqld (pid  8034) is running...
+ service postgresql status
postmaster (pid  1452) is running...
+ service crond status
crond (pid  5863) is running...
+ service npcd status
NPCD running (pid 1639).
+ service crond start
+ service nagios status
nagios (pid 29192) is running...
+ service httpd status
httpd (pid  5049) is running...
Did I miss any service relevant to Nagios?

thanks,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Failed to issue forced notification

Post by lmiltchev »

Run the following commands and show us the output:

Code: Select all

ll /usr/local/nagios/var/rw/nagios.cmd
grep check_external_commands /usr/local/nagios/etc/nagios.cfg
grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked