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
r...@ubuntu:~# 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.



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

Reply via email to