Thanks, Sven.  I'm almost certain you're correct.  For some reason I had 
thought that when I turned on large_installation_tweaks some time ago that 
environment variables were turned off.   However, now I see that it only turns 
off summary macros.   Not sure how I misinterpreted that.

So it would make sense that in the case of this particular collection of hosts 
and services that Nagios was probably creating such a large set of environment 
variables that it was perhaps overriding a shell limit and preventing the 
exec'd check from properly executing.  I did some preliminary tests and turning 
that off cleared things up.  And of course, in addition to fixing this issue, I 
believe I'm going to get a performance boost (or at least a resource usage 
drop) as an added bonus.

Unfortunately the only place I do currently use environment variables is with 
several event scripts.   Changing those scripts to use command-line variables 
is proving to be rather a pain in the butt given how many variables I have them 
check.   But I'm getting there.

Thanks very much for your help!

Mark

-----Original Message-----
From: Sven Nierlein [mailto:sven.nierl...@consol.de] 
Sent: Saturday, February 18, 2012 2:05 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Have we reached some kind of Nagios limit?

On 2/18/12 18:48, Frost, Mark {BIS} wrote:
> ...
> I added maybe 5 of these new hosts, ran the pre-flight check and restarted.  
> After the restart I started noticing that our failing service checks (for all 
> services) went from around 260 to over 4K.  All of those new failing checks 
> were only on hosts of this same type (that particular application on Windows 
> servers I mentioned above which is also what these new hosts were part of) 
> and they were all reporting the same failure condition:
> (Return code of 127 is out of bounds - plugin may be missing)
> ...
> What can I do?

Disable environment macros. You hit the limit of maximum length of a new shell 
command which can be pretty huge when using env macros.
Its strongly advised to turn them off when using mklivestatus anyway.

  Sven

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Reply via email to