Build precise queries to find exactly what you need
Press ESC to close
@rayzeller
Favorites0
Views
Projects0
This is an old version. If you want this to work with nrpe, you must have the following: {noformat} #!/bin/sh # # Nagios JMX plugin. # JAVA_CMD=`which java` if [ -z $JAVA_CMD ] then if [ -x $JAVA_HOME/bin/java ] then JAVA_CMD=$JAVA_HOME/bin/java else echo JMX CRITICAL - java not found. exit 2 fi fi DIR=`dirname $0` $JAVA_CMD -jar $DIR/check_jmx.jar "$@" {noformat} as your check_jmx. Otherwise nrpe will not be able to find java.
Reviewed 13 years ago