plugins works on console but not reliable inside nagios

Marc Powell marc at ena.com
Fri Jun 20 14:40:20 CEST 2008


On Jun 20, 2008, at 1:36 AM, Heiko wrote:

> Hello,
>
> i use a plugin that is monitoring our load balancers.
> When nagios is checking the services on these LB it very often reports
> a timeout
> on this services.
> But when I start the plugin from the bash everything works fine,i get
> a fast response on these services.
> I use exactly the same line on the bash like it is in the
> checkcommands conf file.

There are environment differences between when you run manually and  
when nagios does (i.e. there really is none in the latter case). If  
this plugin relies on any environment variables ($PATH, etc), you may  
not have them. Since we don't really know anything about what the  
plugin is doing, I can only suggest that you write in logging at  
important steps in the check process to see where it's hanging and  
work from there.

--
Marc

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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