Build precise queries to find exactly what you need
Press ESC to close
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
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!