plugin exiting with 127 code

Tracy Reed treed at ultraviolet.org
Tue May 26 08:39:25 CEST 2009


On Tue, May 26, 2009 at 10:12:02AM +0545, Gaurav Ghimire spake thusly:
> Check with the location of the plugin. Resource.cfg and the command definitions are where you need to see.

The majority of the time the plugin runs correctly and returns a
correct result so I am sure the plugin is in the correct place. I
checked it just now and it is working. I just copied this from the
nagio service status page:

wordpress OK	05-25-2009 23:27:51	 0d 0h 9m 17s	1/3	GET /?stories HTTP/1.0 

But we can see that 9m 17s ago it failed. Nothing has been done to the
system in the last 10 minutes. If the plugin were not there or were
somehow incorrectly defined or configured I think it would not work at all.

The plugin in question is check_http. The command is defined like so:

define command{
    command_name    check_boycottnovell_wordpress
    command_line    $USER1$/check_http -v -v -v -I 216.105.40.114 -H boycottnovell.com -u /?stories -s "Exploring the reality behind exclusionary deals with Microsoft and their subtle" -w 3 -c 4
}

resource.cfg contains:

# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/libexec

and check_http is there:

[root at mail objects]# ls -la /usr/local/nagios/libexec/check_http 
-rwxr-xr-x 1 nagios nagios 471814 Apr 15 12:05 /usr/local/nagios/libexec/check_http


-- 
Tracy Reed
http://tracyreed.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090525/a9471683/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
-------------- 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