Build precise queries to find exactly what you need
Press ESC to close
no Perf data and the plugin shows not very accurate info…
But it works like a charm… I’ve edited myself for my needs:
if [ $RES = 0 ]; then UPTDAY=$(expr $UPTMIN / 60 / 24 ) UPTMINT=$(( $UPTDAY * 1440 )) UPTMINM=$(( $UPTMIN – $UPTMINT )) UPTMINH=$(expr $UPTMINM / 60 ) UPTMINHM=$(( $UPTMINH * 60 )) UPTMINHMS=$(( $UPTMINM – $UPTMINHM ))
if [ $UPTMIN -lt $CRIT ]; then echo CRITICAL: Systemuptime $UPTDAY Days $UPTMINH Hours $UPTMINHMS Mins’|Uptime=’$UPTMIN’m;’$WARN’;’$CRIT’;0;0′ exit 2 fi
if [ $UPTMIN -lt $WARN ]; then echo OK: Systemuptime $UPTDAY Days $UPTMINH Hours $UPTMINHMS Mins’|Uptime=’$UPTMIN’m;’$WARN’;’$CRIT’;0;0′ exit 0 fi
if [ $UPTMIN -ge $WARN ]; then echo WARNING: Systemuptime $UPTDAY Days $UPTMINH Hours $UPTMINHMS Mins’|Uptime=’$UPTMIN’m;’$WARN’;’$CRIT’;0;0′ exit 1 fi
fi
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!