Problem executing plugins under nagios 3.0.6

Matthew Melvin matthewmelvin at gmail.com
Fri Feb 20 07:06:50 CET 2009


On Wed, 2009-02-11 at 15:12 +1000, Matthew Melvin wrote:

>  I've recently tried upgrading from nagios 2.9 to nagios 3.0.6 but now it
> seems like nagios is having trouble executing plugins.  The execve calls
> are failing with E2BIG.  An example from an strace...
> 
> 23545 execve("/bin/sh", ["sh", "-c",
> "/usr/lib/nagios/plugins/check_dummy 3 \"Stale results\""], [/* 191 vars
> */]) = -1 E2BIG (Argument list too long)

To follow up... essentially the E2BIG was happening not because **argv
was too large, but because **envp was.   NAGIOS_HOSTGROUPMEMBERS alone
was many KBs.  Setting...

enable_environment_macros=0

... seems to have resolved my issue.

M.

-- 
... with eskimo chain i tattooed my brain all the way...


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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