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

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to