Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check row count in table. Possible to specify WHERE conditionals.
Current Version
0.02
Last Release Date
2011-11-21
Owner
Michal Sviba
Website
http://michal.myserver.cz/NagiosPlugin/
Download URL
http://michal.myserver.cz/NagiosPlugin/check_mysql_count.pl
License
GPL
Compatible With
Check row count in table. Possible to specify WHERE conditionals and CRIT and WARN count.
This script has fulfilled a check we need so I thought I'd share a slight addition: after the line $status = "Rows $state - $count rowsn"; add if ($count =~ m/D/) { $state = "CRITICAL"; $status = "$count n"; } This returns the MySql error (if there is one) rather than just returning OK when unable to connect to the server or the check is not correct... Also the condition needs to be an escaped string - ie. host="localhost" or if using NagiosQL to configure Nagios: host=\"localhost\"
You must be logged in to submit a review.
To:
From:
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!