Occasionally "Return code of 127 for check of host/service was out of bounds. Make sure the plugin you're trying to run actually exists."

Morten Guldager morten.guldager at gmail.com
Fri Aug 28 07:52:55 CEST 2009


'Aloha!

This might be common knowledge, but it was new to me, and took me quite a
while to figure out, so i think I better share my experience.

I have a not so small nagios installation, 1795  hosts and 3980 at this holy
moment.... (nagios 3.2.0 on a linux/debian/etch box)

Sometimes my nagios stopped working, and declaring everything to be down,
with a message tomething like these log lines:

Warning: Return code of 127 for check of host 'myhost' was out of bounds.
Make sure the plugin you're trying to run actually exists.
Warning: Return code of 127 for check of service 'myservice' on host
'myhost' was out of bounds. Make sure the plugin you're trying to run
actually exists.

I tracked it down to calls to the plugins were bloated with a huge set of
environment variables, every plugin call where served something that looked
like a big chunk of sibling hosts or services from the same
hostgroup/servicegroup.

The fix were easy, flip the config variable "enable_environment_macros" in
nagios.cfg from 1 to 0.

Reload an be happy.. (and I got a much better performance too)


-- 
/Morten %-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090828/f3941af3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- 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