Re: [Nagios-users] External command-id CHANGE_SVC_CHECK_COMMAND not working
Thanks Michael. Too bad no word about it in the official docs... From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at] Sent: Monday, November 21, 2011 11:11 AM To: nagios-users@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@lists.sourceforge.net<mailto:Nagios-users@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.friedr...@univie.ac.at<mailto:michael.friedr...@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 -- 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@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
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@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.friedr...@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 -- 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@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
[Nagios-users] External command-id CHANGE_SVC_CHECK_COMMAND not working
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. -- 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@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