monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monit fails to start when check file does not exist


From: Thorsten Kampe
Subject: Monit fails to start when check file does not exist
Date: Wed, 24 Jul 2013 00:36:00 +0200
User-agent: MicroPlanet-Gravity/3.0.4

Hi,

monit 5.5.1 fails to start when the file in the check file directive 
does not exist:

checksum: file /home/user/.zshrcc is not regular file
/etc/monit/monitrc:165: Error: cannot compute a checksum for file 
/home/user/.zshrcc '/home/user/.zshrcc'
   ...fail!

The man page says:
CHECK FILE <unique name> PATH <path> 

[...] If the file does not exist or disappeared, Monit will call the 
entry's start method if defined, if <path> does not point to a regular 
file type (for instance a directory), Monit will disable monitoring of 
this entry. If Monit runs in passive mode or the start methods is not 
defined, Monit will just send alerts on errors.

So Monit should stop monitoring the file and not try to run any tests on 
the non-existing file.

Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]