Build precise queries to find exactly what you need
Press ESC to close
@manu75012
Favorites0
Views
Projects0
Tried with my nagios. It is running in a shell : [nagios@myserver libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used JMX OK - HeapMemoryUsage.used = 605230312 | 'HeapMemoryUsage used'=605230312;;;; Not working with NRPE : [nagios@myserver libexec]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_jmx NRPE: Unable to read output in my nrpe.cfg : command[check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used I tried to add and differents kinds of ", but did not help. Any help would be great.
Reviewed 15 years ago
Looks like a good start, but it is missing some informations. There is no way I can make it work with NRPE, even if I run it ok directly in my shell account : [nagios@myserver ~]$ /usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 800000000 -c 1500000000 JMX WARNING HeapMemoryUsage.used=842512960{committed=1042808832;init=1073741824;max=1042808832;used=842512960} I checked a lot of things, but I am still stuck with the following message : [nagios@myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_jmx NRPE: Unable to read output