Monit » History » Version 4

« Previous - Version 4/5 (diff) - Next » - Current version
Anonymous, 08/20/2008 01:37 PM
Installation Guide: Update Monit


= Monit: Monitoring of Services =
This installation guide will describe how to set up ''independent'' instances of [http://www.tildeslash.com/monit/ Monit] on the master node and each slave.br
In the future, [http://www.tildeslash.com/mmonit/ M|Monit] should be considered, which allows easy single point administration and monitoring (from the master node).

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:br
''apache'', ''cron'', ''devices'' (/ & /home), ''mysql'', ''nfs'' (/home_nfs), ''ntp'', ''pbs_mom'', ''pbs_sched'', ''pbs_server'', ''postfix'', ''ssh'', ''system'', ''ypbind'', ''yppasswd'', ''ypserv'', br
and if all ''slaves'' are reachable (''ping'')br
Currently, the monitoring of ''pbs_maui'' is switched off in favour of ''pbs_sched''.br {{{
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:br
''devices'' (/ and /scratch), ''nfs'' (/home), ''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.