CC: | "Daniel Schwager" <Daniel.Schwager [...] dtnet.de> |
Subject: | output using --unit does not work correctly |
Date: | Mon, 19 Oct 2009 16:37:38 +0200 |
To: | <bug-jmx4perl [...] rt.cpan.org> |
From: | "Daniel Schwager" <Daniel.Schwager [...] dtnet.de> |
Hi,
I call the following against an agent running on sun glassfish:
check_jmx4perl --url http://localhost:8080/j4p \
--unit B \
--alias MEMORY_HEAP_USED \
--base MEMORY_HEAP_MAX \
--critical :80
and got
CRITICAL - memory_used : Threshold '10000000' failed for value 950064336 | 'memory_used'=950064336;5000000;10000000
OK - [MEMORY_HEAP_USED] : In range 46.32% (906.07 MB / 1.91 MB) | '[MEMORY_HEAP_USED]'=950081208B;;:1641073868.8;0;2051342336
So, "(906.07 MB / 1.91 MB)" must be "(906.07 MB / 1.91 GB)" ...
If I remove the --unit, the result is ok:
OK - [MEMORY_HEAP_USED] : In range 50.98% (1045797064 / 2051342336) | '[MEMORY_HEAP_USED]'=1045797064;;:1641073868.8;0;2051342336
Viele Gruesse
Daniel Schwager
-------------------------------------------------------------------
DT Netsolution GmbH - Taläckerstr. 30 - D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager@dtnet.de