Re: Monit state file version warning - auto recover/delete bad state file ?

Lutz Mader <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Hello Ani,
are you installing a new version, are you updating some times ago?

> I am running Monit version 5.17.1 on Ubuntu 14.04. At times, I see
> that Monit has logged the following:
> 
> [PST Nov 14 15:42:40] warning  : State file '/var/lib/monit/state':
> incompatible version 2

You can stop monit and delete the monit status file. After you start
monit again, the status file will created again.
If you get the error some times later again, something is going wrong.

With regards,
Lutz

p.s.
See https://mmonit.com/monit/documentation/monit.html#FILES
to get some more information about the used files.

I delete the monit status file all the time I update monit or I kill the
monit process.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.