Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
I had to modify the script to add this line to make it work under ncpa_passive:
(( EUID != PUID )) && exec sudo -u “#$PUID” $0 -n $NAME -p $PROPERTY -w $WARNING -c $CRITICAL
You have to add it before this line:
[ “${PUID}” = “${EUID}” ] || p_unknown “JVM is running with different username, run this script with UID $PUID”
You still need to give nagios sudo access to run the plugin as per the README and add or update this line in the “[plugin directives]” section of ncpa.cfg:
run_with_sudo = check_jvm