Integrate JBoss into Nagios monitoring through a small Collector MBean and a perl based Nagios plugin. Lets you read you and monitor JMX values from JBoss servers very efficiently. On the Nagios server no JDK or JBoss installation is needed.
- monitors any JMX attribute in a JBoss server
- no JRE/JDK needed on the Nagios server
- no additional JVM running on the JBoss machine
- works with ranges, cluster singletons, collections, text attributes
great program jboss2nagios, thanks.
Thanks for the useful little helper. Did not find any documentation regarding checks if a value is BELOW a specific threshold. Found the answer in the source. Set a prefix "@" before the values. Maybe this is helpful for some other people.
ok, so I figured out how to get the ActiveThreadCount, TotalMemory, RollbackCount, etc but I still don't understand how to get parameters like garbage CollectionTime. i tried these commands and got error on each (and ignore the values 200 & 400, that's arbitrary): ./check_mbean_collector -H dhrlmsappdev1 -p 5566 -m name=Copy:type=GarbageCollector -a *CollectionTime -w 200 -c 400 UNKNOWN COLLECTIONTIME UNKNOWN - MBean name=Copy:type=GarbageCollector could not be found then tried this: # ./check_mbean_collector -H dhrlmsappdev1 -p 5566 -m java.lang:name=MarkSweepCompact:type=GarbageCollector -a CollectionTime -w 200 -c 400 UNKNOWN ? UNKNOWN - MBeanServer responded: MalformedObjectNameException Invalid character ':' in value part of property then i tried this: # ./check_mbean_collector -H dhrlmsappdev1 -p 5566 -m jboss.system:typeServer -a CollectionTime -w 200 -c 400 UNKNOWN ? UNKNOWN - MBeanServer responded: MalformedObjectNameException Unterminated key property part I don't know anything about Java and little about Jboss, so bear with me if I'm missing something obvious.
It looks very good.. I didn't have time to test it till now, but I hope it works :) At a first look it should work (from my knowing of nagios and jboss; I'm using it (working with) last couple of years) keep up a good work :)