Hi Michael,

I have not looked at this for a long time, but I remember encountering a
similar issue when I worked on this. If you run it again a few seconds
later, it is probably going to return valid metrics. However, that is not a
very useful thing. Also, I can trigger this fairly easily, using:

check_multiple_metrics_warn.sh host='hostname'
checks='ap_busy_workers,more,1,more,2' (the values dont matter, its just a
test).

If I wait a while, run it, it will error, but if I run it again quickly
after, it works. Seems 100% reproducible, so thats helpful. Strangely, it
only seems to happen for "non-default" metrics. Thats is to say, metrics
like load or cpu_idle dont display this behaviour, but apache, or extended
disk metrics do. However, it seems like every "non-default" metric I try
behaves this way.

I cant remember what the cause of this is, possibly the loop at line 83 -
89?  I was not the person who solved it last time I saw this, and I dont
have the fixed code to refer to, just very hazy memories. I will see if I
can contact someone who has acess to the (hopefully fixed) code.

Cheers, Michael.


On 28 November 2013 07:52, Michael Durket <[email protected]>wrote:

> I'm testing out the Nagios plugins provided in the nagios directory of
> Ganglia web. There's something odd going on. When I execute:
>
> check_ganglia_metric.sh host=<host name deleted for security>
> metric_name=http_workers_active operator=more critical_value=100
>
> I get the result:
>
> CRITICAL http_workers_active = 117
>
> If I also execute:
>
> /var/www/html/ganglia/nagios/check_multiple_metrics_warn.sh host=<name
> deleted> checks="http_workers_active,more,100,more,200"
>
> I get:
>
> UNKNOWN System check - No metrics returned values
>
> I've tried this with and without the Nagios cache enabled, but the
> inconsistency persists.
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to