External command-id CHANGE_SVC_CHECK_COMMAND not working

Michael Sverdlik michaels at fring.com
Sun Nov 20 15:52:17 CET 2011


Hi,
System Info:
Nagios Core 3.2.3 (also checked on 3.3.1)
Ubuntu 10.4 LTS

It looks like Nagios ignores CHANGE_SVC_CHECK_COMMAND that I'm sending to command file.

Here a  test script I did which _worked_ as should (comment for the service added):
#!/bin/sh
now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'
/bin/echo "[$now] ADD_SVC_COMMENT;server.com;service;0;nagiosadmin;this is a test" > $commandfile

However when I try to do almost exactly the same with CHANGE_SVC_CHECK_COMMAND, nothing happens:
#!/bin/sh
now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'
/bin/echo "[$now] CHANGE_SVC_CHECK_COMMAND;server.com;service;check_service" > $commandfile

I can see command received both in nagios log and debug log:
Nagios log
[1321800018] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;server.com;service;check_service

Nagios debug log
[1321800018.303659] [128.1] [pid=31683] External Command Type: 128
[1321800018.303671] [128.1] [pid=31683] Command Entry Time: 1321800018
[1321800018.303681] [128.1] [pid=31683] Command Arguments: server.com;service;check_service

Note: server,service and command names were changed.
I also checked same scenario on Nagios 3.3.1 with same results.
Any advice/ideas?


Thanks,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111120/25cf5d5d/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list