[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] how to setup start and stop program for snort in monit ?
From: |
noobss |
Subject: |
[monit] how to setup start and stop program for snort in monit ? |
Date: |
Mon, 8 Mar 2010 01:17:28 -0800 (PST) |
i try to monitor snort with this
# check snort #
check process snort with pidfile /var/run/snort_eth3.pid
start program = "/bin/bash -c 'usr/bin/snort -c
/root/snort-2.8.5.3/etc/snort.conf -i eth3 -d --create-pidfile'"
stop program = "/bin/bash -c 'usr/bin/killall snort'
this configuration can show snort is running in the webpage but it cann't
restart when it failed I think the problem is about my start program and
stop program syntax
*note at first i try to start program with "/etc/init.d/snort start" but it
don't work because snort use instance to work . Normally to start snort
instance I open terminal and type command to run snort instance like this
address@hidden:~# snort -c /root/snort-2.8.5.3/etc/snort.conf -i eth3 -d
--create-pidfile
how can i resolve this problem
thank you
--
View this message in context:
http://old.nabble.com/-monit--how-to-setup-start-and-stop-program-for-snort-in-monit---tp27811586p27811586.html
Sent from the monit-general mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit] how to setup start and stop program for snort in monit ?,
noobss <=