Page 1 of 1

External command error: Command failed

Posted: Thu May 29, 2014 12:02 am
by jsmurphy
Hi guys,

Upgraded XI 2012 -> 2014 today and it all went fairly smooth... with one little exception. We have noticed that NSCA and some SNMP traps are failing to have their events processed with the following messages generated in the log:
2014-05-29 14:48:14External command error: Command failed
2014-05-29 14:48:14Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;10.232.1.2;SNMP Traps;2;A linkDown trap signifies that the SNMP entity, acting in 7 TenGigabitEthernet2/3 ethernetCsmacd Lost Carrier / ifIndex.7 (INTEGER32):7 ifDescr.7 (OCTETSTR):TenGigabitE
I saw a similar thread that mentioned checking the kernel message lengths and have the following in sysctl:
/usr/local/nagios/var/rw # sysctl -p

kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
Which I think should be sufficient. I haven't turned on debugging yet, thought I would see if some one had already encountered this little problem before I dug any further.

As always any help would be greatly appreciated :)

Re: External command error: Command failed

Posted: Thu May 29, 2014 11:50 am
by scottwilkerson
I haven't seen this yet. Do you happen to know if the was the whole message submitted to the External command?

Re: External command error: Command failed

Posted: Thu May 29, 2014 9:54 pm
by jsmurphy
That is indeed the whole message, but I solved the mystery.

If an external command is submitted for a device it can't find then it will display the command failed error as well as the usual "host could not be found warning" you would get in 3.x. I'm not sure how I missed that yesterday but there you go.

Re: External command error: Command failed

Posted: Fri May 30, 2014 10:12 am
by lmiltchev
Thanks for the feedback, jsmurphy! I am locking this topic.