Monit Configs for Ubuntu / Debian / CentOS / RHCE / Redhat

Note:
I have removed the checking of permissions of init and binaries. The extra system resources and maintenancefar outweighs any benefit.

Assumptions:

Completed: CentOS 6 / RHCE 6 / Redhat : Monit ( Server Monitoring and Automatic Maintenance ) or Ubuntu LTS : Monit ( Server Monitoring and Automatic Maintenance ) or Debian 7 wheezy : Monit ( Server Monitoring and Automatic Maintenance )

Monit config files for various services

Please only install the configs for services which you require.

Setup the directories

Failsafe MySQL Termination script

PowerDNS Termination script

CSF Check script

system

M/Monit

cron ( Ubuntu / Debian )

crond ( CentOS / RHCE / Redhat )

ssh ( Ubuntu / Debian )

sshd ( CentOS / RHCE / Redhat )

syslogd ( Ubuntu / Debian OpenVZ VPS )

rsyslog ( Debian OpenVZ VPS )

rsyslogd ( CentOS / RHCE / Redhat )

rsyslogd ( Debian : Standalone / KVM VPS )

rsyslogd ( Centos / RHCE / Redhat : Standalone / KVM VPS )

xinetd

saslauthd

denyhosts ( Ubuntu / Debian )

denyhosts ( CentOS / RHCE / Redhat )

mysql ( Debian / Ubuntu)

mysql ( CentOS / RHCE / Redhat )

powerdns ( Debian / Ubuntu)

powerdns ( CentOS / RHCE / Redhat)

powerdns recursor ( CentOS / RHCE / Redhat)

nginx

proftpd

fail2ban

memcached

redis-server

php-fpm-tcp

php5-fpm-unix

apache2 ( Ubuntu / Debian )

httpd ( CentOS / RHCE / Redhat )

postgres

freeradius

postfix

CSF (LFD)

OpenVPN Multiple servers/ports

Stunnel4 SSL for port 563

HAProxy for ports 443, 8443

sniproxy for ports 80, 443

nntpcache port 119

softether vpnserver port 119

ntpd

vnstatd

named ( bind9 chroot ) for ports 53

amavisd ( amavis )

clamd ( clamav )

dovecot

policyd

openldap (slapd)

solr

iredapd

sogod (SOGo)

Check external website domain.com us online

Optional

Add email alets to monit checks

2 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *