Build precise queries to find exactly what you need
Press ESC to close
I wrote a little change in check_page_count function:
function check_page_count(){ local PAGE_EXIT_CODE=0 PAGE_COUNT=$(snmpget -v1 -Ovq -c $COMMUNITY $HOST_NAME 1.3.6.1.2.1.43.10.2.1.4.1.1 2>/dev/null)
if [ “$PAGE_COUNT” -lt “$WARNING” ]; then EXIT_STRING=”Pagecount is $PAGE_COUNT – OK!$SEPARATOR” else if [ “$PAGE_COUNT” -ge “$WARNING” ] && [ “$PAGE_COUNT” -lt “$CRITICAL” ]; then EXIT_STRING=”Pagecount is $PAGE_COUNT – WARNING!$SEPARATOR” PAGE_EXIT_CODE=1 else if [ “$PAGE_COUNT” -ge “$CRITICAL” ]; then EXIT_STRING=”Pagecount is $PAGE_COUNT – CRITICAL!$SEPARATOR” PAGE_EXIT_CODE=2 fi fi fi
PERFDAT=”Pages;Warning;Critical=$PAGE_COUNT;$WARNING;$CRITICAL;” return $PAGE_EXIT_CODE
}
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!