I have problem with monit. I'm monitoring MySQL service for example... and when I execute system updates like apt-get upgrade or dist-upgrade ... sometimes is upgraded monitored services.
System need stop service for upgrade, and will do it. But monit found that, and restart it... so system upgrading fails on errors, that several file were upgraded but several files would not be upgraded.
Is any way how learn to know monit that system upgrade is running?