Difference between revisions of "Monit"

From FusionPBX
Jump to: navigation, search
(Created page with "Used to monitor processes on UNIX systems. http://mmonit.com/monit/ ==Install== '''CentOS''' yum install monit ==Configure== '''Fail2Ban''' cd /etc/monit.d echo "" > fail2...")
 
(Install)
Line 6: Line 6:
 
'''CentOS'''
 
'''CentOS'''
 
  yum install monit
 
  yum install monit
 +
chkconfig --levels 235 monit on
  
 
==Configure==
 
==Configure==

Revision as of 03:21, 19 August 2011

Used to monitor processes on UNIX systems.

http://mmonit.com/monit/

Install

CentOS

yum install monit
chkconfig --levels 235 monit on

Configure

Fail2Ban

cd /etc/monit.d
echo "" > fail2ban

nano fail2ban Add the following to the file and save it.

check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
  group services
  start program = "/etc/init.d/fail2ban start"
  stop  program = "/etc/init.d/fail2ban stop"
  if 5 restarts within 5 cycles then timeout

FreeSWITCH