monit-general
[Top][All Lists]
Advanced

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

Bug in Monit 5.2 content match (?)


From: devis
Subject: Bug in Monit 5.2 content match (?)
Date: Fri, 29 Oct 2010 10:40:42 +0100

Hi,

I have this check in monit 5.2 (Centos)

check file myservice.status with path /apps/monit/myservice.status
        if match "ERROR" 
        then alert

It works if the file contains "ERROR" + a new line => echo 'ERROR' > /apps/monit/myservice.status

It doesn't if the file contains "ERROR" without a new line => echo -n 'ERROR' > /apps/monit/myservice.status

--
Devis Lucato

reply via email to

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