====== Zabbix ====== ===== Installation ===== Find an installation guide under www.zabbix.com/documentation/2.2/manual/installation. Under Debian Wheezy the steps are: # add zabbix repo to apt sources wget http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb dpkg -i zabbix-release_2.2-1+wheezy_all.deb apt-get update # install MySQL server apt-get install mysql-server # edit /etc/mysql/my.cnf [mysqld] character-set-server=utf-8 # restart MySQL server service mysql start # install zabbix server and GUI apt-get install zabbix-server-mysql zabbix-frontend-php # edit /etc/apache2/conf.d/zabbix and restart Apache php_value date.timezone Europe/Bern service apache2 restart #For using SNMP with Zabbix the following steps have to be done: apt-get install snmp apt-get install snmp-mibs-downloader download-mibs GUI: Enter the user name Admin with password zabbix to log in as a Zabbix superuser. ===== Configuration ===== ==== Zabbix ==== - Add Host (Define host to be supervised) - Add Item (Ping check: Simple check -> icmpping) - Define macro {$SNMP_COMMUNITY} value private - Create Item e.g. * Name: Serial Number * Type: SNMP v2 agent * Key: serialNumber -> (see private MIB Router) * SNMP OID: SNMPv2-SMI::enterprises.31496.10.40.3.0 * See private MIB: enterprises.31496, 10 = products, 40 = admin, 3 = serialNumber, 0 (???- index) {{:app-notes:zabbix1.png?nolink |}} Administration->Scripts {{:app-notes:zabbix2.png?nolink |}} "Name" is a path describing the menu structure {{:app-notes:zabbix3.png?nolink |}} To execute a script left-click on the host {{:app-notes:zabbix4.png?nolink |}} {{:app-notes:zabbix5.png?nolink |}} GPS Positions via SNMP {{:app-notes:zabbix6.png?nolink |}} Triggers {{:app-notes:zabbix7.png?nolink |}} ==== NetModule Router ==== * Administartive status: enabled * Operation mode: v1|v2c|v3 * Contact/Location: * Listening port: 161 * Read community: public * Admin access: enabled * Admin community: private * Allowed host: 0.0.0.0 (= all) or ==== NetModule Router Template ==== SNMP Builder is an add-in for Zabbix. It provides new web interface components to browse MIB trees and values. SNMP OIDs can then be automatically converted into Zabbix items and inserted into a template. The underlying snmpbuilder script uses calls to NetSNMP in order to communicate with devices on the network. [[https://www.zabbix.org/wiki/Snmp_builder|External Link]] ===== Links ===== * [[http://lab4.org/wiki/Zabbix_Schnellstart|Zabbix Schnellstart]] * [[https://www.zabbix.org/wiki/Main_Page|Zabbix Wiki]]