[Top][All Lists]

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

Re: Monitor Ossec

From: frwa onto
Subject: Re: Monitor Ossec
Date: Mon, 23 Sep 2013 16:41:29 +0800

Dear Jaro,
              Thank you four help. I am wondering for mysql I start with this command monit start mysql. THis will enable monit to monitor it properly. So how about ossec how do you suggest it should be start with monit? Another thing is that where is this pointing to /PATH/TO/FIRST/FILE ?

On Mon, Sep 23, 2013 at 5:15 AM, jsiemins <address@hidden> wrote:
I went to the same point and I made quick solution.

first file calls ossec-control and check staus:

/var/ossec/bin/ossec-control status > /tmp/ossec-status
count=$(grep -c running /tmp/ossec-status)
echo "running"
exit 0
echo "not running"
exit 1

make it executable

Second is monit conf file:

check program OSSEC with path "/PATH/TO/FIRST/FILE" with timeout 1000
       if status != 0 then restart
start program = "/etc/init.d/ossec_server start" with timeout 60 seconds
stop program = "/etc/init.d/ossec_server stop"
group server

View this message in context:
Sent from the monit-general mailing list archive at

To unsubscribe:

reply via email to

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