Tomcat Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ar0431
Posts: 73
Joined: Tue May 21, 2019 12:05 pm

Re: Tomcat Monitoring

Post by ar0431 »

Ok thanks. I will wait.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Tomcat Monitoring

Post by ssax »

This is a bug in check_jvm.jar, I wasn't able to get the less than to work in the thresholds by itself. So -w 2: -c 1: which would warn if less than 2 and crit at less than 1 isn't working but you can kind of fake it like this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.X.X -t 'XXXXXX' -P 5693 -M plugins/check_jvm.jar -a '-s "service:jmx:rmi:///jndi/rmi://localhost:9000/jmxrmi" -u tomcat -p tomcat -t tomcat -C RequestsPerMinute:"http-nio-8080" -w 2:1000000  -c 1:2000000'
That would warn if less than 2 and warn if greater than 1000000, it would also go critical if less than 1 or critical if greater than 2000000.

EDIT: I have submitted the bug report to development so they can fix it:

NEW TASK ID 15534 created - Nagios XI Bug Report: XI - Tomcat Wizard plugin (check_jvm.jar) doesn't work with less than thresholds
Locked