User Tools

Site Tools


server_monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
server_monitoring [2010/06/21 22:42]
172.26.14.218
server_monitoring [2010/10/19 17:18] (current)
aorth
Line 1: Line 1:
 ===== Server Monitoring ===== ===== Server Monitoring =====
-  * [[server_monitoring:ganglia|Ganglia]] - Monitors cluster CPU, disk, network usage +  * [[server_monitoring:ganglia|Ganglia]] -- Monitors cluster CPU, disk, network usage 
-  * [[server_monitoring:monit|Monit]] - Monitors specific services +  * [[server_monitoring:monit|Monit]] -- Monitors specific services 
-  * [[server_monitoring:nagios|Nagios]] - Monitors servers,hosts and services +  * [[server_monitoring:nagios|Nagios]] -- Monitors servers, hosts and services 
-  * [[server_monitoring:zabbix|Zabbix]] -Monitor servers,host and services +  * [[server_monitoring:zabbix|Zabbix]] -- Monitors servers, host and services
- +
-===== Nagios ===== +
- +
-Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. http://www.nagios.org/about +
- +
-=== Installation === +
- +
-Download the latest version of nagios while hot, from http://www.nagios.org/download +
-<file>$ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz  +
-$ cd nagios-3.2.0 +
-$ ./configure +
-$ 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 /usr/local/nagios/etc directory. It will also create an username/password entry for nagiosadmin. You will be asked to provide a password that will be used when nagiosadmin authenticates to the web server. +
-<code>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin </code> +
- +
-Download and install plugins  +
-<file> +
-$ wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz +
-$ tar xfz nagios-plugins-1.4.14.tar.gz +
-$ cd nagios-plugins-1.4.14 +
-$ ./configure && make && make install  +
-</file> +
-Edit the configuration files to add host and services to be monitored: +
-<code>vim /usr/local/nagios/etc/objects/localhost.cfg </code> +
- +
-Check remote services http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat +
-=== Accessing Nagios === +
- +
----- +
-http://172.26.0.205:4020/nagios/ +
- +
-with  username = "nagiosadmin" and password = "nagios" +
-==== Zabbix ==== +
----- +
-Installation: Ref : http://www.zabbix.com/documentation/1.8/start +
- +
-RHEL-compatible Linux: Ref: http://andrewfarley.com/sysadmin/rpm-repository-online +
-<code>sudo echo '[andrewfarley] +
-name=Andrew Farley RPM Repository +
-baseurl=http://repo.andrewfarley.com/centos/$releasever/$basearch/ +
-enabled=1 +
-gpgcheck=0' > /etc/yum.repos.d/andrewfarley.com.repo</code> +
- +
- +
- +
-And then you can install zabbix agent, zabbix server, zabbix get, or zabbix proxy with… +
-<file> +
-    sudo yum install zabbix-agent +
-    sudo yum install zabbix-server +
-    sudo yum install zabbix-get +
-    sudo yum install zabbix-proxy </file> +
- +
-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: +
----- +
-<code> +
-root@simple:~# apt-cache search zabbix  +
-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:~# aptitude install zabbix-proxy-mysql zabbix-agent zabbix-server-mysql zabbix-frontend-php +
-</code> +
- +
-=== Accessing Zabbix === +
- +
-http://172.26.12.29/zabbix +
-username: Admin +
-password: zabbix +
- +
server_monitoring.1277160128.txt.gz · Last modified: 2010/06/21 22:42 by 172.26.14.218