server_monitoring
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
server_monitoring [2009/11/17 11:31] – 172.26.0.166 | server_monitoring [2010/06/16 09:58] – 172.26.0.166 | ||
---|---|---|---|
Line 2: | Line 2: | ||
* [[# | * [[# | ||
* [[# | * [[# | ||
- | * [[# | + | * [[# |
+ | * [[# | ||
===== Ganglia ===== | ===== Ganglia ===== | ||
Line 8: | Line 10: | ||
[[http:// | [[http:// | ||
- | You can see the ganglia installation here: http:// | + | You can see the ganglia installation here: http:// |
- | + | ||
- | For some reason sometimes the graphs do not draw. If you reboot the cluster the graphs work for some days and then seem to stop drawing (the graphs appear blank). | + | |
{{: | {{: | ||
Interesting documentation: | Interesting documentation: | ||
+ | ==== Troubleshooting ==== | ||
+ | From time to time there are problems with Ganglia' | ||
- | ==== Notes ==== | + | - Stop data collection daemon on HPC: '' |
+ | - Stop monitoring daemon on compute nodes: '' | ||
+ | - Start data collection daemon on HPC: '' | ||
+ | - Wait a minute or two | ||
+ | - Start monitoring daemon on compute nodes: '' | ||
- | It appears as if other CGIAR clusters have been configured to query our '' | + | Now go check the Ganglia web interface and see if the nodes have returned. |
- | < | + | |
- | # Gmond config file for Cluster Cluster. | + | |
- | # Generated by ganglia.xml node without aid from the database. | + | |
- | # | + | |
- | name " | + | |
- | owner " | + | |
- | url " | + | |
- | latlong " | + | |
- | mcast_channel " | + | |
- | + | ||
- | + | ||
- | # | + | |
- | # Increase size of gmond user (gmetric) hash table. | + | |
- | # | + | |
- | num_custom_metrics 2048 | + | |
- | + | ||
- | # Uncomment the next line for monitoring by the Rocks Cluster Network. | + | |
- | trusted_hosts 220.227.242.214 # hpc.icrisat.cgiar.org | + | |
- | trusted_hosts 202.123.56.187 | + | |
- | trusted_hosts 216.244.151.133 # ? | + | |
- | trusted_hosts 200.62.229.37 | + | |
- | + | ||
- | # Listen only on the private cluster | + | |
- | mcast_if eth0</ | + | |
- | + | ||
- | ==== Connections refused ==== | + | |
- | I kept seeing this error in ''/ | + | |
- | < | + | |
- | Apparently that is the Potato Center' | + | |
===== Monit ===== | ===== Monit ===== | ||
Line 71: | Line 48: | ||
=== Installation === | === Installation === | ||
+ | |||
+ | ---- | ||
+ | |||
Download the latest version of nagios while hot, from http:// | Download the latest version of nagios while hot, from http:// | ||
- | <code>$ wget http:// | + | <file>$ wget http:// |
+ | $ cd nagios-3.2.0 | ||
+ | $ ./ | ||
+ | $ make all | ||
+ | $ useradd nagios | ||
+ | $ make install | ||
+ | $ make install-init | ||
+ | $ make install-commandmode | ||
+ | $ make install-config | ||
+ | $ make install-webconf | ||
+ | </file> | ||
+ | === Configuration === | ||
+ | |||
+ | ---- | ||
+ | Running the following command will create a new file called htpasswd.users in the / | ||
+ | <code>htpasswd -c / | ||
+ | |||
+ | Download and install plugins | ||
+ | < | ||
+ | $ wget http:// | ||
+ | $ tar xfz nagios-plugins-1.4.14.tar.gz | ||
+ | $ cd nagios-plugins-1.4.14 | ||
+ | $ ./configure && make && make install | ||
+ | </ | ||
+ | Edit the configuration files to add host and services to be monitored: | ||
+ | < | ||
+ | |||
+ | Check remote services http:// | ||
+ | === Accessing Nagios === | ||
+ | |||
+ | ---- | ||
+ | http:// | ||
+ | |||
+ | with username = " | ||
+ | ==== Zabbix ==== | ||
+ | ---- | ||
+ | Installation: | ||
+ | |||
+ | RHEL-compatible Linux: Ref: http:// | ||
+ | < | ||
+ | name=Andrew Farley RPM Repository | ||
+ | baseurl=http:// | ||
+ | enabled=1 | ||
+ | gpgcheck=0' | ||
+ | |||
+ | |||
+ | |||
+ | And then you can install zabbix agent, zabbix server, zabbix get, or zabbix proxy with… | ||
+ | < | ||
+ | sudo yum install zabbix-agent | ||
+ | sudo yum install zabbix-server | ||
+ | sudo yum install zabbix-get | ||
+ | sudo yum install zabbix-proxy </ | ||
+ | |||
+ | If it fails to install, you might need to clean the metadata with the following command and try again… | ||
+ | |||
+ | sudo yum clean metadata | ||
+ | |||
+ | |||
+ | Debian-Based Linux: | ||
+ | ---- | ||
+ | < | ||
+ | root@simple: | ||
+ | zabbix-agent - network monitoring solution - agent | ||
+ | zabbix-frontend-php - network monitoring solution - PHP front-end | ||
+ | zabbix-proxy-mysql - network monitoring solution - proxy (using MySQL) | ||
+ | zabbix-proxy-pgsql - network monitoring solution - proxy (using PostgreSQL) | ||
+ | zabbix-server-mysql - network monitoring solution - server (using MySQL) | ||
+ | zabbix-server-pgsql - network monitoring solution - server (using PostgreSQL) | ||
+ | root@simple: | ||
+ | </ | ||
+ | |||
+ | === Accessing Zabbix === | ||
+ | |||
+ | http:// | ||
+ | username: Admin | ||
+ | password: zabbix | ||
+ |