Monitoring with Zabbix

Competa Conference Center 31st May 2011
Raymond Kuiper

www.competa.com

Monitoring with Zabbix
Our agenda for today: About me Zabbix Architecture Retrieval of information Monitoring and alerting Lab Excercises Task 1 – 2 Break Data visualization Advanced features Lab Excercises Task 3 – 5
www.competa.com

com/in/raymondkuiper RaymondKuiper www.competa.com .linkedin.About me Raymond Kuiper Infrastructure Specialist at Competa IT Owner / consultant at Qixia Cisco / Linux guy Working with Zabbix since 2006 http://nl.

) Zabbix frontend (php) Zabbix Proxies (daemon) Zabbix Agents (daemon/service) www.competa.com . Oracle.Zabbix Architecture Zabbix monitoring environment consists of: Zabbix Servers (daemon) Database (MySQL. PostgreSQL. etc.

com .Zabbix Architecture Basic setup: Host Frontend (PHP) Host Database Zabbix Server Host Host www.competa.

com Host Zabbix Proxy Host .Zabbix Architecture Distributed setup: Database Host Frontend (PHP) Database Zabbix Node 1 Frontend (PHP) Host Database Zabbix Node 2 Host www.competa.

competa.com .Zabbix Architecture Differences between Zabbix Proxy and Zabbix DM node: Proxy is easier to maintain (no local configuration on proxy) Easy to setup (auto creation of DB on proxy) No alerting from proxy No local administrator access (no frontend) on proxy www.

v3) IPMI (hardware monitoring) Simple checks (ping. tcp connections. v2.Retrieval of information Zabbix can monitor hosts and devices via: Zabbix Agents (active and passive) SNMP (v1.com . Beta and undocumented) www.) Web (actively look at webpage content) External scripts (server side) Zabbix trapper scripts Telnet / SSH checks ODBC (monitor databases.competa. etc.

Retrieval of information 3rd Party extensions: Zabcat (JMX Zabbix bridge) Orabbix (Oracle) Postbix (PostgreSQL) MySQLbix (MySQL) Zbxlog (Syslog) …. www.competa.com .

Monitoring and alerting How the monitoring 'cascade' works: Hosts (IP / DNS based) Items (What values to retrieve) Triggers (When is a value worth noticing) Events ( Occurence of trigger activity) Actions (What to do when a event occurs) www.competa.com .

com .competa.Monitoring and alerting Hosts: Object that needs to be monitored Connect on IP / Hostname Can be grouped in 'Host groups' Can be linked to (multiple) 'Templates' www.

Can be grouped in 'Applications' www.competa.com .Monitoring and alerting Items Identified by a 'Key' Can contain numerical or textual values. Are based on Zabbix Agent / SNMP / IPMI / SSH / Telnet / Simple Checks / Scripts / Calculation / Zabbix Internals / ODBC (beta) Contain timer settings like update interval and history retention period.

but are very powerful Outcome is always numerical! (It's like math) www.competa. max.Monitoring and alerting Triggers Use logic to interpret item values Can check against things like min. avg or last value Textual recognition based on string or regex Also a lot of other things like dates and times can be used for comparison Can become quite complex.com .

com .Monitoring and alerting Events Trigger state change and duration Are logged for future reference or audit Can be acknowledged www.competa.

com .Monitoring and alerting Actions Work on the basis of conditions Send out (repeated) notifications Run scripts on hosts www.competa.

Lab Excercises Complete these tasks Task 1: Configure a new host Task 2: Using Templates Break www.competa.com .

Data visualization Different methods Graphs Maps Screens Reports www.competa.com .

Data visualization Graphs Normal.competa. Stacked or Pie www.com .

com .Data visualization Maps www.competa.

com .competa.Data visualization Screens (can be bundled in slide shows) www.

IT Services (SLA) www.Data visualization Reports Bar graphs.competa.com .

Web monitoring (monitor websites) Discovery / Auto registration (automatically add hosts to monitoring) Maintenance periods (disable monitoring for a host during specific times) Inventory (CMDB like information) XML import / export API (JSON) www.Advanced Features Zabbix provides some advanced features to ease monitoring.competa.com .

competa.Lab Excercises Complete these tasks Task 3: Web monitoring Task 4: Zabbix Trappers Task 5: Daunting tasks if time will permit it Thanks for attending! www.com .