![]() Stop program = "/etc/init.d/rsyslog stop"Ĭheck process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid Start program = "/etc/init.d/rsyslog start" If failed host 127.0.0.1 port 6379 then restartĬheck process rsyslog with pidfile /var/run/syslogd.pid Start program = "/etc/init.d/redis start" If 3 restarts within 5 cycles then timeoutĬheck process redis-server with pidfile /var/run/redis/redis.pid If failed host 127.0.0.1 port 11211 then restart Stop program = "/etc/init.d/memcached stop" Start program = "/etc/init.d/memcached start" If failed host 127.0.0.1 port 8891 then restartĬheck process memcached with pidfile /var/run/memcached/memcached.pid Stop program = "/etc/init.d/dkim-milter stop" Start program = "/etc/init.d/dkim-milter start" #if failed port 21 protocol ftp then restartĬheck process dkim-milter with pidfile /var/run/dkim-milter/dkim-milter.pid #stop program = "/etc/init.d/proftpd stop" #start program = "/etc/init.d/proftpd start" #check process proftpd with pidfile /var/run/proftpd.pid Stop program = "/etc/init.d/fail2ban stop" Start program = "/etc/init.d/fail2ban start" If 5 restarts within 5 cycles then timeoutĬheck process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid Start program = "/etc/init.d/named start" If 3 restarts within 3 cycles then timeoutĬheck process named with pidfile /var/run/named.pid If failed host 192.168.1.60 port 80 protocol http then alert Start program = "/etc/init.d/nginx start" #start program = "/etc/init.d/exim start"Ĭheck process nginx with pidfile /var/run/nginx.pid #check process exim with pidfile /var/run/exim.pid #if 5 restarts within 5 cycles then timeout #if failed host 127.0.0.1 port 80 protocol http then alert #start program = "/etc/init.d/httpd start" #check process httpd with pidfile /var/run/httpd/httpd.pid If match 'table full, dropping packet' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" If match 'temperature above threshold' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" If match 'OOM killed process' for 2 cycles then exec "/bin/bash -c '/usr/bin/monit unmonitor messages & /bin/sleep 3600 & /usr/bin/monit monitor messages'" ![]() If match 'table full, dropping packet' then alert If match 'temperature above threshold' then alert Check file messages with path /var/log/messages
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |