Monit » History » Version 3

« Previous - Version 3/5 (diff) - Next » - Current version
Anonymous, 08/19/2008 05:57 PM
Installation Guide: Monit


= Monit: Monitoring of Services =
You can find more about Monit at [http://mon.wiki.kernel.org/].

Installation * Add the DAG repository on the ''master node'' and ''slave nodes''. Enter at the command line as ''root'': {{{
wget http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
}}} * Install Monit on the ''master node'' and ''slave nodes''. Enter at the command line as ''root'': {{{
yum install monit
}}} Configuration

=== Master node ===
On the master node, the following services will be monitore:
apache, cron, devices (/ & /home), mysql, nfs, ntp, pbs_mom, pbs_sched, pbs_server, postfix, ssh, system, ypbind, yppasswd, ypserv
The monitoring of pbs_maui is switched off in favour of pbs_sched. {{{
tar -xvzf procksi_monit.tgz
}}} {{{
chown -R procksi.procksi_dev /home/procksi/monit/token
}}} {{{
#General Aliases for Monitoring and Testing
Alias /monit/ "/home/procksi/monit/"
Alias /ganglia/ "/usr/local/ganglia/html/"
Alias /trees/ "/home/procksi/trees/"

  • Edit the Apache configuration file ''/etc/httpd/conf/httpd.conf'':

#Conditional Logging: Don't log Ganglia and Monit requests
SetEnvIf Request_URI "ganglia" dontlog
SetEnvIf Request_URI "^\/monit\/token$" dontlog
}}}

  • Restart the Apache server. Enter at the command line as ''root'':
{{{
/sbin/service httpd restart
}}}
  • Make the Monit daemon start at bootup. Enter at the command line as ''root'':
{{{
/sbin/chkconfig monit on
}}}
  • Start the Monit daemon. Enter at the command line as ''root'':
{{{
/sbin/service monit start
}}}

=== Slave nodes ===
On the master node, the following services will be monitore:
devices (/ and /scratch), nfs, ntp, pbs_mom, ssh, system, ypbind {{{
tar -xvzf procksi_monit.tgz
}}} {{{
/sbin/chkconfig monit on
}}} {{{
/sbin/service monit start
}}}

  • Start the Monit daemon. Enter at the command line as ''root'':
Online Monitoring

The status of each monitored service, process, file, etc. is available with the Monit's integrated webserver at port 2812 from ''localhost'' and selected machines. Username and password can be found at the secret [[wiki:secretAuthentication authentication]] page.

|| master01 || [http://procksi0.cs.nott.ac.uk:2812]
|| slave01  || [http://procksi1.cs.nott.ac.uk:2812]
|| slave02  || [http://procksi2.cs.nott.ac.uk:2812]
|| slave03  || [http://procksi3.cs.nott.ac.uk:2812]
|| slave04  || [http://procksi4.cs.nott.ac.uk:2812]
Offline Monitoring

Monit sends alerts to "" if services are unavailable, have been restarted, or similar events.