monit-general
[Top][All Lists]
Advanced

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

Monitoring logs


From: Petra Humann
Subject: Monitoring logs
Date: Wed, 2 Mar 2016 10:03:04 +0100

Hello,

I’m monitoring syslog with

check file syslog with path /var/log/syslog
        stop program = "/usr/bin/ssh remote /sbin/cmd parameter"
        start program = "/bin/true"
        if match „some string" then restart

Two problems:
If I start monitoring, the whole syslog is scanned from beginning 
and not from the monit start time.
If the condition occurs, I see in the logs of the remote system
the login, but the command "/sbin/cmd parameter“ is not always
executed. I also tried exec like

if match „some string" then exec "/bin/bash -c '
                /usr/bin/ssh remote /sbin/cmd parameter
                '“

Here I see the login, but the command was never executed.
The system is an actual Debian Jessie LTS.

Any hints? Thank you.
Petra Humann

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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