I'm facing issue with one specific plugin named: "check_jmx"
I have 3 machines:
1) Nagios server itself (ssbpops01_10.146.1.100)
2) Solaris remote host (Ssb-voor-01_168.162.97.143)
3) Solaris remote host (ssbpech01_10.146.1.38)
I installed this plugin on the 3 servers , only on Ssb-voor-01_168.162.97.143 it doesn't work even though the configuration, permissions are similar.
Code: Select all
root@ssb-voor-01 etc$ /apps/nagios/libexec/check_nrpe -H 168.162.97.143 -c check_jmxmemory
NRPE: Unable to read output
root@ssbpech01:/# /apps/nagios/libexec/check_nrpe -H 10.146.1.38 -c check_jmxmemory
JMX OK - TotalMemory = 3039821824 | 'TotalMemory'=3039821824;3247300864;3251495168;;
Code: Select all
root@ssb-voor-01 nagios-jmx-plugin-1.2.3$ ls -la
total 64
drwxrwxrwx 2 nagios nagios 7 Mar 1 04:05 .
drwxrwxrwx 3 nagios nagios 63 Mar 1 03:57 ..
-rwxrwxrwx 1 nagios nagios 10351 Feb 15 04:40 LICENSE.txt
-rwxrwxrwx 1 nagios nagios 749 Feb 15 04:40 README.txt
-rwxrwxrwx 1 nagios nagios 282 Feb 15 04:40 check_jmx
-rwxrwxrwx 1 nagios nagios 12925 Feb 15 04:40 check_jmx.jar
-rwxrwxrwx 1 nagios nagios 206 Feb 28 09:56 jmx.cfg
root@ssb-voor-01 nagios-jmx-plugin-1.2.3$ pwd
/apps/nagios/libexec/nagios-jmx-plugin-1.2.3
root@ssbpech01:/apps/nagios/libexec/nagios-jmx-plugin-1.2.3# ls -la
total 64
drwxrwxrwx 2 nagios nagios 7 Jan 30 03:35 .
drwxrwxrwx 3 nagios nagios 68 Jan 30 03:35 ..
-rwxrwxrwx 1 nagios nagios 10351 Apr 19 2011 LICENSE.txt
-rwxrwxrwx 1 nagios nagios 749 Apr 19 2011 README.txt
-rwxrwxrwx 1 nagios nagios 282 Sep 5 12:07 check_jmx
-rwxrwxrwx 1 nagios nagios 12925 Apr 19 2011 check_jmx.jar
-rwxrwxrwx 1 nagios nagios 211 Apr 19 2011 jmx.cfg
root@ssbpech01:/apps/nagios/libexec/nagios-jmx-plugin-1.2.3# pwd
/apps/nagios/libexec/nagios-jmx-plugin-1.2.3
root@ssbpech01:/apps/nagios/libexec/nagios-jmx-plugin-1.2.3#
Code: Select all
root@ssb-voor-01 etc$ /apps/nagios/libexec/nagios-jmx-plugin-1.2.3/check_jmx -U service:jmx:rmi:///jndi/rmi://168.162.97.143:7780/jmxrmi -O jboss.system:type=ServerInfo -A TotalMemory -w 3247300864 -c 3251495168
JMX OK - TotalMemory = 3154640896 | 'TotalMemory'=3154640896;3247300864;3251495168;;
This is what I see in Nagios log:
Code: Select all
[1488365193] SERVICE NOTIFICATION: nagiosadmin;ssb-voor-01;JMX Memory;WARNING;notify-service-by-email;NRPE: Unable to read output
Code: Select all
define service{
use generic-service
host_name ssb-voor-01
service_description JMX Memory
check_command check_nrpe!check_jmxmemory
check_interval 1
}
Thanks in advanced,