Current time: 11-26-2024, 10:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
[How-to] Configure MONIT to monitorize your server
Author Message
tioan Offline
Junior Member
*

Posts: 22
Joined: Dec 2006
Reputation: 0
Post: #16
RE: [How-to] Configure MONIT to monitorize your server
Some new mixed monitoring stuff

Code:
# amavis
check process amavisd with pidfile /var/run/amavis/amavisd.pid
   group services
   start program = "/etc/init.d/amavis start"
   stop  program = "/etc/init.d/amavis stop"
   if failed port 10024 then restart
   if 5 restarts within 5 cycles then timeout

# clamav-daemon
check process clamd with pidfile o/var/run/clamav/clamd.pid[align=center]
   group services
   start program = "/etc/init.d/clamav-daemon start"
   stop  program = "/etc/init.d/clamav-daemon stop"
   if 5 restarts within 5 cycles then timeout

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

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

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

# Syslogd
check process syslogd with pidfile /var/run/syslogd.pid
   start program = "/etc/init.d/sysklogd start"
   stop program = "/etc/init.d/sysklogd stop"
   if 5 restarts within 5 cycles then timeout
check file syslogd_file with path /var/log/syslog
   if timestamp > 65 minutes then alert # Have you seen "-- MARK --
or if you use syslog-ng instead of of syslogd
Code:
# syslog-ng
check process syslog-ng with pidfile /var/run/syslog-ng.pid
   group services
   start program = "/etc/init.d/syslog-ng start"
   stop  program = "/etc/init.d/syslog-ng stop"
   if 5 restarts within 5 cycles then timeout

Have fun with it
Can someone of the dev add it into the trac wiki?
(This post was last modified: 06-27-2007 02:02 AM by tioan.)
06-27-2007 01:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [How-to] Configure MONIT to monitorize your server - tioan - 06-27-2007 01:31 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)