External command-id CHANGE_SVC_CHECK_COMMAND not working
Michael Sverdlik
michaels at fring.com
Mon Nov 21 10:48:50 CET 2011
Thanks Michael.
Too bad no word about it in the official docs...
From: Michael Friedrich [mailto:michael.friedrich at univie.ac.at]
Sent: Monday, November 21, 2011 11:11 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] External command-id CHANGE_SVC_CHECK_COMMAND not working
Michael Sverdlik wrote:
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?
http://www.nagios.org/projects/nagioscore/history/core-3x
3.0.6 adaptive check commands
Thanks,
Michael.
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto: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
--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: michael.friedrich at univie.ac.at<mailto:michael.friedrich at univie.ac.at>
phone: +43 1 4277 14359
mobile: +43 664 60277 14359
fax: +43 1 4277 14338
web: http://www.univie.ac.at/zid
http://www.aco.net
Lead Icinga Core Developer
http://www.icinga.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111121/b3846a3b/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