monit-general
[Top][All Lists]
Advanced

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

monit 4.7 and check file existence


From: P Holdaway
Subject: monit 4.7 and check file existence
Date: Thu, 12 Jan 2006 11:48:38 -0800

Monit 4.7 now requires the existence of a check file argument for a valid
syntax check?

This then prevents monit running, and means the syntax of monitrc is
dependant on the run time environment. 

Seems nasty.


For example,

monitrc
############################################

check file no_such_file with path "/foo/bar/no_such_file"

check file passwd with path "/etc/passwd"

############################################

Under monit 4.6...

/opt/technocom/SOL_5_8_SPC/pkgs/monit-4.6/bin/monit -t -c /root/monitrc
Control file syntax OK

Under monit 4.7...

/opt/technocom/SOL_5_8_SPC/pkgs/monit-4.7/bin/monit -t -c /root/monitrc 
/root/monitrc:2: Error: The path in a check file test must point to a file
'"/foo/bar/no_such_file"'


Cheers,

  Peter





reply via email to

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