Dear Friends,
I need help on nagios on the below issue. If anybody has worked out a solution on this or any other option available please suggest.
I was able to use the check_jbossjmx nagios plugin to check jboss running on the server. However, when I execute it from the host server it is giving me the output but when I try to execute the same command on command prompt on the remote nagios server it is giving me the following error:
1) NRPE: Command ‘check_jbossjmx’ not defined
The command that I run for this is : ./check_nrpe -H APP01.jjmum.medd.gov.in -c check_jbossjmx 3 “jboss.jca:name=DefaultDS,service=ManagedConnectionPool” InUseConnectionCount
or
2) ./check_jbossjmx: line 41: /usr/local/AmritaTech/jboss-3.2.7/bin/twiddle.sh: No such file or directory
JMX ATTRIBUTE CRITICAL – jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:
The command that I used for this is: ./check_jbossjmx 172.16.130.4 3 “jboss.jca:name=DefaultDS,service=ManagedConnectionPool” InUseConnectionCount
The command when I run on the local server and the output is:
$# ./check_jbossjmx APP01.jjmum.medd.gov.in 3 “jboss.jca:name=DefaultDS,service=ManagedConnectionPool” InUseConnectionCount
Output: JMX ATTRIBUTE OK – jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0
As a result of which on the NAGIOS monitoring server’s web interface I am getting: (No output returned from plugin)
Please help me in resolving this issue. Thanks in advance.
Regards
Santosh Balan