Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

manu75012

Reviews(2)
bymanu75012, April 14, 2010
0 of 1 people found this review helpful
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.
bymanu75012, April 12, 2010
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