Build precise queries to find exactly what you need
Press ESC to close
I had to declare a single command for each attribute i wanted to monitor. But i have 210 jmx checks to monitor. So, after having tests about how to template jmx checks, finally syabru nagios plugin made it.
What i obtained with this “check_jmx” plugin with this setup : – nrpe host client : command[test_check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:$ARG1$/jmxrmi -O org.apache.camel:context=$ARG2$/mainContext,type=$ARG3$,name=”$ARG4$” -A $ARG5$ -w $ARG6$ -c $ARG7$ – nagios nrpe server : ./check_nrpe -H 10.20.0.11 -u -c test_check_jmx_dcd_failures -a 10010 satais-esb1 processors threadProcessor FailuresHandled 1 10 JMX UNKNOWN java.lang.NumberFormatException: For input string: “10satais-esb1/mainContext,type=processors,name=”threadProcessor”” connecting to org.apache.camel:context=satais-esb1/mainContext,type=processors,name=”threadProcessor” by URL service:jmx:rmi:///jndi/rmi://localhost:10010/jmxrmiorg.nagios.ParseError: java.lang.NumberFormatException: For input string: “10satais-esb1/mainContext,type=processors,name=”threadProcessor”” at org.nagios.JMXQuery.parse(JMXQuery.java:250) at org.nagios.JMXQuery.main(JMXQuery.java:74) Caused by: java.lang.NumberFormatException: For input string: “10satais-esb1/mainContext,type=processors,name=”threadProcessor”” at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:438) at java.lang.Long.parseLong(Long.java:478) at org.nagios.JMXQuery.parse(JMXQuery.java:242) … 1 more Usage: check_jmx -help
– And with the syabru nagios jmx plugin : ./check_nrpe -H 10.20.0.11 -u -c test_check_jmx_dcd_failures -a 10010 satais-esb1 processors threadProcessor FailuresHandled 1 10 JMX OK – FailuresHandled = 0 | ‘FailuresHandled’=0;1;10;;
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!