Subject: | Featurerequest: adding attributes/path to "check_jmx4perl --mbean" |
Date: | Tue, 20 Oct 2009 18:07:23 +0200 |
To: | <bug-jmx4perl [...] rt.cpan.org> |
From: | "Daniel Schwager" <Daniel.Schwager [...] dtnet.de> |
Hi Roland,
to setup some checks for nagios, we have to
tell check_jmx4perl a lot of parameters inside nagios/service.cfg file.
To reduce the amount of parameters, I would suggest to
implement the --mbean parameter (or another new one) to
use the same syntax that the current --base parameter:
--base java.lang:type=Memory/HeapMemoryUsage/max
So, you can remove (normly always required) two parameters from
$CMD \
--name memory_used \
--mbean java.lang:type=Memory \
--attribute HeapMemoryUsage \
--path used \
--critical 10000000 --warning 5000000
to
$CMD \
--name memory_used \
--mbean java.lang:type=Memory/HeapMemoryUsage/used
--critical 10000000 --warning 5000000
regards
Danny