Hi,<br><br>I want to set a nagios alert whenever the count(*) of a specific table in test DB (MySQL) on a specific host crosses 200000 using mysql_check_query<br>plugin<br><br>I have referred to <a href="http://nagiosplugins.org/man/check_mysql_query">http://nagiosplugins.org/man/check_mysql_query</a> for -w and -c option <br>
which says -w, --warning=RANGE Warning range (format: start:end). Alert if outside this range<br> -c, --critical=RANGE<br><br>How can i set this in nagios(nrpe.cfg) on the remote host.<br><br>Any example would be really helpful<br>
<br>I have set it like the below in the nrpe.cfg file<br><br>command[check_mysql_query]=/usr/nagios/libexec/check_mysql_query -q "Select count(*) from table" -w1:5 -H localhost -P 3306 -d test -u test -p example<br>
command[check_mysql_query]=/usr/nagios/libexec/check_mysql_query -q "Select count(*) from table" -c200000 -H localhost -P 3306 -d test -u test -p example<br><br>Not sure if the above command is right.<br><br>Any ideas<br>
<br>Thanks and Regards<br><br>Kaushal<br><br><br>