Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@dannyw
Favorites0
Views
Projects0
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
Reviewed 3 years ago