[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] monit to monitor fail2ban
From: |
andrea |
Subject: |
[monit] monit to monitor fail2ban |
Date: |
Tue, 16 Jun 2009 11:33:05 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
Hi list,
i'm trying to keep fail2ban (http://www.fail2ban.org/) monitored on my
Centos5.2 server.
i've tried using a config like this:
check process fail2ban with pidfile /var/run/fail2ban.pid
start program = "/etc/init.d/fail2ban start"
stop program = "/etc/init.d/fail2ban stop"
if failed unixsocket /var/run/fail2ban/fail2ban.sock then restart
if 5 restarts within 5 cycles then timeout
the problem i'm having is that there is no process called "fail2ban" to
monitor. the process that fail2ban starts up under looks like this:
ps ax | grep fail2ban
20099 ? Sl 0:31 /usr/bin/python /usr/bin/fail2ban-server -b
-s /var/run/fail2ban/fail2ban.sock -x
Do someone have an idea how on how to make it working?
Thanks
Andrea
- [monit] monit to monitor fail2ban,
andrea <=