User Tools

Site Tools


server_monitoring:zabbix

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
server_monitoring:zabbix [2010/06/21 22:48] – created 172.26.14.218server_monitoring:zabbix [2011/03/15 08:23] aorth
Line 1: Line 1:
-====== Zabbix ======+====== Zabbix server monitoring ====== 
 +Zabbix is a network management system created by Alexei Vladishev. It is designed to monitor and track the status of various network services, servers, and other network hardware.  Zabbix uses a client/server model, where one central server collects or receives information about several clients ("clients" being servers or devices you want to monitor).
  
-Installation: Ref : http://www.zabbix.com/documentation/1.8/start+Links: 
 +  * [[http://www.zabbix.com/|Zabbix homepage]] 
 +  * [[http://andrewfarley.com/sysadmin/rpm-repository-online|CentOS Repo]]
  
-RHEL-compatible Linux: Ref: http://andrewfarley.com/sysadmin/rpm-repository-online +====== Zabbix server ====== 
-<code>$ sudo echo '[andrewfarley] +The Zabbix "server" is the central server which collects information about all the other servers (the "clients") This is usually the ''zabbix'' package in most Linux repositories.  The Zabbix server package installs a web interface, database schema, etc
-name=Andrew Farley RPM Repository +==== Active Directory Authentication ==== 
-baseurl=http://repo.andrewfarley.com/centos/$releasever/$basearch/ +Set up the LDAP authentication pane like this, making sure to specify a user's dn to bind as:
-enabled=+
-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: +{{:wiki:user:aorth:changelog:zabbix_ad_auth.png|}}
-<code>$ sudo yum install zabbix-agent +
-$ sudo yum install zabbix-server +
-$ sudo yum install zabbix-get +
-$ sudo yum install zabbix-proxy</code>+
  
-If it fails to install, you might need to clean the metadata with the following command and try again: +Once that worksall you need to do is create user accounts in Zabbix which correspond to the user's Active Directory username and the password will be verified against LDAP.  You can add that user to Zabbix groups as well. 
-<code>$ sudo yum clean metadata</code>+====== Zabbix client ====== 
 +The Zabbix "client" is a server which will be monitored by Zabbix.  This is usually the ''zabbix-agent'' package in most Linux repositories. 
 +<note>The zabbix-agent for CentOS from andrew farley's repo has some problems I think, take care when upgrading.  You might need to manually remove zabbix stuff from ///var/log/zabbix//, ///usr/share/zabbix// and ///var/spool/mailbox/zabbix//.</note> 
 +==== Active vs Passive ==== 
 +A Zabbix client can be "passive" or "active."  If you don't know the difference, you want passive.  A passive Zabbix client merely sits and listens, waiting to be periodically queried by the central Zabbix server.  An active client, on the other hand, actively sends status information to the central Zabbix server.
  
 +==== Install zabbix-agent ====
 +Installing the agent from apt:
 +<code>$ sudo apt-get install zabbix-agent</code>
 +==== Configure zabbix-agent ====
 +Edit the agent's config file, paying specific attention to the "Server" line:
 +<code>$ sudo vim /etc/zabbix/zabbix_agentd.conf</code>
 +Set at least these options in the config file:
 +<code>Server=172.26.16.249
 +DisableActive=1</code>
  
-Debian-Based Linux: +==== Start zabbix-agent ==== 
-<code># apt-cache search zabbix  +<code>$ sudo /etc/init.d/zabbix-agent start</code>
-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) +
-# 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