plugins works on console but not reliable inside nagios

Heiko rupertt at gmail.com
Mon Jun 23 10:18:31 CEST 2008


On Fri, Jun 20, 2008 at 2:40 PM, Marc Powell <marc at ena.com> wrote:
>
> 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.
>
Hello Marc and list,

The plugin is used to monitor some F5 load balancers, i
already hat a cat witht the developer on this list, and the conclusion was that
the problem seems to be inside nagios.
Can I give you some information like config or logfiles to analyse
this problem`?
We really need to get this working.

Am I right that the nagios.log is cronologicaly?
in the following past you can see that the service is one second alive
and in the next line it did a timeout,
I didnt cut anything from this logfile.

[1214179567] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214179830] Auto-save of retention data completed successfully.
[1214180347] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214180467] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214181247] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214181967] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214182747] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214182867] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214183430] Auto-save of retention data completed successfully.
[1214183647] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214183767] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214183947] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214184067] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214184847] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214184967] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214185147] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214185867] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214186347] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214186467] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214186647] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214186947] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214187030] Auto-save of retention data completed successfully.
[1214187067] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214187367] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214187547] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214187847] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214187967] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214188267] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214189047] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214190067] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214190247] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214190630] Auto-save of retention data completed successfully.
[1214190967] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214191447] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214191567] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online
[1214191747] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214191867] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214192047] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214192647] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;CRITICAL;HARD;3;(Service
Check Timed Out)
[1214192767] SERVICE ALERT:
BigIP-Active;Pool_company1_PRODUCTION_Incomingfeed;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1_PRODUCTION_Incomingfeed 2/4 nodes online
[1214193367] SERVICE ALERT:
BigIP-Active;Pool_company1Backend_PRODUCTION_www;WARNING;HARD;3;CHECK_BIGIP_POOL
WARNING - company1Backend_PRODUCTION_www 1/2 nodes online

will this help to find a solution.?

thx

Heiko

> --
> 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
>

-------------------------------------------------------------------------
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