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
Last revisionBoth sides next revision
server_monitoring:zabbix [2010/06/21 22:48] – created 172.26.14.218server_monitoring:zabbix [2011/03/15 08:49] 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 +
-baseurl=http://repo.andrewfarley.com/centos/$releasever/$basearch/ +
-enabled=+
-gpgcheck=0> /etc/yum.repos.d/andrewfarley.com.repo</code>+
  
-And then you can install zabbix agentzabbix server, zabbix get, or zabbix proxy with: +==== Active Directory Authentication ==== 
-<code>$ sudo yum install zabbix-agent +Set up the LDAP authentication pane like thismaking sure to specify a user's dn to bind as:
-$ 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: +{{:wiki:user:aorth:changelog:zabbix_ad_auth.png|}}
-<code>$ sudo yum clean metadata</code>+
  
 +Once that works, all 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.
 +====== 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.
  
-Debian-Based Linux+==== Install zabbix-agent ==== 
-<code>apt-cache search zabbix  +Installing the agent from apt
-zabbix-agent - network monitoring solution - agent +<code>$ sudo apt-get install zabbix-agent</code> 
-zabbix-frontend-php - network monitoring solution - PHP front-end +==== Configure zabbix-agent ==== 
-zabbix-proxy-mysql - network monitoring solution - proxy (using MySQL) +Edit the agent's config file, paying specific attention to the "Server" line: 
-zabbix-proxy-pgsql - network monitoring solution - proxy (using PostgreSQL) +<code>$ sudo vim /etc/zabbix/zabbix_agentd.conf</code> 
-zabbix-server-mysql - network monitoring solution - server (using MySQL) +Set at least these options in the config file: 
-zabbix-server-pgsql - network monitoring solution - server (using PostgreSQL) +<code>Server=172.26.16.249 
-# aptitude install zabbix-proxy-mysql zabbix-agent zabbix-server-mysql zabbix-frontend-php</code>+DisableActive=1</code> 
 + 
 +==== Start zabbix-agent ==== 
 +<code>$ sudo /etc/init.d/zabbix-agent start</code>
  
-====== Accessing Zabbix ====== 
  
-http://172.26.12.29/zabbix 
-username: Admin 
-password: zabbix