Re: Sometimes when restarting Monit it resets all services to unmonitored
Lutz Mader <[email protected]> Fri, 7 Aug 2020 20:28:34 +0200
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Ciprian, this is a useful setting. > My conclusion: the "correct" setting should be `mode passive onreboot > laststate`. As long as you are aware that all services are "stopped"/"not monitored" not monitored again. But you should get no problems because you said monit is used for monitoring purpose only. To do a "restart" test without a restart I stop monit and delete the ".monit.state" file. After monit is up again, monit can not detect the last state and think it is a restart. With regards, Lutz