monit-general
[Top][All Lists]
Advanced

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

CHECK FILE with script to determine filepath


From: Marc Rossi
Subject: CHECK FILE with script to determine filepath
Date: Wed, 12 Dec 2018 16:04:39 -0600

Have an app that like many other apps has a timestamp in the filename. Would like to monitor this logfile without having to create a symlink.

Something like below.

check file foo.log
    with path `ls -rt /var/log/foo*| tail -n1`
    if content = "ERROR" then alert

Anyone have a solution for this given I don't believe it is supported by monit.

TIA.
    

reply via email to

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