monit-general
[Top][All Lists]
Advanced

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

Re: Monitor Ossec


From: frwa onto
Subject: Re: Monitor Ossec
Date: Tue, 24 Sep 2013 17:48:38 +0800

Dear Jaro,
              Here it is 

check program OSSEC with path "/usr/bin/test_ossec" with timeout 1000
seconds
       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

Another thing I have check is that I dont have /etc/init.d/ossec_server start or stop but just this one file ossec_hids

vi ossec-hids
        stop)
          stop
          ;;
        status)
          rh_status
          ;;
        restart)
          restart
          ;;
        condrestart)
          if [ -e /var/lock/subsys/$SHORT ]; then restart; fi
          ;;
        reload)
          reload
          ;;
        *)
          echo $"Usage: ossec-hids {start|stop|status|restart|condrestart|reload}"
          exit 1
esac

exit $RETVAL





On Tue, Sep 24, 2013 at 2:59 PM, Werner Flamme <address@hidden> wrote:
frwa onto [24.09.2013 04:42]:
> Dear Jaro,
>               Yes its in the /etc/monit.d/ and when I start monit it where
> it generates that error.

May we see the content of the file?

--


reply via email to

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