check_mysql_query and sent content
Posted: Fri Aug 02, 2019 2:49 am
Hi,
I run into the following problem.
The idea is to check the contents of a mysql database table via a check_mysql_query plugin and if there is any content, you can report this and preferably send the content.
when there is content in the table, a notification is already made, but the question is whether there is an option to place the content directly in the notification (by mail).
I am using now the code below to do the check
command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql_query -H 127.0.0.1 -d callanalysis -u user -p pass -q "select length(results) from runs order by id desc limit 1" -c 100:10000 -w 0:1
Thanks in advance!
I run into the following problem.
The idea is to check the contents of a mysql database table via a check_mysql_query plugin and if there is any content, you can report this and preferably send the content.
when there is content in the table, a notification is already made, but the question is whether there is an option to place the content directly in the notification (by mail).
I am using now the code below to do the check
command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql_query -H 127.0.0.1 -d callanalysis -u user -p pass -q "select length(results) from runs order by id desc limit 1" -c 100:10000 -w 0:1
Thanks in advance!