I use mysql-alive.rb (https://github.com/sensu/sensu-community-plugins/blob/master/plugins/mysql/mysql-alive.rb) for mysql status checking. using mail (mail -s ‘mysql’s down’ email-address < /var/log/mysql/error.log) command as a handler to send email to my post.
Everything goes well when the mysql service runs on the sensu client server. Once I stop the mysql service on the client, my post can keep recieve emails. Sounds it works pretty well, right?
When I restart the mysql service (use sudo service mysql restart), the emails suppose not to be send any more. While, on the contrary, my post still can recieve warning emails after I restart the mysql service.
I’ve checked the sensu-server log, the check results are OK, and there is no events in Uchiwa.
Guys, how could the happen???