plugin exiting with 127 code
Stuart Browne
stuart.browne at ausregistry.com.au
Tue May 26 03:22:00 CEST 2009
Generally, checks will run as the 'nagios' user (nagios_user in nagios.cfg). If the check needs to write to some temporary files, or is in a place where that user cannot read from, it may just be a 'Permission Denied' issue.
When you run it from the command line, do you run it as the 'nagios' user?
Stuart
-----Original Message-----
From: Tracy Reed [mailto:treed at ultraviolet.org]
Sent: Tuesday, 26 May 2009 10:33
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] plugin exiting with 127 code
I think I have had this problem before and at that time it was a rogue
nagios process. But I have shut down nagios, inspected the process
list, ensured that no other nagios processes were still running, and restarted. And
the problem recurs. The plugin is definitely there and usually the
check passes with no problem. But sometimes it fails with this 127
code. I have run the test manually from the command line many times
and it never has a problem. Any idea what can cause this?
May 25 13:02:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;CRITICAL;SOFT;2;GET /?stories HTTP/1.0
May 25 13:04:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;OK;SOFT;3;GET /?stories HTTP/1.0
May 25 13:14:01 mail nagios: Warning: Return code of 127 for check of
service 'wordpress' on host 'boycottnovell.com' was out of
bounds. Make sure the plugin you're trying to run actually exists.
May 25 13:14:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;CRITICAL;SOFT;1;(Return code of 127 is out
of bounds - plugin may be missing)
May 25 13:16:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;OK;SOFT;2;GET /?stories HTTP/1.0
May 25 13:21:51 mail nagios: SERVICE ALERT:
boycottnovell.com;wiki;CRITICAL;SOFT;1;GET
/wiki/index.php?title=Main_Page HTTP/1.0
May 25 13:23:51 mail nagios: SERVICE ALERT:
boycottnovell.com;wiki;CRITICAL;SOFT;2;GET
/wiki/index.php?title=Main_Page HTTP/1.0
May 25 13:25:41 mail nagios: SERVICE ALERT:
boycottnovell.com;wiki;OK;SOFT;3;GET /wiki/index.php?title=Main_Page
HTTP/1.0
May 25 13:26:01 mail nagios: Warning: Return code of 127 for check of
service 'wordpress' on host 'boycottnovell.com' was out of
bounds. Make sure the plugin you're trying to run actually exists.
May 25 13:26:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;CRITICAL;SOFT;1;(Return code of 127 is out
of bounds - plugin may be missing)
May 25 13:28:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wordpress;OK;SOFT;2;GET /?stories HTTP/1.0
May 25 13:38:01 mail nagios: Warning: Return code of 127 for check of
service 'wordpress' on host 'boycottnovell.com' was out of
bounds. Make sure the plugin you're trying to run actually exists.
May 25 13:38:01 mail nagios: SERVICE ALERT:
boycottnovell.com;wOrdpress;Critical;Soft;1;(Return code of 127 is out
of bounds - plugin may be missing)
Thanks!
--
Tracy Reed
http://tracyreed.org
------------------------------------------------------------------------------
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
_______________________________________________
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