Zabbix 1.

8 Manual [Zabbix]

Página 1 de 285

Contact Us | Customer Login Zabbix documentation Zabbix 1.8 Zabbix API Zabbix manpages Zabbix Manual Zabbix Protocols Zabbix 1.8 Manual Zabbix documentation in French Zabbix documentation in Japanese Zabbix documentation in Portuguese Zabbix documentation in Russian

Zabbix 1.8 Manual
1. About
1.1. Overview of Zabbix
1.1.1. What is Zabbix?
Zabbix was created by Alexei Vladishev, and currently is actively developed and supported by Zabbix SIA. Zabbix is an enterprise-class open source distributed monitoring solution. Zabbix is software that monitors numerous parameters of a network and the health and integrity of servers. Zabbix uses a flexible notification mechanism that allows users to configure e-mail based alerts for virtually any event. This allows a fast reaction to server problems. Zabbix offers excellent reporting and data visualisation features based on the stored data. This makes Zabbix ideal for capacity planning. Zabbix supports both polling and trapping. All Zabbix reports and statistics, as well as configuration parameters, are accessed through a web-based front end. A web-based front end ensures that the status of your network and the health of your servers can be assessed from any location. Properly configured, Zabbix can play an important role in monitoring IT infrastructure. This is equally true for small organisations with a few servers and for large companies with a multitude of servers. Zabbix is free of cost. Zabbix is written and distributed under the GPL General Public License version 2. It means that its source code is freely distributed and available for the general public. Commercial support [http://www.zabbix.com/support.php] is available and provided by Zabbix Company.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 2 de 285

1.1.2. What does Zabbix offer?
Zabbix offers: ■ auto-discovery of servers and network devices ■ distributed monitoring with centralised WEB administration ■ support for both polling and trapping mechanisms ■ server software for Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X ■ native high performance agents (client software for Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X, Tru64/OSF1, Windows NT4.0, Windows 2000, Windows 2003, Windows XP, Windows Vista) ■ agent-less monitoring ■ secure user authentication ■ flexible user permissions ■ web-based interface ■ flexible e-mail notification of predefined events ■ high-level (business) view of monitored resources ■ audit log

1.1.3. Why use Zabbix?
■ Open Source solution ■ highly efficient agents for UNIX and WIN32 based platforms ■ low learning curve ■ high ROI. Downtimes are very expensive. ■ low cost of ownership ■ very simple configuration ■ Centralised monitoring system. All information (configuration, performance data) is stored in relational database ■ high-level service tree ■ very easy setup ■ support for SNMP (v1,v2). Both trapping and polling. ■ visualisation capabilities ■ built-in housekeeping procedure

1.1.4. Users of Zabbix
Many organisations of different size around the world rely on Zabbix as a primary monitoring platform. 0 Comments

2. Goals and Principles

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 3 de 285

2.1. Main Goals of Zabbix Development
There are several goals Zabbix is trying to achieve: ■ become recognized Open Source monitoring tool ■ create Zabbix user group, which helps making the software even better ■ provide high-quality commercial support

2.2. Main principles of Zabbix development
■ be user friendly ■ keep things simple ■ use as few processing resources as possible ■ react fast ■ document every aspect of the software

What's new in Zabbix 1.8
More than a year in making, Zabbix 1.8 has arrived with lots of new features, as well as improved old ones. You can introduce yourself to the changes for this new version of Zabbix in the following section.

1. Notable improvements
With so many changes it is impossible to pick 3 most notable ones - which is attempted below. For this reason, it is suggested to read on, as some generally minor feature might be very important to you. ■ Performance improvements ■ Full Unicode support ■ Bar reports ■ API technical preview

2. New features and improvements for the frontend
Zabbix web frontend is the feature that sets it apart from other solutions. Powerful, yet easy to use official GUI is shipped with the default package. It provides both non-intimidating access for novice users and large scale configuration features for sizable installations. Being most user-visible part, we will start by looking at many new features and improvements in Zabbix 1.8 for the web frontend. 2.1. Bar reports Zabbix already has easy to use simple graphs that do not require any configuration - these are provided for every numeric item. Custom graphs, along with a couple simplistic reports, allow to look at the data in context. Zabbix 1.8 brings much more powerful built-in reporting.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 4 de 285

New report category, bar reports, allows to look at the data from many different angles. Want to look at the weekly temperatures in the server room for the last two months? Have to compare webserver load for the first month of every quarter this year? All that and more is possible with this new feature.

2.2. Full Unicode support While previous Zabbix versions were multi-language friendly, providing several frontend translations, it was not a truly global thing - the most popular encoding, Unicode, was not fully supported. Zabbix 1.8 now fully supports Unicode/UTF-8, allowing for a true localised or multilanguage setup. 2.3. Improved time period navigation In Zabbix, single control is used to select time period displayed for many views, including simple and custom graphs, raw data, screens and web monitoring. Already improved in 1.6, time period selector has been improved in 1.8 further.

This scrollbar allows easy dragging and resizing of it. Additionally, links on the left hand side allow to choose some predefined, often used time periods and move displayed period forward/backward in time. And the dates on the right hand side actually work as links, popping up a calendar and allowing to set specific start/end time.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 5 de 285

Notice the dynamic/fixed link in the lower right hand corner? It can be used to control whether time period is kept constant when you change start/end time. In addition to the screenshots you can also view the video [http://blip.tv/file/2950510] of using graph time period controls. 2.4. Improved graphs Zabbix graphs have been improved in many ways. This includes both visual and functional improvements, like the time period selector already mentioned. For example, information about max/min/avg values is presented clearly as a table.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Axis labels in trunk.Zabbix 1. http://www. Gradient line support in graphs Zabbix graphs support several line styles. labels are now easier to read. Instead of prioritising some arbitrary point in time.zabbix. Improved timeline in charts Zabbix graphs .8 brings one more .4. depending on graph scale.2. and 1.or charts .6.8 Manual [Zabbix] Página 6 de 285 2.6 and 1. Comparing 1. And even this representation has been improved in the new version.1.usually display time on x axis. actual points in time like change of a day are prioritised.8/complete 19/11/2010 .4. As can be seen.com/documentation/1.gradient line. It's easier to understand how that works by looking at an actual example. Sometimes Zabbix will even use more “human readable” labels: 2.8: Axis labels in 1.

In previous versions.coordinates of each element on the map had to be specified manually. as well as selected element detail displaying in a popup. 2.4.5.8/complete 19/11/2010 . Map editing in Zabbix 1.org] font is now used for graphs for nice looking text . http://www.Zabbix 1.com/documentation/1.and for Unicode capabilities.8 Manual [Zabbix] Página 7 de 285 2.3.zabbix.8 has been greatly improved by adding drag and drop support. editing such network maps was not easy . DejaVu font used for graphs DejaVu [http://dejavu-fonts. Improved map editing Zabbix supports network maps where monitored environment can be laid out on a background image to provide user friendly overview.

as well as configure all aspects of monitoring. Instead of separate sections for items.8/complete 19/11/2010 . triggers and so on.zabbix. In addition to that map links may have optional text for displaying arbitrary information. graphs.tv/file/2942525] of map editing. they are folded into host configuration section.openstreetmap.8 Manual [Zabbix] Página 8 de 285 You can even watch a video [http://blip. Background map CC-BY-SA Openstreetmap [http://www. Layout of this configuration has been redone in 1.8. bandwidth data.org/]. for example. http://www. 2. Changed configuration layout Zabbix web frontend provides convenient way to display and visualise received data. where convenient linking allows for easy access to all of these entities and more.6.com/documentation/1.Zabbix 1.

com/documentation/1. Previous versions offered ways to filter this information. Visual trigger editing frontend Usage thresholds and any other problem conditions are freely configurable by user. host group configuration has been brought out on the configuration menu.8 Manual [Zabbix] Página 9 de 285 On the other hand. It also incorporates ability to provide test data and try out trigger behaviour.7. and 1. a frontend to create triggers visually has been added.zabbix. http://www. New and improved filters As Zabbix frontend provides means to access all the information. it can be a daunting task to find the desired one.8/complete 19/11/2010 . Another change is general configuration being moved to administration section to avoid Zabbix administrator level users from having access to global configuration parameters. and complex expressions can be used for each trigger to define what is considered a problem. These definitions are called triggers. (screenshot) 2. There is a special mode for creating log related triggers.8 improves situation in this regard by adding new filters and making existing ones more powerful. In addition to ability to edit trigger expressions directly.8. 2.Zabbix 1.

8/complete 19/11/2010 .8 Manual [Zabbix] Página 10 de 285 2. thus it is displaying quite a lot of information. 2.8.Zabbix 1. and it was possible to display recent events for all the problems.com/documentation/1. In 1.zabbix. this screen gained has been changed. Latest data section in Zabbix frontend allows to see exact values for all monitored metrics. Being able to quickly find desired data gathering entries is crucial to efficient configuration. It presents found values and results can be filtered further. limited by day count.3. It is now possible to filter this screen by freeform search against item descriptions. but sometimes you need the real data. Latest data filter Looking at shiny graphs is tempting. subfilter becomes available. Reworked "Status of triggers" view Trigger view is widely used to display list of current problems.8. providing new features like expanding individual triggers to show their events and confirming all events for a trigger. 2.8. 2.8. Items filter Item configuration section is the one where all aspects regarding data gathering are configured. In version 1.4.2. Zabbix frontend records all operations in an audit log. and in Zabbix 1.8 audit logs now can be filtered quite extensively to find exactly the changes you are looking for.8 there's an improved filter for items that allows for much more detailed searching.1. Audit filter Accountability is important on any system with more than one user (and on many systems with single user as well).8. http://www. (screenshot) After performing initial filtering.

8. You can watch a video [http://blip. network maps.ogg video).zabbix. ■ Using icons on the screen edges.com/documentation/1.Zabbix 1.tv/file/2941499] of this feature (site also allows to download original .5. Configuring them initially was not very hard.9. Dragging an element to empty cell will move it there. Global search There's now a search box in the upper right corner. 2. host groups and templates. allowing to get to the data easier and more quickly. This includes: ■ Drag and drop support. Screen editing has been greatly improved in 1.10. 2. Results allow for a quick access to found entities and their elements: http://www. rows now can be inserted and removed from arbitrary locations.8/complete 19/11/2010 . Improved screen editing Zabbix screens is a feature that allows to group many frontend elements. including graphs. but making any significant changes was nearly impossible in some cases.8 Manual [Zabbix] Página 11 de 285 2. raw data and many others. dragging an element on occupied cell will switch these elements.8. Other filters improved Filters in other sections of the frontend have been improved as well. which allows searching in hosts.

Zabbix 1. These lists can get quite long on large installations of Zabbix.11.com/documentation/1. 2. items or triggers.3.whether it's a list of hosts.8/complete 19/11/2010 . showing recently accessed pages. in previous versions existing history entries would not switch language.2. Minor frontend improvements For a GUI minor visual change can bring large benefits to the user. Cleaner error displaying Error messages are now shown as icons and error text is available in a popup.8 has many minor improvements and features that should make working more productive and pleasant. Configuring rows per page in user profile http://www.1. History strings saved by reference At the top of the frontend. Clicking the icon opens the popup to allow copying of the message.11.11. only new entries would be added in the correct language. When a language is switched in frontend. Entry count per page is configurable in user's profile. 2.8 supports splitting long lists in multiple pages.11. Zabbix 1.zabbix. Paging for entity lists added Many locations of Zabbix frontend present information as lists .Zabbix 1. 2.8 Manual [Zabbix] Página 12 de 285 2. Now history strings change appropriately. there's a breadcrumbs type history. and that slows down frontend considerably.

11.4. Debug mode added for frontend Mostly useful for developers. 2.8/complete 19/11/2010 . 2.9.for example. but can be handy when trying to determine source of a problem for others as well.6.com/documentation/1. Downstream linked items in Zabbix 1.5. it is possible to edit SNMP parameters like community string. IP address becomes default option In host creation form.7.8 most of these icons open Zabbix manual in a new browser window or tab. or allowed hosts for trapper items. It is also used in page title. IP address is now the default choice. Debug mode can be enabled on user group basis.11.11. Templates can be linked to monitored hosts and they determine what and how is monitored. 2.11.8 Manual [Zabbix] Página 13 de 285 Entry limit in action 2.11.Zabbix 1.11.8 are more flexible now .8.zabbix. in items that are linked in from templates. 2. and in Zabbix 1. More flexible linked items Zabbix supports very powerful templating that makes large scale configuration management easy. Help icons lead to online manual Oldtime Zabbix users might remember the days when help icons from Zabbix frontend linked to the online manual. 2. http://www. Ability to display server name Setting variable ZBX_SERVER_NAME allows Zabbix server name to be displayed in the frontend upper right corner. A minor but welcome improvement in 1.8 . With the conversion to online documentation that again is possible.selected rows now are hilighted. Selected rows are highlighted now Most of the entries in these lists can be selected for performing some operation on them.

Zabbix 1.8 Manual [Zabbix]

Página 14 de 285

3. API
In version 1.8 first, Zabbix provides JSON-RPC [http://json-rpc.org/] API. It already allows to perform most of the configuration changes, thus enabling powerful means for automated or complex setup management. While API itself might not be that exciting for casual users, it enables creation of various tools. One such tool already has been created - Zabbix commandline utility or Zabcon [http://www.zabbix.com/wiki/doc/zabcon].

Zabcon is especially exciting for users who would like to perform uncommon, large scale changes, as it allows easy scripting without programming skills. Zabbix management from servers without GUI installed also is expected to be possible, and surely users will come up with innovative and impressing uses for this tool. Note: API is currently considered to be in a technical preview state and can change in next versions.

4. Improvements for larger installations
Zabbix is being used in larger and larger environments every day. 1.8 release introduces several changes that are specifically useful in average and above setups. 4.1. Performance improvements When monitoring hundreds and thousands of devices, load on the monitoring server hardware can become a serious issue. Zabbix 1.8 brings many different improvements to the performance in several key areas. 4.1.1. Increased Zabbix server and proxy performance Doing the main work behind the scenes, Zabbix server has been improved greatly to allow gathering more data on the same hardware. As Zabbix proxy shares some code with the server, it has benefited from these changes as well. 4.1.1.1. Much more efficient polling Hundreds of pollers can be executed for greater parallelism and performance. The pollers do not communicate directly with the database and use very little of server CPU and memory resources.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 15 de 285

4.1.1.2. Added configuration data cache module Database cache is enabled by default and can not be disabled. Configuration option StartDBSyncers has been removed from Zabbix server and proxy configuration files. A special internal check has been introduced, zabbix[wcache,*] to monitor health of this cache. 4.1.2. Frontend images recompressed with pngcrush To reduce amount of data that users have to retrieve from webserver when using Zabbix frontend, all PNG images have been recompressed for optimal size. 4.1.3. Items with SNMP dynamic index use one connection Zabbix supports monitoring SNMP metrics that have dynamic identifiers. In version 1.8 index resolving and data retrieval is performed in a single connection now, reducing network load and load on the monitored devices. 4.2. Automated host management improvements For larger or constantly changing environments replicating these changes in Zabbix configuration can be a challenge. Zabbix already supported network discovery, and 1.8 now brings both improvements to the network discovery, as well as new methods to automate adding of new devices to monitor. 4.2.1. Network discovery improvements Network discovery [http://www.zabbix.com/documentation/1.8/manual/auto-discovery], available in previous versions, has received multiple improvements. 4.2.1.1. Port interval support For services where it's appropriate, port interval support has been added. 4.2.1.2. New action operations Based on discovery events, two new operations have been added, thus increasing available operation count for network discovery to 10. ■ Enable host ■ Disable host

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 16 de 285

4.2.1.3. IP mask support Industry standard network mask notation can now be used in network discovery, for example, 192.168.1.0/24. 4.2.1.4. Support for multihomed devices If a host provides some service on multiple IP addresses, it would be discovered as multiple hosts in Zabbix versions before 1.8. Starting with 1.8, it is possible to use different uniqueness criteria for some services, for example system.uname returned by Zabbix agent or any OID returned by SNMP capable host. 4.2.1.5. SNMPv3 support Network discovery in Zabbix 1.8 supports SNMPv3 with all the corresponding functionality. 4.2.2. Auto registration for active agents Completely new in Zabbix 1.8, it is possible to allow active Zabbix agent auto-registration, after which server can start monitoring them. This allows to add new hosts for monitoring without any manual server configuration for each individual host. The feature might be very handy for automatic monitoring of new Cloud nodes. As soon as you have a new node in the Cloud Zabbix will automatically start collection of performance and availability data of the host. 4.3. Support for global, template and host level macros macros (or variables) has been added. These can be defined globally for Zabbix installation, on template and host level. For example, defining the following macros on a host level allows to set custom thresholds per host, even if all hosts are linked against single template: Support for user definable

[http://www.zabbix.com/documentation/1.8/manual/config/macros#global_and_host_level_macros]

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 17 de 285

In this case, templated trigger expression would be:
{ca_001:system.cpu.load[,avg1].min({$CPULOAD_PERIOD})}>{$MAX_CPULOAD}

5. Various
5.1. Host maintenance Host and host group maintenance has been added to Zabbix. Hosts that are in maintenance are indicated as such in Monitoring → Triggers view.

If a problem happens during the maintenance and is not resolved, notification is generated after maintenance period ends. 5.2. Improved audit log Zabbix provides accontability by recording all user logins and changes to the Zabbix configuration in the audit log. Audit log in 1.8 has been improved, and instead of simply seeing that something has changed, many entities will have exact changes recorded.

Exact changes made to item preserved

Exact changes made to trigger preserved

5.3. New macros Zabbix provides very useful variables - called macros - to be used in item names, notifications and elsewhere. Zabbix 1.8 increases the amount of available macros, as well as making some macros usable in more locations. 5.3.1. In notifications Along with existing macros new ones can be used in notifications that are sent out. ■ {NODE.*[1..9]}

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 18 de 285

■ {ITEM.LOG.*[1..9]} ■ {ITEM.VALUE} and {ITEM.VALUE[1..9]} ■ {ITEM.LASTVALUE[1..9]} ■ {HOST.CONN[1..9]} {HOST.DNS[1..9]} {IPADDRESS[1..9]} ■ {TRIGGER.KEY[1..9]} ■ {HOSTNAME[1..9]} ■ {ITEM.NAME[1..9]} ■ {PROFILE.*[1..9]} ■ {EVENT.ACK.STATUS} ■ {EVENT.ACK.HISTORY} ■ {TRIGGER.EVENTS.UNACK} 5.3.2. In map labels Map labels allow using handy macros like the current value of some item. ■ {TRIGGERS.UNACK} 5.4. Advanced regular expression editor Advanced regular expression editor was added to Zabbix with ability to test regular expressions. It is now possible to define complex regular expression with easy to use interface and reuse them with simple reference. 5.5. IPv6 support for SNMP monitoring In addition to the SNMP related improvements for network discovery, IPv6 support has been implemented for SNMP monitoring. 5.6. Supported PHP version changes Zabbix frontend is based on PHP [http://php.net]. Since the last stable Zabbix release there have been major changes in PHP versions, and Zabbix frontend has been changed accordingly. 5.6.1. Support for PHP 5.3 added Released in 2009.06.30, PHP 5.3.0 was out for some time to require support of Zabbix frontend. 5.6.2. Support for PHP 4 dropped Last bugfix release in 2008.01.03 and last release with security fixes in 2008.08.07, PHP4 was not receiving bugfixes anymore. Zabbix 1.8 requires PHP 5.0 or later.

6. Minor improvements
We call these minor, but for somebody one of these might be the biggest change in Zabbix 1.8. 6.1. Basic authentication support in web monitoring Web monitoring now supports basic HTTP authentication. It can be configured per scenario.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

10.10.8 introduces several new checks and improves old ones.100] This would send five 128 byte packets to host with IP 10. Item icmpping has gained the following parameters: ■ target . CPU switches support on Linux Key system.zabbix. ■ icmppingloss ■ net. Zabbix 1.10.2. ■ timeout . http://www.host IP or DNS name. avg.query 6.1.10. 6.number of packets. 6. For fast growing file the number can be increased using the new parameter. ■ count . Item icmppingsec has gained all the above parameters.packet size in bytes.1.maxlines.2.128. New and improved monitored metrics While Zabbix can be extended. 6.cpu.2.2.2. Default mode is avg.switches can be used for Linux hosts.2. New items Several completely new items have appeared.8/complete 19/11/2010 . Added Windows services key Added services key for Windows which can return services in a particular state.2.8 Manual [Zabbix] Página 19 de 285 6.300.5.Zabbix 1.tcp. and one additional: ■ mode . max. built-in checks require less resources and are easier to use. ICMP items have new parameters Zabbix ICMP items now are much more flexible.dns. By default.2.com/documentation/1.one of min. Zabbix agent does not send more than 100 log lines per second per log file.time between successive packets in milliseconds. ■ interval .1.10.3.10 with 300 ms interval between them.1. Now it is possible to use a key like this: icmpping[10. ■ size . 6. and use 100 ms timeout. 'maxlines' parameter for log items Item keys log and eventlog now have new parameter .timeout in milliseconds. It specifies maximum number of new lines per second the agent will send to Zabbix server or Proxy.

4. SSH and telnet checks Now SSH and telnet can be used for direct.6. sometimes found on devices like printers. that was not easy enough. 6. SSH supports both password and key authentication methods.5. this functionality will be available in future releases.com/documentation/1. Improved sample configuration files Sample configuration file layout was changed.2.Zabbix 1. source and event ID on the agent side. 6.8/complete 19/11/2010 . agent-less monitoring.8 natively supports two new input data types.2.2.2.2. which is consistent with other operating systems. It makes possible very effective remote monitoring of network devices. appliances and servers without use of Zabbix Agent. as well as allowed ranges. http://www.7. Now all parameters are included. Zabbix 1.5. ■ Octal ■ Hexadecimal 6. Currently SSH and telnet cannot be used in actions. LVM swap devices support LVM devices are now supported as swap devices on Linux. First CPU number changed on Linux First CPU on Linux is now referred to as 0. New Windows eventlog filters Windows eventlog entries now can be filtered by type.8. Positive sign for decimal values supported If incoming decimal (float) value is preceded by a + sign. 6.3. it is supported as a positive number now.8 Manual [Zabbix] Página 20 de 285 6. 6. New input data types While different base values could be monitored before with user parameters. and their default values. are documented.zabbix.4. 6. Client utilities moved to bin Zabbix client utilities zabbix_get and zabbix_sender were moved from sbin to bin. 6.

zabbix.7. 6.8 Manual [Zabbix] Página 21 de 285 6. http://www.10. 6. Host status propagation from proxies If a host is monitored by a proxy.8. Rotated logfile monitoring Zabbix supports logfile monitoring.11. status of the host will be correctly displayed and updated in Zabbix front-end. as it is now possible to specify regular expressions in logfile monitoring. 6. which greatly improves performance and stability of Zabbix setups using Oracle as a back-end database. all critical messages can be delivered by using SMS messaging. The option can be used to migrate older historical data from other monitoring tools to Zabbix database for graphing and long-term analysis.org/wiki/Oracle_Call_Interface].8 improves it further. if logfile name includes date . 6. Added manpages Manpages for all Zabbix processes have been added. Manual user unblocking Ability to manually unblock users who have been locked out by bruteforce protection was added. while other messages using both email and SMS without creating multiple actions.for example. Oracle support is now implemented using native Oracle Call Interface [http://en.8/complete 19/11/2010 .8.Zabbix 1. Clicking on the Blocked link will unblock this user. Timestamp support for zabbix_sender Support for -T parameter in zabbix_sender has been added. Notification media can be chosen in action operations It means that it's possible to define messages that will be sent to one or several medias only. For example. and version 1. If an application is writing to a new logfile with varying name .it is much easier to monitor with Zabbix 1.12.com/documentation/1. Native support of Oracle Previous version of Zabbix had a dependency on a third party library called sqlora8. 6.wikipedia.9. The library is not actively developed any more. which allows to set timestamp for each value.6. 6.

6.x can be used with Zabbix 1.4. Before upgrading.1.Zabbix agent.8/complete 19/11/2010 .2 ■ 1. Online documentation Documentation from an inflexible PDF file has been converted to online format where anybody can comment on individual pages.2.org/wiki/OpenDocument] export functionality.8.3.6.8.3 Installation and upgrade See the installation section for new installations.zabbix. Zabbix 1.8 frontend three different monitoring methods have their status displayed . read important notes.x and Zabbix 1.14. Older Zabbix proxies of version 1. while Black&blue theme uses blue colour. Zabbix 1.3. What's new in further releases See detailed information on new features and significant changes in other 1.wikipedia. 6. Detailed availability information displaying Instead of simply displaying generic host status.8 series releases: ■ 1.8 Manual [Zabbix] Página 22 de 285 6.x. See upgrading section if upgrading from an older Zabbix release.x can't be used with Zabbix 1. in 1. Installation See the installation section for full details.8. they should be upgraded.com/documentation/1. Version compatibility Older agents from Zabbix 1.0. Offline documentation can still be obtained with ODT [http://en. It does not require any configuration changes on agent side. SNMP and IPMI.8. Default theme uses green to denote availability.1 ■ 1.3. Errors related to each method are stored separately and can be obtained by moving mouse cursor over the error icon. 6. Installation and Upgrade Notes 6.13. http://www.1. 6.8.Zabbix 1.

Old syntax is still supported.8. including database access parameters.size now takes into account reserved diskspace for root user.3.3 ■ Parameter service. 6.3. ■ Uploading of images for network maps may fail if database is not configured properly. ■ Maximal PHP memory size should be at least 128MB (option memory_limit). ■ XML export includes SNMP and other information for all items. ■ Comment at the end of a configuration file line is not allowed anymore (this worked for numeric parameters only before).ntp for item keys net.fs.php and modify parameters. ■ Maximal PHP POST size should be at least 16MB (option post_max_size). Make sure database.3.service and net.8.8 ■ All hosts now are required to belong to at least one group.Zabbix 1. Known problems 6. http://www. ■ Sorting in frontend is not performed for entities with positional variables (like item names with $1 etc).3.perf renamed to ntp.8. To avoid this issue.8 ■ PHP mbstring check may fail with PHP < 5.4. For version 1.3.14 and later is known to work. For version 1.zabbix.2.fs. For version 1.util key on Linux now starts with 0.2 and 1.example file to zabbix.1.8. ■ For IPMI support you need a recent OpenIPMI version . ■ CPU index for system.service.3.tcp.2). ■ Key vfs.3.cpu. Important notes 6.2. 6.php.tcp. ■ Key vfs.0.3.1. copy zabbix.8 Manual [Zabbix] Página 23 de 285 6. Also see requirement changes for version 1.3. System requirement changes Additional or increased system requirements: ■ Support for PHP 4 dropped.conf. tables and fields are set to UTF-8 encoding.com/documentation/1.5.3.8.conf.5. ■ Hostnames with spaces do not work when sending data from a file with zabbix_sender (fixed in 1.8/complete 19/11/2010 . ■ Trying to run IPv6-enabled daemon on a system without IPv6 support fail: Listener failed with error: socket() for [[(null)]:10051] failed with error 97: Address family not supporte 6.2 in Zabbix 1.size returns data in bytes for all operating systems now.

8/complete 19/11/2010 . 6. Stop Zabbix server Stop Zabbix server to make sure that no new data is inserted into database. Backup existing Zabbix database This is very important step. Opening such a graph usually will swap working time and trigger showing with percentile values. or compile from the scratch on the target system.8.3. This only affects you if those graphs are being used.Zabbix 1. choosing Configuration of triggers. when showing all hosts from all groups.4.6. If that is the case.5. 6.6.6. These include: ■ Incorrect trigger appearing.8 Manual [Zabbix] Página 24 de 285 ■ Precompiled binaries (agent.6.3. 6. This trigger can be deleted by clicking on it. new parameters added.2. power off. Backup configuration files.3.5.conf were changed in 1. configuration files and PHP files. 6.6.zabbix.3. ■ Depending on the installation time of your Zabbix server.com/documentation/1.3. It will help if upgrade procedure fails (lack of disk space.6. 6.8. The whole upgrade procedure may take several hours depending on size of Zabbix database. any unexpected problem).5.3. Make sure that you have backup of your database. Upgrade procedure The following steps have to be performed for successful upgrade from Zabbix 1.8.2 Because of frontend changes. You might have to remove groupid=&hostid=& part from the URL when attempting to delete the trigger.x to 1.6.3. get) might not work on 64bit systems with glibc versions older than 2.3. default graphs might have incorrect configuration. Review Server configuration parameters Some parameters of zabbix_server. Use older versions.1. 6. then clicking on Delete in the trigger editing form and confirming the deletion. For version 1. Install new server binaries You may use pre-compiled binaries or compile your own. 6. You may want to review them. usually in Monitoring → Triggers section. with name **ERROR**. Common symptom is failing to start with the error message: Floating point exception. PHP files and Zabbix binaries Make a backup copy of Zabbix binaries.2. some installations might see incorrect older data appear in frontend. sender. simply fixing and saving the graph will solve the problem. http://www.

8 Manual [Zabbix] Página 25 de 285 ■ Configuration option StartDBSyncers has been removed from Zabbix server and proxy configuration files.6.6.6. it can take many hours.8/postgresql/patch. httptest drop index httptest_2. 6. actions drop index actions_1. graphs_items drop index graphs_items_1.sql ■ Oracle: upgrades/dbpatches/1. It is recommended to test the upgrade procedure in a non-production environment. Also make sure that you have enough free disk space. actions_1.3.6. dservices_1.sql ■ PostgreSQL: upgrades/dbpatches/1. If you are converting the database to UTF-8. create index. http://www. escalations_2. history_text_2.3. httptest drop index httptest_3. Oracle or PostgreSQL drop drop drop drop drop drop drop drop drop drop drop index index index index index index index index index index index dhosts_1.8/oracle/patch. services drop index services_1. Upgrade database Before running upgrade scripts drop the following indexes: MySQL alter alter alter alter alter alter alter alter alter alter alter table table table table table table table table table table table dhosts drop index dhosts_1. services_1. drop index). Ignore any warning messages about non-existent indexes! Database upgrade scripts are located in directory upgrades/dbpatches/1. graphs_items drop index graphs_items_2. for PostgreSQL it may take several hours or more because of conversion of existing historical data.8/complete 19/11/2010 . history_log_2. Make sure that you have enough permissions (create table.x to 1. history_log drop index history_log_2. graphs_items_2.8 only! For upgrade from earlier versions use also upgrade scripts from Zabbix 1.7.8/mysql/patch. graphs_items_1. escalations drop index escalations_2.zabbix.com/documentation/1. These scripts are for upgrade from Zabbix 1. httptest_2.8/<db engine>: ■ MySQL: upgrades/dbpatches/1.6.Zabbix 1.x.sql Database upgrade should take around 10-15 minutes. history_text drop index history_text_2. Install new Zabbix GUI Follow installation instructions. drop table. httptest_3. dservices drop index dservices_1. 6.

1.com] for information about the current version and for downloading instructions. however it is also included into number of OS distributions pre-compiled. If you're planning to keep a long history of monitored parameters. 128 MB of physical memory and 256 MB of free disk space could be a good starting point. Installation 1. Zabbix is distributed as a source package. Requirements 2.Zabbix 1. Start new Zabbix binaries Start new binaries.1. 2. the amount of required disk memory obviously depends on the number of hosts and parameters that are being monitored.zabbix. you should be thinking of at least a couple of gigabytes to have enough space to store the history in the database. Memory Requirements Zabbix requires both physical and disk memory. 0 Comments 2.3. 2. Check log files to see if the binaries have started successfully.8 Manual [Zabbix] Página 26 de 285 6.8. The more physical memory you have. Hardware requirements 2. CPU Requirements Zabbix and especially Zabbix database may require significant CPU resources depending on number of monitored parameters and chosen database engine.1.zabbix.6.3.8/complete 19/11/2010 . Amount of memory allocated for the connection depends on configuration of the database engine. Each Zabbix daemon process requires several connections to a database server. USB-to-serial converter also will work.1.zabbix. How to Get Zabbix Check the Zabbix Home Page at http://www.2. Other hardware A serial communication port and a serial GSM Modem required for using SMS notification support in Zabbix. Examples of hardware configuration The table provides several hardware configurations: Name Small Platform Ubuntu Linux CPU/Memory PII 350MHz 256MB MySQL MyISAM Database 20 Monitored hosts http://www.4.com/documentation/1. However.com [http://www.1. 2.1. the faster the database (and therefore Zabbix) works! 2.

0 or later PHP GD module must support PNG images. Zabbix operates on market leading versions. 2. and the PHP scripting language. if provided as a separate package by the distributor PHP session support http://www.3.zabbix. Software Requirements Zabbix is built around modern Apache WEB server. --enable-bcmath php-xml or php5-dom. Vista (only Zabbix agent) Zabbix may work on other Unix-like operating systems as well. if provided as a separate package by the distributor php-session. --with-ttf php-bcmath.12 later 5.8 Manual [Zabbix] Página 27 de 285 Medium Large Very large Ubuntu bit Ubuntu bit Linux Linux 64 AMD Athlon 3200+ 2GB Dual Core 6400 MySQL InnoDB RAID10 MySQL InnoDB or PostgreSQL Fast RAID10 PostgreSQL MySQL InnoDB or 500 >1000 >10000 64 Intel 4GB RedHat Enterprise Intel Xeon 2xCPU 8GB Actual configuration depends on number of active items and refresh rates very much. 2. fault tolerance and resilience. The following software is required to run Zabbix: Software Apache PHP PHP modules: php-gd PHP TrueType support PHP bc support PHP support XML Version 1.2. It is highly recommended to run the database on a separate box for large installations. UNIX is the only operating system that can consistently deliver the necessary performance. leading database engines. 2003. XP. Supported Platforms Due to security requirements and mission-critical nature of monitoring server.8/complete 19/11/2010 .0 later or or Comments GD 2.Zabbix 1.com/documentation/1.3. Zabbix is tested on the following platforms: ■ AIX ■ FreeBSD ■ HP-UX ■ Linux ■ Mac OS/X ■ NetBSD ■ OpenBSD ■ SCO Open Server ■ Solaris ■ Windows 2000.

2 or later 3.html].1. 2. Choice of database engine Zabbix Server and Proxy support five database engines: ■ IBM DB2 ■ MySQL ■ Oracle ■ PostgreSQL ■ SQLite IBM DB2 is supported starting from Zabbix 1. Apple Safari) may work with Zabbix as well.5.4. WEB browser on client side Support for HTML and PNG images is required. Database size Zabbix configuration data requires fixed amount of disk space and does not grow much.zabbix.22 or later php-net-socket. Version 1. Required for user script support. Oracle.4.imagerotate.6. Consider using PostgreSQL 8. MySQL. Latest versions of Mozilla Firefox. --enable-mbstring Required if IBM DB2 is used as Zabbix back end database. For other fonts than the default DejaVu. 2. --enable-sockets. 2. which is not the case in Debian and other distributions. 2.0.com/documentation/1.net/manual/en/function. php-mbstring. It is suggested to use at least PostgreSQL 8. Required if Oracle is used as Zabbix back-end database. Server requirements Requirement OpenIPMI libssh2 Description Required for IPMI support Required for SSH support.3/static/release-8-3. which introduced much better VACUUM performance [http://www. these fonts might be rendered incorrectly in Monitoring → Overview header and other locations.3. If it is missing.php] might be required. Microsoft Internet Explorer.x or later for much better performance.3. Other browsers (Google Chrome.0 or higher.8/complete 19/11/2010 . This function is only available if PHP is compiled with bundled GD. PHP function imagerotate [http://php.3.8 Manual [Zabbix] Página 28 de 285 PHP socket support PHP multibyte support IBM DB2 ibm_db2 MySQL php-mysql Oracle oci8 PostgreSQL php-pgsql SQLite php-sqlite3 7. Zabbix may work on previous versions of Apache.Zabbix 1. Cookies and Java Script must be enabled.5 or later 3. Required if MySQL is used as Zabbix back end database.8.postgresql. and PostgreSQL as well. Required if SQLite is used as Zabbix back-end database.org/docs/8. Required if PostgreSQL is used as Zabbix back-end database. Opera and Konqueror are supported. http://www.

it means that 130M of values will require 130M * 50 bytes = 6. First value 3600 in the formula represents trend averaging period. It is hard number of events generated by Zabbix daily. So.5GB for 5 years. if we would like to keep 30 days of history and we receive 50 values per second. ■ Housekeeper settings for events Each Zabbix event requires approximately 130 bytes of disk space. etc). if we have 3000 items for monitoring with refresh rate of 60 seconds. Values for 3000 items will require (3000/3600)* (24*3600*365)* 128 = 6. or about 130M of values. It means that 50 new values are added to Zabbix database every second. depends on database engine. Each new value required certain amount of disk space for data and index. It means that if we want to keep 3 years of events. In our case. days*(items/refresh rate)*24*3600*bytes items : number of items days : number of days to keep history refresh rate : average refresh rate of items bytes : number of bytes required to keep single value. normally several weeks or months.zabbix. For example. ■ Housekeeper setting for trends Zabbix keeps 1 hour max/min/avg/count set of values for each item in table trends. Normally 10MB or less. number of values per seconds is calculated as 3000/60 = 50. which define amount of stored historical data: ■ Number of processed values per second This is average number of new values Zabbix server receives every second.com/documentation/1. Normally it is around 50 bytes per value.600. strings.000. integers. type of received values (floats. days*(items/3600)*24*3600*bytes items : number of items days : number of days to keep history History Trends http://www. log files. In worst case scenario. The data is used for trending and long period graphs. depending on database type.3GB per year. this would require 3*365*24*3600* 130 = 11GB The table contains formulas that can be used to calculate disk space required for Zabbix system: Parameter Zabbix configuration Formula for required disk space (in bytes) Fixed size. Depending on used database engine. One hour period can not be customised. ■ Housekeeper settings for history Zabbix keeps values for a fixed period of time.Zabbix 1.5GB of disk space. normally 50 bytes.8 Manual [Zabbix] Página 29 de 285 Zabbix database size mainly depends on these variables. one hour. Zabbix database. or 31. requires about 128 bytes per each total. disk space for keeping a single value may vary from 40 bytes to hundreds of bytes. total number of values will be around (30*24*3600)* 50 = 129. we may assume that Zabbix generates one event per second. Suppose we would like to keep trend data for 5 years.8/complete 19/11/2010 .

normally 128 bytes. Zabbix Proxy The Proxy is an optional part of Zabbix deployment.3. The Proxy collects performance and availability data on behalf of Zabbix Server.1. normally 130 bytes. http://www. Events So.7. 2. Database size will grow then it will stop growing at some point.Zabbix 1. depends on database engine.zabbix.3. days : number of days to keep history bytes : number of bytes required to keep single trend. Zabbix can also perform agent-less monitoring and also monitor network devices using SNMP agents.org/] is the most popular daemon that synchronizes the host's time with the time of other machines. In this case. only Proxies collect data thus making processing on the Server less CPU and disk I/O hungry. networks having no local administrators. which depends on hosekeeper settings.2. the responsibilities of which are outlined below. days*events*24*3600*bytes events : number of event per second. Zabbix Server This is the centre of the Zabbix software. 2. ntpd [http://www.3. the total required disk space can be calculated as: Configuration + History + Trends + Events The disk space will NOT be used immediately after Zabbix installation. Components 2.ntp. Zabbix Proxy is an ideal solution for a centralized monitoring of remote locations. statistical and operational data are stored. 2. depends on database engine. Time synchronisation It is very important to have precise system date on server with Zabbix running. and it is the entity in the Zabbix software that will actively alert administrators when problems arise in any of the monitored systems. 2 Comments 2.3. Disk space requirements for nodes in distributed setup are calculated in a similar way.8 Manual [Zabbix] Página 30 de 285 bytes : number of bytes required to keep single trend. Zabbix Proxies can also be used to distribute load of a single Zabbix Server. The Server is the central repository in which all configuration.3.com/documentation/1. but it is also the central component to which the Agents will report availability and integrity information and statistics.8/complete 19/11/2010 . branches. Zabbix Components Zabbix consists of several major software components. All collected data is buffered locally and transferred to Zabbix Server the Proxy belongs to. One (1) event per second in worst case scenario. The Server can remotely check networked services (such as web servers and mail servers) using simple service checks. but this also depends on a total number of child nodes linked to a node.

4.com/documentation/1. and is usually (but not necessarily) run on the same physical machine as the one running the Zabbix Server.1.x for much better performance. processor statistics etc. sqlite3-dev packages. Consider using PostgreSQL 8.3. ■ Oracle Headers and Libraries OCI headers and libraries are required.0.8 Manual [Zabbix] Página 31 de 285 2. 2. ■ MySQL Headers and Libraries Version 3.3.2 or later required. Installation from Source 4. the Zabbix Server can actively alert the administrators of the particular machine that reported the failure.8/complete 19/11/2010 .5 or later required. Usually provided as part of mysql-dev. The WEB Interface In order to allow easy access to the monitoring data and then configuration of Zabbix from anywhere and from any platform. The Interface is a part of the Zabbix Server.3. The following software is required to compile Zabbix: One of the following database engines: ■ IBM DB2 Headers and Libraries CLI headers and libraries are required.zabbix.) on networked systems.Zabbix 1. Software requirements Building of Zabbix server or agents from sources requires additional software.5. 4. http://www. or a crashed service process). The Zabbix Agents are extremely efficient because of use of native system calls for gathering statistical information. The Agent will gather operational information from the system on which it is running. ■ PostgreSQL Headers and Libraries Version 7. memory. In case of failures (such as a harddisk running full. the Web-based Interface is provided. ■ SQLite Headers and Libraries Version 3. Zabbix front-end must run on the same physical machine if SQLite is used. those systems must run the Zabbix Agent.22 or later required. and report these data to the Zabbix for further processing. postgresql-dev. Zabbix Agent In order to actively monitor local resources and applications (such as harddrives.

Other (HP. ■ src/zabbix_sender The directory contains Makefile and sources for zabbix_sender. Optional.Zabbix 1.8 Manual [Zabbix] Página 32 de 285 NET-SNMP (or UCD-SNMP) library and header files Required for SNMP support. ■ frontends http://www.1 or higher required for WEB monitoring module. IBM) C compilers may be used as well. ■ src/zabbix_agent The directory contains Makefile and sources for zabbix_agent and zabbix_agentd. Iksemel library and header files Required to enable Jabber messaging. 4. ■ misc ■ misc/init. Libcurl library and header files Version 7. Optional. ■ src/zabbix_get The directory contains Makefile and sources for zabbix_get. Optional.d The directory contains start-up scripts for different platforms.8/complete 19/11/2010 .13.zabbix. ■ include The directory contains include Zabbix files.2. C Compiler C compiler is required. ■ src/zabbix_server The directory contains Makefile and sources for zabbix_server. Structure of Zabbix distribution ■ docs The directory contains this Manual in PDF format ■ src The directory contains sources for all Zabbix processes except frontends. GNU C compiler is the best choice for open platforms.com/documentation/1. GNU Make GNU make is required to process Zabbix Makefiles.

sql cd .8. 4.tar. For IBM DB2: shell> shell> shell> shell> shell> shell> db2 "create database zabbix using codeset utf-8 territory us pagesize 32768" cd create/schema db2batch -d zabbix -f ibm_db2.zabbix. There are separate scripts for IBM DB2. ■ upgrades The directory contains upgrade procedures for different versions of Zabbix.8/complete 19/11/2010 .'bin'.Zabbix 1. Do not do it! Zabbix server process (zabbix_server) is protected from being run under root account.gz && tar -xvf zabbix-1.com/documentation/1.8 Manual [Zabbix] Página 33 de 285 ■ frontends/php The directory contains files of PHP frontend. MySQL./data db2batch -d zabbix -f data. Zabbix Server Server side Step 1 Create the Zabbix superuser account This is the user the server will run as. Running Zabbix as 'root'.sql db2batch -d zabbix -f images_ibm_db2.3. ■ create/data Data for initial database creation. PostgreSQL and SQLite. or any other account with special rights is a security risk. ■ create The directory contains SQL script for initial database creation..8. Step 2 Untar Zabbix sources shell> gunzip zabbix-1.sql http://www. ■ create/schema Database creation schemas. For production use you should create a dedicated unprivileged account ('zabbix' is commonly used).tar Step 3 Create the Zabbix database Zabbix comes with SQL scripts used to create the required database schema and also to insert a default configuration. Oracle.

Step 4 Configure and compile the source code for your system The sources must be compiled for both the server (monitoring machine) as well as the clients (monitored machines).sql sqlplus> exit For PostgreSQL: shell> psql -U <username> psql> create database zabbix. quit. you must specify which database will be used.sql sqlplus> @data/images_oracle.db cat images_sqlite3./configure --enable-server --with-oracle --with-net-snmp --with-jabber --with-libcurl # for Oracle + http://www. cd create/schema cat mysql./data cat data. To configure the source for the server.sql sqlplus> @data/data.db cd ..sql | sqlite3 /var/lib/sqlite/zabbix..zabbix./configure --enable-server --with-ibm-db2 --with-net-snmp --with-jabber --with-libcurl # for IBM DB or shell> ./data cat data.sql | sqlite3 /var/lib/sqlite/zabbix.sql | mysql -u<username> -p<password> zabbix For Oracle (we assume that user zabbix with password password exists and has permissions to create database objects): shell> cd create shell> sqlplus zabbix/password sqlplus> set def off sqlplus> @schema/oracle. psql> \q shell> cd create/schema shell> cat postgresql.Zabbix 1./data shell> cat data.8 Manual [Zabbix] Página 34 de 285 For MySQL: shell> mysql> mysql> shell> shell> shell> shell> shell> mysql -u<username> -p<password> create database zabbix character set utf8.db The database will be automatically created if it does not exist./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl # for MySQL + J or shell> .sql | psql -U <username> zabbix shell> cd .8/complete 19/11/2010 ..sql | psql -U <username> zabbix For SQLite: shell> shell> shell> shell> shell> cd create/schema cat sqlite. shell> .sql | mysql -u<username> -p<password> zabbix cat images_mysql.sql | mysql -u<username> -p<password> zabbix cd .sql | sqlite3 /var/lib/sqlite/zabbix.sql | psql -U <username> zabbix shell> cat images_pgsql.com/documentation/1.

Zabbix 1. run: shell> . On the client (monitored) machines./configure --enable-server --with-sqlite3 --with-net-snmp --with-jabber --with-libcurl # for SQLite Use flag --with-ibm-db2 to specify location of the CLI API. for example -prefix=/home/zabbix.com/rie/entry/static_linking_where_did_it].zabbix. you must use this flag to make these binaries work without required libraries. if you want to compile client binaries along with server binaries./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl Use flag --enable-static to statically link libraries. both --with-net-snmp and --with-ucd-snmp may be skipped. make install will install all the files in /usr/local/bin.conf http://www. while utilities under <prefix>/bin.8/complete 19/11/2010 .sun. Use flag --with-oracle to specify location of the OCI API.com/documentation/1.8 Manual [Zabbix] Página 35 de 285 or shell> . If you plan to distribute compiled binaries among different servers. it is recommended. Man pages will be installed under <prefix>/share. You can specify an installation prefix other than /usr/local using --prefix. add the following lines to /etc/services: zabbix-agent zabbix-agent zabbix-trapper zabbix-trapper 10050/tcp 10050/udp 10051/tcp 10051/udp Zabbix Zabbix Zabbix Zabbix Agent Agent Trapper Trapper Note that the port numbers are offical Zabbix ports registered in IANA. Step 6 Configure /etc/services The step is optional. Flag --with-ucd-snmp can be used instead of --with-net-snmp. Step 7 Configure /etc/inetd. /usr/local/lib etc. Make sure that you have enough permissions. If no SNMP support is required. However. However. Note that --enable-static does not work under Solaris [http://blogs./configure --enable-server --with-pgsql --with-net-snmp --with-jabber --with-libcurl # for PostgreS or shell> . In this case daemon binaries will be installed under <prefix>/sbin. Step 5 Make and install everything shell> make install By default.

Zabbix 1.com/documentation/1. You may take misc/conf/zabbix_agent. default parameters are sufficient.conf as example.8 Manual [Zabbix] Página 36 de 285 If you plan to use zabbix_agent instead of the recommended zabbix_agentd. However.conf as example. You may take misc/conf/zabbix_server. The file should contain the IP address of the Zabbix server. Connections from other hosts will be denied.conf You need to configure this file for every host having zabbix_agent installed. Step 9 Configure /etc/zabbix/zabbix_agentd. you should change default parameters to maximize performance of Zabbix. the following line must be added: zabbix_agent stream tcp nowait. You may take misc/conf/zabbix_agentd. shell> cd sbin shell> .zabbix.conf You need to configure this file for every host with zabbix_agentd installed.3600 zabbix /opt/zabbix/bin/zabbix_agent Restart inetd shell> killall -HUP inetd Modify default settings in configuration files Step 8 Configure /etc/zabbix/zabbix_agent.conf For small installations (up to ten monitored hosts). Step 11 Run server processes Run zabbix_server on server side. The file should contain IP address of Zabbix server. Connections from other hosts will be denied.conf as example. See section [Performance tuning] for more details./zabbix_server Step 12 Run agents Run zabbix_agentd where necessary. shell> cd bin shell> ./zabbix_agentd http://www.8/complete 19/11/2010 . Step 10 Configure /etc/zabbix/zabbix_server.

There are separate scripts for IBM DB2. Running Zabbix Proxy as 'root'.tar. quit.sql | sqlplus zabbix/password >out. MySQL.8.tar Step 3 Create the Zabbix database. psql> \q http://www.log for any error messages. For IBM DB2: shell> db2 "create database zabbix using codeset utf-8 territory us pagesize 32768" shell> cd create/schema shell> db2batch -d zabbix -f ibm_db2. Database auto-creation is supported for SQLite only. Step 1 Create the Zabbix superuser account This is the user the Proxy will run as. 'bin'. Zabbix comes with SQL scripts used to create the required database schema.gz && tar -xvf zabbix-1.Zabbix 1.8.sql For MySQL: shell> mysql> mysql> shell> shell> mysql -u<username> -p<password> create database zabbix character set utf8. Oracle.com/documentation/1.sql | mysql -u<username> -p<password> zabbix For Oracle (we assume that user ‘zabbix’ with password ‘password’ exists and has permissions to create database objects): shell> cd create/schema shell> cat oracle. Optional. Zabbix Proxy process will create database automatically on the first run if it does not exist.log Check file out.zabbix. For production use you should create a dedicated unprivileged account ('zabbix' is commonly used).4.8/complete 19/11/2010 . Step 2 Untar Zabbix sources shell> gunzip zabbix-1. cd create/schema cat mysql. Zabbix Proxy Zabbix Proxy is a special process. PostgreSQL and SQLite. Do not do it! Zabbix Proxy process (zabbix_proxy) is protected from being run under root account. It will use existing database otherwise.8 Manual [Zabbix] Página 37 de 285 4. It is not required to run the process. or any other account with special rights is a security risk. For PostgreSQL: shell> psql -U <username> psql> create database zabbix.

both --with-net-snmp and --with-ucd-snmp may be skipped. Step 5 Make and install everything shell> make install http://www. If you plan to distribute compiled binaries among different hosts. Use flag --with-oracle to specify location of the OCI API. --enable-static does not work under Solaris.Zabbix 1. shell> . Use flag --enable-static to statically link libraries./configure --enable-proxy --with-mysql --with-net-snmp --with-libcurl # for MySQL + WEB monitoring or shell> .db The database will be automatically created if it does not exist. Flag --with-ucd-snmp can be used instead of –with-net-snmp./configure --enable-proxy --with-oracle --with-net-snmp --with-libcurl # for Oracle + WEB monitorin or shell> .8 Manual [Zabbix] Página 38 de 285 shell> cd create/schema shell> cat postgresql. if you want to compile client binaries along with proxy binaries. you must use this flag to make these binaries work without required libraries.com/documentation/1. you must specify which database will be used.zabbix./configure --enable-proxy --with-sqlite3 --with-net-snmp --with-libcurl # for SQLite3 + WEB monitor Use flag --with-ibm-db2 to specify location of the CLI API.sql | sqlite3 /var/lib/sqlite/zabbix. Step 4 Configure and compile the source code for your system The sources must be compiled to enable compilation of Zabbix Proxy process./configure --enable-proxy --with-ibm-db2 --with-net-snmp --with-libcurl # for IBM DB2 + WEB monitor or shell> ./configure --enable-proxy --with-pgsql --with-net-snmp --with-libcurl # for PostgreSQL + WEB monito or shell> . If no SNMP support required.8/complete 19/11/2010 . However. run: shell> . To configure the source for the Proxy.sql | psql -U <username> zabbix For SQLite: shell> cd create/schema shell> cat sqlite./configure --enable-proxy --enable-agent --with-mysql –with-net-snmp –with-libcurl Parameter --enable-static may be used to force static linkage.

3600 zabbix /opt/zabbix/bin/zabbix_agent Restart inetd shell> killall -HUP inetd Modify default settings in configuration files Step 8 Configure /etc/zabbix/zabbix_proxy. it is recommended.zabbix. On the client (monitored) machines.conf as example.conf For small installations (up to ten monitored hosts)./zabbix_proxy 4.conf If you plan to use zabbix_agent instead of the recommended zabbix_agentd. make install will install all the files in /usr/local/bin. You may take misc/conf/zabbix_proxy. default parameters are sufficient.com/documentation/1. Make sure you have correct Hostname and Server parameters set. You can specify an installation prefix other than /usr/local using –prefix Step 6 Configure /etc/services The step is optional. Step 9 Run Proxy processes Run zabbix_proxy: shell> cd sbin shell> .5.8/complete 19/11/2010 . Zabbix Agent Client side http://www.Zabbix 1. However. /usr/local/lib etc. you should change default parameters to maximize performance of Zabbix Proxy. However.8 Manual [Zabbix] Página 39 de 285 By default. the following line must be added: zabbix_agent stream tcp nowait. add the following lines to /etc/services: zabbix_agent 10050/tcp zabbix_trap 10051/tcp Step 7 Configure /etc/inetd.

Step 2 Untar Zabbix sources shell> gunzip zabbix-1. the following line must be added: zabbix_agent stream tcp nowait. To configure the source for the client: shell> . On the client (monitored) machines.tar Step 3 Configure and compile the source code for your system The sources must be compiled for the client only. it is recommended.gz && tar xvf zabbix-1.6. you must use this flag to make these binaries work without required libraries. Step 4 Build agent shell> make Copy created binaries from bin/ to /opt/zabbix/bin or any other directory.Zabbix 1./configure --enable-agent Use flag –enable-static to statically link libraries.tar. For production use you should create a dedicated unprivileged account (“zabbix” is commonly used).6. Zabbix agents have protection against running under root account.3600 zabbix /opt/zabbix/bin/zabbix_agent http://www. Other common directories are /usr/local/bin or /usr/local/zabbix/bin. Step 5 Configure /etc/services The step is not real requirement.8/complete 19/11/2010 . However. If you plan to distribute compiled binaries among different hosts.com/documentation/1.zabbix.8 Manual [Zabbix] Página 40 de 285 Step 1 Create the Zabbix account This is the user the agent will run as. add the following lines to /etc/services: zabbix_agent 10050/tcp zabbix_trap 10051/tcp Step 6 Configure /etc/inetd.conf If you plan to use zabbix_agent instead of the recommended zabbix_agentd.

Note.conf as example.6.conf You need to configure this file for every host having zabbix_agent installed. You may take misc/conf/zabbix_agentd. SLES) ■ /var/www/html (Fedora.8/complete 19/11/2010 . It is suggested to use subdirectory instead of HTML root. Connections from other hosts will be denied. Connections from other hosts will be denied. <htdocs>/zabbix http://www. You may take misc/conf/zabbix_agent. that no end of line character should present in the file. execute the following commands.zabbix. replacing actual directory: mkdir <htdocs>/zabbix cd frontends/php cp -a .conf as example. RHEL. otherwise the agent may not start and you will see “Can't allocate shared memory for collector. Step 8 Configure /etc/zabbix/zabbix_agentd.8 Manual [Zabbix] Página 41 de 285 Restart inetd shell> killall -HUP inetd Step 7 Configure /etc/zabbix/zabbix_agent. 4.” in agent's log file. Installation is done by simply copying PHP files into webserver HTML documents directory. Zabbix WEB Interface Step 0 Zabbix frontend is written in PHP. This may happen on Solaris 8. The file should contain IP address of Zabbix server.conf You need to configure this file for every host with zabbix_agentd installed. The file should contain IP address of Zabbix server. CentOS) ■ /var/www (Debian. Step 9 Run zabbix_agentd on all monitored machines shell> /opt/zabbix/bin/zabbix_agentd You should not run zabbix_agentd if you have chosen to use zabbix_agent! Make sure that your system allows allocation of 2MB of shared memory. Ubuntu) To create subdirectory and copy Zabbix frontend files to it.Zabbix 1. so to run it a PHP supported webserver is needed.com/documentation/1. Common locations of HTML documents directory for Apache web server include: ■ /usr/local/apache2/htdocs (default directory when installing Apache from source) ■ /srv/www/htdocs (OpenSUSE.

Zabbix 1.com/documentation/1. http://www.zabbix.8/complete 19/11/2010 .8 Manual [Zabbix] Página 42 de 285 Step 1 Point your browser to Zabbix URL. Step 2 Read and accept GPL v2.

http://www.com/documentation/1.8 Manual [Zabbix] Página 43 de 285 Step 3 Make sure that all software pre-requisites are met.Zabbix 1.8/complete 19/11/2010 .zabbix.

Module php-gd. Oracle.com/documentation/1. PostgreSQL.ini: memory_limit = 128M In php.8 Manual [Zabbix] Página 44 de 285 Pre-requisite PHP version PHP Memory limit PHP post max size PHP max execution time 5.Zabbix 1. phpsqlite3 Compiled in PHP5. php-pgsql. MySQL.zabbix. php-mysql. PHP database support SQLite PHP BC math GD Version Image formats Any 2. Module php-gd. oci8. http://www.ini: max_execution_time = 300 One of the following modules must be installed: ibm_db2.ini: post_max_size = 8M In php.0 or higher At least PNG Step 4 Configure database settings. One of: IBM DB2.0 8MB 8MB 300 seconds Minimum value Description In php.8/complete 19/11/2010 . Zabbix database must already be created.

Zabbix 1. http://www.8/complete 19/11/2010 .zabbix.com/documentation/1.8 Manual [Zabbix] Página 45 de 285 Step 5 Enter Zabbix Server details.

Zabbix 1.8/complete 19/11/2010 .8 Manual [Zabbix] Página 46 de 285 Step 6 See summary of settings. http://www.zabbix.com/documentation/1.

zabbix.Zabbix 1.8/complete 19/11/2010 .com/documentation/1. http://www.8 Manual [Zabbix] Página 47 de 285 Step 7 Download configuration file and place it under conf/.

8 Manual [Zabbix] Página 48 de 285 http://www.Zabbix 1.zabbix.com/documentation/1.8/complete 19/11/2010 .

zabbix.Zabbix 1.8 Manual [Zabbix] Página 49 de 285 Step 8 Finishing installation.com/documentation/1.8/complete 19/11/2010 . http://www.

Step 10 Zabbix frontend is ready! Default user name is Admin. password zabbix.zabbix. For example: shell> ./zabbix_server -n <nodeid> where Node ID is an unique Node identificator.com/documentation/1./zabbix_server -n 1 This will convert database data for use with Node ID '1' and also adds a local node.8/complete 19/11/2010 . http://www.8 Manual [Zabbix] Página 50 de 285 Step 9 For distributed monitoring only! If used in a distributed environment you have to run: shell> .Zabbix 1.

com/documentation/1.8 Manual [Zabbix] Página 51 de 285 5.8.zabbix.6 to 1.1. Upgrading 5.8/complete 19/11/2010 .6 or 1.3 can be performed in single step. http://www. Stable branch releases For stable branch release upgrades (upgrading 1. If mentioned in release notes.2. optional indexes may be added to the database to improve performance.8) in addition to binary and frontend upgrade database patch is usually required.1 to 1.8.4 to 1. 5. Upgrading can be easily performed over several versions. Change level releases For change level releases only upgrading of server binary and frontend is required.Zabbix 1. upgrading from 1. for example.

x to 1.4.0.x and Zabbix 1. Zabbix 1.php and modify parameters.6.x can be used with Zabbix 1.3. ■ Uploading of images for network maps may fail if database is not configured properly.x can't be used with Zabbix 1. ■ Hostnames with spaces do not work when sending data from a file with zabbix_sender. 5.6. they should be upgraded.7. Older Zabbix proxies of version 1.4. ■ For IPMI support you need a recent OpenIPMI version .conf.1.conf. ■ all tables and default database character set are converted to utf8. ■ XML export includes SNMP and other information for all items. copy zabbix.php.cpu.8.zabbix.8.8 Manual [Zabbix] Página 52 de 285 5. ■ CPU index for system.0. The whole upgrade procedure may take several hours depending on size of Zabbix database.13 and later is known to work.size now takes into account reserved diskspace for root user.Zabbix 1. tables and fields are set to UTF-8 encoding.2 in Zabbix 1. Zabbix 1.2. System requirement changes Additional or increased system requirements: ■ Support for PHP 4 dropped. Version compatibility Older agents from Zabbix 1. ■ Maximal PHP POST size should be at least 16MB (option post_max_size). ■ Comment at the end of a configuration file line is not allowed anymore (this worked for numeric parameters only before). including database access parameters. ■ Sorting in frontend is not performed for entities with positional variables (like item names with $1 etc). ■ Key vfs.example file to zabbix. Upgrade procedure The following steps have to be performed for successful upgrade from Zabbix 1.size returns data in bytes for all operating systems now.8.x.6. To avoid this issue. Make sure database.com/documentation/1. Known problems ■ PHP mbstring check may fail with PHP < 5. It does not require any configuration changes on agent side. Before the upgrade you should verify that: ■ all hosts belong to at least one hostgroup. 5. http://www. 5. Important notes ■ All hosts now are required to belong to at least one group.8.5.6.fs.fs. ■ Maximal PHP memory size should be at least 128MB (option memory_limit). ■ Key vfs. 5.util key on Linux now starts with 0.8/complete 19/11/2010 .

zabbix. Skip when upgrading from one 1.6. Upgrade database Perform this step only when upgrading from version 1. Stop Zabbix server Stop Zabbix server to make sure that no new data is inserted into database. http://www.6.3. 5. Before applying database patches. Make sure that you have backup of your database. httptest drop index httptest_3.5. Review Server configuration parameters Some parameters of zabbix_server. Backup existing Zabbix database This is very important step. drop index dservices_1. graphs_items drop index graphs_items_2. PHP files and Zabbix binaries Make a backup copy of Zabbix binaries. Oracle or PostgreSQL drop index dhosts_1.com/documentation/1. Install new server binaries You may use pre-compiled binaries or compile your own. Make sure to have a valid database backup before starting database upgrade.8. configuration files and PHP files. 5.7.8 Manual [Zabbix] Página 53 de 285 You might also want to add user group Disabled and set user status for it to be Disabled. history_text drop index history_text_2. httptest drop index httptest_2. power off.7. actions drop index actions_1.x version to another. You may want to review them. history_log drop index history_log_2. 5. Before running upgrade scripts drop the following indexes: MySQL alter alter alter alter alter alter alter alter alter alter alter table table table table table table table table table table table dhosts drop index dhosts_1.1.2.conf were changed in 1. Backup configuration files.8. services drop index services_1. It will help if upgrade procedure fails (lack of disk space. any unexpected problem).7. as well as check that host group Discovered hosts exists and is selected to be used for discovered hosts in Administration → General → Other.4. new parameters added. graphs_items drop index graphs_items_1. 5. escalations drop index escalations_2.8/complete 19/11/2010 .7. all Zabbix processes must be stopped.7.Zabbix 1. dservices drop index dservices_1.7. ■ Configuration option StartDBSyncers has been removed from Zabbix server and proxy configuration files. 5. 5.

5. To get started. graphs_items_1. create index. httptest_3. Database upgrade should take around 10-15 minutes.sql 5.sql or shell> cd postgresql.8/mysql/patch. drop table. mysql zabbix -u<username> -p<password> < patch. Make sure that you have enough permissions (create table.8 Manual [Zabbix] Página 54 de 285 drop drop drop drop drop drop drop drop drop index index index index index index index index index httptest_2.that is. Using Zabbix appliance As an alternative to setting up manually or reusing existing server for Zabbix. These scripts are for upgrade from Zabbix 1. If you are converting the database to UTF-8.8/postgresql/patch.8/oracle/patch.6.8/complete 19/11/2010 .com/documentation/1. history_text_2. boot the appliance and point your browser at the IP it has received over DHCP.8 subdirectory should be used. http://www.8/<db engine>: ■ MySQL: upgrades/dbpatches/1.sql Note that patches should be run only for the version you are upgrading to . Install new Zabbix GUI Follow installation instructions.x to 1.8. It is recommended to test the upgrade procedure in a non-production environment. escalations_2.7.sql ■ Oracle: upgrades/dbpatches/1.sql ■ PostgreSQL: upgrades/dbpatches/1.7. for PostgreSQL it may take several hours or more because of conversion of existing historical data. psql -U <username> zabbix < patch.6. Also make sure that you have enough free disk space. actions_1. Ignore any warning messages about non-existent indexes! Database upgrade scripts are located in directory upgrades/dbpatches/1. 4 Comments 6. when upgrading to 1.7. only patch in 1. drop index).8. users may download Zabbix appliance. Start new Zabbix binaries Start new binaries. Check log files to see if the binaries have started successfully. services_1.Zabbix 1. Example usage: shell> cd mysql. graphs_items_2.x. history_log_2.zabbix.8 only! For upgrade from earlier versions use also upgrade scripts from Zabbix 1. it can take many hours.

com/documentation/1. http://www. ■ InnoDB is configured to store data for each table in a separate file. MySQL configuration changes ■ Binary log is disabled.1.1.1. ■ Set BOOTPROTO variable to static. available in the following formats: ■ vmdk (VMWare/Virtualbox).zabbix. ■ CD iso. ■ HDD/flash image.Zabbix 1.8 Manual [Zabbix] Página 55 de 285 Booting Zabbix appliance Zabbix appliance is an OpenSUSE 11. Changes to SUSE configuration There are some changed applied to the base OpenSUSE configuration.8/complete 19/11/2010 . ■ Open file /etc/sysconfig/network/ifcfg-eth0 in your favourite editor.1.2 based image. ■ Xen guest.com]. The appliance has been built using SUSE Studio [http://susestudio. 6. 6. Using a static IP address By default the appliance uses DHCP to obtain IP address. 6. It has Zabbix server configured and running on MySQL. To specify a static IP address: ■ Log in as root user.2. as well as frontend available.

com/documentation/1. Other changes ■ Network is configured to use DHCP to obtain IP address. Zabbix logfiles are placed in /var/log/zabbix. ■ Utility fping is set to have permissions 4710 and is owned by group zabbix .8 Manual [Zabbix] Página 56 de 285 ■ Set IPADDR. specifying each nameserver on its own line: nameserver 192. ■ Create file /etc/sysconfig/network/routes. http://www.conf. 6..conf.conf.2.1.(replacing with your gateway address). 6. just use yast configuration utility to update network settings.2.8/complete 19/11/2010 .168.php. For the default route.1. File locations Configuration files are placed in /etc/zabbix.1. ■ Run the command rcnetwork restart. Home directory for user zabbix is /var/lib/zabbix.zabbix.1. ■ zabbix.2.1 . ■ zabbix_server.suid and only alowed to be used by zabbix group. ■ Various basic utilities have been added that could make working with Zabbix and monitoring in general easier. add nameserver entries in /etc/resolv. Zabbix configuration Appliance Zabbix setup has the following passwords and other configuration changes: 6.2. 6. NETMASK and any other parameters as required for your network.168. ■ ntpd configured to synchronise to the public pool servers.Zabbix 1. use default 192. To configure DNS.2. Passwords System: ■ root:zabbix ■ zabbix:zabbix Database: ■ root:zabbix ■ zabbix:zabbix Zabbix frontend: ■ admin:zabbix To change the database user password it has to be changed in the following locations: ■ MySQL.3. Alternatively.

0. log in using SSH as root user and execute: service apache2 restart 6. To create the backup. including all configuration and gathered data. thus frontend can be accessed both as http://<host> and http://<host>/zabbix.0/8 ■ ::1 Root (/) is redirected to /zabbix on the webserver.for example. This can be customised in /etc/apache2/conf.168. you can create a backup of whole database. ■ Frontend timezone is set to Europe/Riga.1 ■ 192.0. ■ Server name for Zabbix frontend set to “Zabbix 1.4. Zabbix server and agent ports . 6.2.8/complete 19/11/2010 .22 (SSH) and 80 (HTTP).8 Manual [Zabbix] Página 57 de 285 6.conf.bz2 to another machine.2. Firewall By default.d/zabbix.0. Frontend access Access to frontend by default is allowed from: ■ 127. transfer it to the appliance and execute: bzcat dbdump.3.0.zabbix.0/16 ■ 10. Zabbix home (this can be modified in /etc/php5/apache2/php.8 Appliance”.bz2 Now you can transfer file dbdump.com/documentation/1.0.modify iptables rules with SuSEfirewall2 utility: SuSEfirewall2 open EXT TCP zabbix-trapper zabbix-agent Then reload the firewall rules: http://www.3. run: mysqldump zabbix | bzip2 -9 > dbdump.Zabbix 1. To open additional ports . only two ports are open . 6.ini). You have to restart webserver after modifying this file. Preserving configuration If you are running live CD version of the appliance or for some other reason can't have persistent storage. ■ Disabled triggers and web scenarios are shown by default to reduce confusion. To restore from the backup.bz2 | mysql zabbix Make sure that Zabbix server is stopped while performing the restore. Changes to Zabbix configuration ■ Some items and triggers in the default Linux template are disabled (mostly those who did not correspond to appliance setup). To do so.4.

Zabbix appliance monitoring own web frontend Note that web frontend monitoring logs in . ■ SSH2. http://www.this can add lots of entries to the audit log. ■ IPMI. Monitoring capabilities Zabbix server is compiled with support for the following: ■ SNMP.zabbix.Zabbix 1. additionally Zabbix frontend is monitored as well using web monitoring.8 Manual [Zabbix] Página 58 de 285 SuSEfirewall2 stop SuSEfirewall2 start 6. In the provided configuration Zabbix server itself is monitored with the help of locally installed agent for some base parameters.8/complete 19/11/2010 .com/documentation/1.5. ■ Web monitoring. ■ IPv6.

Zabbix Processes http://www. run from the crontab every 10 minutes that restarts Zabbix server if it is not running. Format-specific notes 6.com/documentation/1.1.conf Appropriate init scripts are provided. /var/lib/zabbix/bin. use any of these: service zabbix-server status rczabbix-server status /etc/init.7. 6.d/zabbix-server status Replace server with agentd for Zabbix agent daemon. run: xm create -c file-with-suffix.Zabbix 1.8 Manual [Zabbix] Página 59 de 285 6. It logs timestamped problems and starting attempts at /var/log/zabbix/server_problems.log.org/SUSE_Studio_Xen_Howtos] To use Xen images with Citrix Xenserver you might need to convert images with XenConvert utility.xenconfig See the following pages for more information on using Xen images: ■ http://en. configuration files are: ■ /etc/zabbix/zabbix-server. Xen To use images in Xen server. 6. To control Zabbix server. They are called: ■ zabbix-agentd ■ zabbix-server In a similar fashion.6.org/How_to_use_downloaded_SUSE_Studio_appliances#Xen_guest [http://en.opensuse. init and other scripts Zabbix daemons have their names changed from standard with underscore to dash to conform to SUSE guidelines. 3 Comments 3. This script is available since Zabbix Appliance version 1.conf ■ /etc/zabbix/zabbix-agentd. Make sure to disable this crontab entry if stopping of Zabbix server is desired.org/SUSE_Studio_Xen_Howtos [http://en. available from Citrix website. Scheduled scripts There is a scheduled script.1.opensuse.3.8.org/How_to_use_downloaded_SUSE_Studio_appliances#Xen_guest] ■ http://en.8/complete 19/11/2010 .6.7.opensuse.zabbix.opensuse. Naming.

Zabbix agent under Windows uses Event Log if “LogFile” configuration parameter is provided empty.zabbix.8/complete 19/11/2010 . Individual processes 1.2.error information (LOG_LEVEL_ERR) syslog log level syslog is not used.com/documentation/1. Zabbix Server can be started by executing: shell> cd sbin shell> ./zabbix_server Zabbix Server runs as a daemon process.for debugging (LOG_LEVEL_DEBUG) EVENTLOG_INFORMATION_TYPE Warning Information 3.critical information (LOG_LEVEL_CRIT) 2 . The mapping between Zabbix logging levels and syslog levels is as follows: Zabbix log level 0 . Logging For logging configuration of Zabbix daemons “LogFile” configuration parameter is used. Zabbix Server accepts the following command line parameters: http://www. 3 . Comments All messages are skipped.8 Manual [Zabbix] Página 60 de 285 3. EVENTLOG_ERROR_TYPE Error 3 . Zabbix Server Zabbix Server is a central process of Zabbix software.warnings EVENTLOG_WARNING_TYPE (LOG_LEVEL_WARNING) 4 . If this parameter is left empty (LogFile=). syslog logging facilities are used.1.warnings warning conditions (LOG_LEVEL_WARNING) (LOG_WARNING) 4 .empty (LOG_LEVEL_EMPTY) 1 .critical information (LOG_LEVEL_CRIT) 2 .error information (LOG_LEVEL_ERR) Windows Event Log entry type Event Log is not used. All Zabbix daemons on Unix-like platforms log their messages from “Daemon” environment.Zabbix 1. critical conditions (LOG_CRIT) error conditions (LOG_ERR) Comments All messages are skipped.for debugging (LOG_LEVEL_DEBUG) debug-level messages (LOG_DEBUG) For syslog configuration consult the corresponding literature.empty (LOG_LEVEL_EMPTY) 1 . Mapping between Zabbix log levels (messages of corresponding type) and Windows Event Log entries type is provided below: Zabbix log level 0 .

zabbix.com/documentation/1. Comment this line if no password is used.sock Database port when not socket. Specifies debug level 0 . socket is used for MySQL.Zabbix 1. For SQLite3 path to database file must be provided. Make empty (“Fping6Location=”) if your fping utility is capable to process IPv6 addresses. Ignored for SQLite.no debug 1 .critical information 2 . The file must exist and it should have read permissions for user 'zabbix'. Database password. Supported parameters: Parameter AlertScriptsPath CacheSize Mandatory no no Range Default /home/zabbix/bin/ 128K-1G 8M Description Location of custom alert scripts Size of configuration cache. Ignored for SQLite.conf shell> zabbix_server --help shell> zabbix_server -v The configuration file contains parameters for zabbix_server. How often Zabbix will perform update of configuration cache.conf -h --help give this help -v --version display version number In order to get this help run: shell> zabbix_server -h Example of command line parameters: shell> zabbix_server -c /usr/local/etc/zabbix_server. Make sure that fping6 binary has root ownership and SUID flag set.warnings 4 .8 Manual [Zabbix] Página 61 de 285 -c --config <file> specify configuration file. If set to localhost. Path to MySQL socket. Database host name. 102465535 3306 /tmp/mysql. Make sure that fping binary has root ownership and SUID flag set! Fping6Location no /usr/sbin/fping6 FpingLocation no /usr/sbin/fping http://www.error information 3 . default is /etc/zabbix/zabbix_server. in bytes. in seconds. Ignored for SQLite. Database user. Shared memory size for storing hosts and items data. Location of fping. Database name. disables housekeeping. using local CacheUpdateFrequency no 1-3600 60 DBHost no localhost DBName yes DBPassword DBPort DBSocket DBUser no no no no DebugLevel no 0-4 3 lots of DisableHousekeeping ExternalScripts no no 0-1 0 /etc/zabbix/externalscripts Location of external scripts Location of fping6. DBUser and DBPassword are ignored.8/complete 19/11/2010 .for debugging (produces information) If set to 1.

standalone server If set to '1' local events won't be sent to master node.8 Manual [Zabbix] Página 62 de 285 HistoryCacheSize no 128K-1G 8M Size of history cache. 0 . Shared memory size for storing character. Size of text history cache. If a query takes longer than this many milliseconds. and alarms tables. Maximum size of log file in MB. suggested value is 24. Listen port for trapper.disable log slow queries This option is supported in version 1. in bytes.2 and higher.8. [value]) will be deleted per one task in one housekeeping cycle. Name of log file. [field]. as it performs VACUUM.3 and higher. This won't impact ability of this node to propagate events from its child nodes. Trapper will listen on all network interfaces if this parameter is missing. Housekeeping is removing unnecessary information from history. You may include individual files or all files in a directory in the configuration file.Zabbix 1. List of comma delimited IP addresses that the trapper should listen on. If set to '1' local history won't be sent to master node.0 ListenPort LogFileSize LogFile no no no 102432767 0-1024 10051 1 LogSlowQueries no 00 3600000 NodeID no 0-999 0 NodeNoEvents no 0-1 0 NodeNoHistory no 0-1 0 PidFile no /tmp/zabbix_server. Shared memory size for storing history data. alert. HistoryTextCacheSize no 128K-1G 16M HousekeepingFrequency no 1-24 1 MaxHousekeeperDelete no 0500 1000000 Include no ListenIP no 0.8.0. 0 .8.0. Name of PID file.3 and higher. If set to 0 then no limit is used at all. In this case you must know what you are doing! This option is supported in version 1. deletes all corresponding rows without a limit. 0 . in bytes.8/complete 19/11/2010 . Multiple IP addresses are supported in version 1.disable automatic log rotation.zabbix. Unique NodeID in distributed setup. How often Zabbix will perform housekeeping procedure (in hours). text or log history data.2 and higher. Used only for proxies in a passive mode. If PostgreSQL is used. This won't impact ability of this node to propagate history from its child nodes. the query is logged to the log file. This option is supported in version 1.pid ProxyConfigFrequency no 1604800 3600 http://www.8.com/documentation/1. SQLite3 does not use this parameter. No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename]. How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.

in seconds. Number of pre-forked instances of pollers for unreachable hosts (including IPMI).8. This option is supported in version 1. address for outgoing StartDBSyncers no 1-64 4 Number of pre-forked instances of DB Syncers.3 and higher. This option is missing in version 1. Zabbix Proxy Zabbix Proxy is a process which collects performance and availability data from one or more monitored devices and sends the information to a Zabbix Server.8/complete 19/11/2010 . Number of pre-forked instances of pollers. Zabbix Proxy can be started by: http://www. Size of trend cache. Shared memory size for storing trends data. Location of public keys for SSH checks SSHKeyLocation SenderFrequency SourceIP no no no 5-3600 30 How often Zabbix will try to send unsent alerts (in seconds). Number of pre-forked instances of ICMP pingers. Number of pre-forked instances of pollers for passive proxies. Source IP connections. This option is supported in version 1. After how many seconds of unreachability treat a host as unavailable. How often host is checked for availability during the unavailability period. This option is supported in version 1. pre-forked instances of StartDiscoverers StartHTTPPollers StartIPMIPollers StartPingers no no no no 0-255 0-255 0-255 0-255 1 1 0 1 Number of pre-forked instances of HTTP pollers.zabbix.8.8. Number of discoverers. Number of pre-forked instances of IPMI pollers. How often host is checked for availability during the unreachability period.2. SNMP device or external check (in seconds). Number trappers of pre-forked instances of StartPollersUnreachable no StartPollers no 0-255 0-255 1 5 StartProxyPollers no 0-255 1 StartTrappers no 0-255 5 Timeout TmpDir TrapperTimeout no no no 1-30 3 /tmp Specifies how long we wait for agent.3.8.3 and higher.com/documentation/1. in bytes.Zabbix 1. in seconds. Temporary directory.3 and higher. Specifies how many seconds trapper may spend processing new data.8 Manual [Zabbix] Página 63 de 285 ProxyDataFrequency no 1-3600 1 How often Zabbix Server requests history data from a Zabbix Proxy in seconds. 1-300 300 TrendCacheSize no 128K-1G 4M UnavailableDelay no 1-3600 60 UnreachableDelay no 1-3600 15 UnreachablePeriod no 1-3600 45 0 Comments 3. Used only for proxies in a passive mode.

socket is used for MySQL. Comment this line if no password is used. Supported parameters: Parameter CacheSize Mandatory no Range 128K-1G 8M Default Description Size of configuration cache.Zabbix 1. The file must exist and it should have read permissions for user 'zabbix'. How often proxy retrieves configuration data from Zabbix Server in seconds. For SQLite3 path to database file must be provided. How often Zabbix will perform update of configuration cache. Database port when not socket. DBUser and DBPassword are ignored.for debugging (produces lots of information) If set to 1. Shared memory size. Database password.error information 3 .com/documentation/1. Ignored for SQLite. in seconds.no debug 1 . 3306 Path to MySQL socket.zabbix. using local CacheUpdateFrequency no 1-3600 60 ConfigFrequency no 1-604800 3600 DBHost no localhost DBName yes DBPassword no DBSocket DBUser DataSenderFrequency no Database user. DebugLevel no 0-4 3 DisableHousekeeping no 0-1 0 http://www.conf -h --help give this help -v --version display version number In order to get this help run: shell> zabbix_proxy -h Example of command line parameters: shell> zabbix_proxy -c /usr/local/etc/zabbix_proxy. in bytes. Zabbix Proxy accepts the following command line parameters: -c --config <file> specify configuration file.8 Manual [Zabbix] Página 64 de 285 shell> cd sbin shell> .conf shell> zabbix_proxy --help shell> zabbix_proxy -v The configuration file contains parameters for zabbix_proxy.warnings 4 . Database host name. disables housekeeping. Database name. For a proxy in the passive mode this parameter will be ignored. For a proxy in the passive mode this parameter will be ignored. If set to localhost.8/complete 19/11/2010 . default is /etc/zabbix/zabbix_proxy. no 1-3600 1 Proxy will send collected data to the Server every N seconds./zabbix_proxy Zabbix Proxy runs as a daemon process. Ignored for SQLite.critical information 2 . Specifies debug level 0 . Ignored for SQLite. for storing hosts and items data.

Size of text history cache. How often Zabbix will perform housekeeping procedure (in hours).disable automatic log rotation. 0 . Size of history cache.proxy in the passive mode Fping6Location no /usr/sbin/fping6 FpingLocation no /usr/sbin/fping HeartbeatFrequency no 0-3600 60 HistoryCacheSize no 128K-1G 8M HistoryTextCacheSize no 128K-1G 16M Hostname no HousekeepingFrequency no 1-24 1 Include no ListenIP no 0. in bytes. Listen port for trapper. 0 . in bytes.8. Location of fping.8 Manual [Zabbix] Página 65 de 285 ExternalScripts no /etc/zabbix/externalscripts Location of external scripts Location of fping6.3 and higher. Housekeeping is removing unnecessary information from history. Make sure the Proxy name is known to the server! System hostname is used if undefined.Zabbix 1. For a proxy in the passive mode this parameter will be ignored. Maximum size of log file in MB.0.proxy in the active mode 1 . List of comma delimited IP addresses that the trapper should listen on.disable log slow queries This option is supported in version 1. Trapper will listen on all network interfaces if this parameter is missing. Make sure that fping6 binary has root ownership and SUID flag set. Used for monitoring availability of Proxy on server side. Proxy will keep data locally for N hours.com/documentation/1. If a query takes longer than this many milliseconds. This parameter may be used if local data will be used by third party applications.zabbix. If PostgreSQL is used. Shared memory size for storing character. and alarms tables.pid 0 ProxyMode no 0-1 0 http://www. alert. Multiple IP addresses are supported in version 1. suggested value is 24. Shared memory size for storing history data. Make sure that fping binary has root ownership and SUID flag set! Frequency of heartbeat messages in seconds. Unique Proxy name. You may include individual files or all files in a directory in the configuration file. as it performs VACUUM.heartbeat messages disabled.2 and higher.8.0. 0 . If not set.0 ListenPort LogFileSize LogFile no no no 102432767 0-1024 10051 1 LogSlowQueries no 03600000 0 PidFile ProxyLocalBuffer no no 0-720 /tmp/zabbix_proxy.8/complete 19/11/2010 . text or log history data. Name of log file. Make empty (“Fping6Location=”) if your fping utility is capable to process IPv6 addresses. the query is logged to the log file. Name of PID file. 0 . syslog is used. Proxy operating mode.

in seconds. Number trappers of pre-forked instances of StartPollersUnreachable no 0-255 1 StartPollers StartTrappers no no 0-255 0-255 5 5 Timeout TmpDir TrapperTimeout no no no 1-30 3 /tmp Specifies how long we wait for agent. Older data will be lost. Number of discoverers.com/documentation/1. Source IP connections. address for outgoing Server yes SourceIP no StartDBSyncers no 1-64 4 Number of pre-forked instances of DB Syncers. After how many seconds of unreachability treat a host as unavailable. For a proxy in the passive mode this parameter will be ignored. in seconds. ProxyOfflineBuffer SSHKeyLocation ServerPort no no no 102432767 10051 0-720 1 Proxy will keep data for N hours in case if no connectivity with Zabbix Server. SNMP device or external check (in seconds).3 and higher.Zabbix 1. Number of pre-forked instances of pollers. Number of pre-forked instances of ICMP pingers. For a proxy in the passive mode this parameter will be ignored. Size of trend cache.zabbix. Number of pre-forked instances of IPMI pollers. How often host is checked for availability during the unavailability period.3 and higher.8. 1-300 300 TrendCacheSize no 128K-1G 4M UnavailableDelay no 1-3600 60 UnreachableDelay no 1-3600 15 UnreachablePeriod no 1-3600 45 http://www. in bytes. Temporary directory. pre-forked instances of StartDiscoverers StartHTTPPollers StartIPMIPollers StartPingers no no no no 0-255 0-255 0-255 0-255 1 1 0 1 Number of pre-forked instances of HTTP pollers. This option is missing in version 1. Shared memory size for storing trends data. Specifies how many seconds trapper may spend processing new data. How often host is checked for availability during the unreachability period. Active Proxy will get configuration data from the server. Number of pre-forked instances of pollers for unreachable hosts (including IPMI).3.8. IP address (or hostname) of Zabbix server.8.8/complete 19/11/2010 .8 Manual [Zabbix] Página 66 de 285 This option is supported in version 1. This option is supported in version 1. Location of public keys for SSH checks Port of Zabbix trapper on Zabbix server.

Zabbix Agent can be started by executing: shell> cd sbin shell> . Specifies debug level 0 .critical information 2 .warnings 4 . The agent will work in passive mode listening for server.avg1]" The configuration file contains configuration parameters for zabbix_agentd. Standalone daemon) Zabbix UNIX Agent runs on a host being monitored. Disable passive checks.conf --help give this help --version display version number --print print supported metrics and exit --test <metric> test specified metric and exit In order to get this help run: shell> zabbix_agentd -h Example of command line parameters: shell> shell> shell> shell> zabbix_agentd zabbix_agentd zabbix_agentd zabbix_agentd -c /usr/local/etc/zabbix_agentd. The file must exist and it should have read permissions for user 'zabbix'. Zabbix Agent accepts the following command line parameters: -c -h -v -p -t --config <file> specify configuration file. Zabbix Agent processes items of type 'Zabbix Agent' or 'Zabbix Agent (active)'. Only active checks will be processed.zabbix. default is /etc/zabbix/zabbix_agentd. 0 . 0 .3. The agent will not listen on any TCP port. Maximum number of values in a memory buffer. The agent provides host's performance and availability information for Zabbix Server.8 Manual [Zabbix] Página 67 de 285 3.com/documentation/1.do not disable 1 .disable Whether remote commands server are allowed.not allowed 1 .conf --help --print -t "system./zabbix_agentd Zabbix Agent runs as a daemon process.8/complete 19/11/2010 .for debugging information) BufferSize no 265535 100 DebugLevel no 0-4 3 (produces lots of DisableActive no 0 Disable active checks.no debug 1 . Supported parameters: Parameter BufferSend Mandatory Range no 1-3600 5 Default Description Do not keep data longer than N seconds in buffer.cpu.error information 3 . Zabbix Agent (UNIX. The agent will send all collected data to Zabbix Server or Proxy if the buffer is full.load[all.allowed from Zabbix DisablePassive no 0 EnableRemoteCommands no 0 http://www.Zabbix 1.

You may include individual files or all files in a directory in the configuration file.0 ListenPort LogFileSize LogFile no no no 102432767 10050 0-1024 1 LogRemoteCommands no 0 MaxLinesPerSecond no 1-1000 100 PidFile RefreshActiveChecks ServerPort no no no 603600 /tmp/zabbix_agentd. in seconds.8. 120 10051 How often list of active checks is refreshed.0. There can be several user-defined parameters. 1-16 1-30 3 3 Number of pre-forked instances of zabbix_agentd that process passive checks. Format: UserParameter=<key>.3 and higher.Zabbix 1. The file must exist and it should have read permissions for user 'zabbix'. Include no ListenIP no 0. No spaces allowed. List of comma delimited IP addresses that the agent should listen on.1 0 UserParameter no 3.disable automatic log rotation. If not set. Agent will listen on this port for connections from the server. 0 . Enable logging of executed shell commands as warnings 0 . Example: UserParameter=system.8/complete 19/11/2010 . The provided value will be overridden by the parameter 'maxlines'. Supported since Zabbix 1. Maximum size of log file in MB. Inetd version) The file contains configuration parameters for zabbix_agent.zabbix. Required for active checks and must match hostname as configured on the server.2. Note that hostnames must resolve hostname→IP address and IP address→hostname.pid Name of PID file.who|wc -l Server yes SourceIP StartAgents Timeout no no no UnsafeUserParameters no 0. List of comma delimited IP addresses (or hostnames) of Zabbix servers.<shell command> Note that shell command must not return empty string or EOL only.enabled Maximum number of new lines the agent will send per second to Zabbix Server or Proxy processing 'log' and 'eventlog' active checks.8 Manual [Zabbix] Página 68 de 285 Hostname system.test.8.com/documentation/1.uname Unique hostname. First entry is used for receiving list of and sending active checks. Source IP address for outgoing connections. Name of log file.0. Spend no more than Timeout seconds on processing Allow all characters to be passed in arguments to user-defined parameters. provided in 'log' or 'eventlog' item key. syslog is used. User-defined parameter to monitor. Zabbix Agent (UNIX. Server port for retrieving list of and sending active checks.disabled 1 . Multiple IP addresses are supported in version 1. Supported parameters: http://www.4.

Step 2 Install agent as a Windows service.en-us.0. There can be several user-defined parameters.284996 [http://support.test. You can find this article at http://support.DLL is needed.aspx?scid=kb. Microsoft Knowledge Base article number 284996 describes this in detail and contains a download link.who|wc -l 3 0 UnsafeUserParameters no UserParameter no 5. Create configuration file c:/zabbix_agentd.aspx?scid=kb.conf (it has similar syntax as the UNIX agent). Connections from other IP addresses will be rejected. Example: UserParameter=system.8/complete 19/11/2010 .com/default.<shell command> Note that shell command must not return empty string or EOL only.0 note. This DLL is not supplied with Windows NT 4. Do not spend more than Timeout seconds on getting requested value (1-255).Zabbix 1.exe --start Windows NT 4. zabbix_agentd.en-us.zabbix.exe --install If you wish to use configuration file other than c:\zabbix_agentd.com/documentation/1.conf. Format: UserParameter=<key>.exe uses PDH (Performance Data Helper) API to gather various system information.8 Manual [Zabbix] Página 69 de 285 Parameter Server Timeout Mandatory yes no - Default value Description Comma-delimited list of IP addresses of ZABBIX Servers or Proxies.microsoft. so PDH. Zabbix Agent (Windows) Installation Installation is very simple and includes 3 steps: Step 1 Create configuration file.284996] http://www.com/default. you should use the following command for service installation: zabbix_agentd.exe --config <your_configuration_file> --install Full path to configuration file should be specified. The agent does not kill timeouted User Parameters processes! Allow all characters to be passed in arguments to user-defined parameters User-defined parameter to monitor. so you need to download and install it by yourself. Step 3 Run agent.microsoft. Now you can use Control Panel to start agent's service or run: zabbix_agentd. Zabbix_agentd.

8 Manual [Zabbix] Página 70 de 285 Usage Command line syntax: zabbix_agentd. You can specify as many “Alias” records as you wish. Uninstall Zabbix agent service.warnings 4 .conf). Stop Zabbix agent service. The agent will send all collected data to Zabbix server or Proxy if the buffer is full. Disable passive checks.critical information 2 . you may use parameter “perf_counter[\Paging File (_Total)\% Usage]”. For example. if you wish to retrieve paging file usage in percents from the server. Display version number. Maximum number of values in a memory buffer. Supported parameters: Parameter Mandatory Range Default contains configuration parameters for Description Sets an alias for parameter.for debugging (produces lots of information) Disable active checks.exe [-Vhp] [-idsx] [-c <file>] [-t <metric>] Zabbix Windows Agent accepts the following command line parameters: Options: -c -h -V -p -t --config <file> --help --version --print --test <metric> Specify alternate configuration file (default is c:\zabbix_agentd.conf) zabbix_agentd. Only active checks will be processed. The agent will work in passive mode listening for server. Display help information.exe. Test single check (metric) and exit.error information 3 . Alias no BufferSend no 13600 5 Do not keep data longer than N seconds in buffer. It can be useful to substitute long and complex parameter name with a smaller and simpler one.zabbix.no debug 1 .Zabbix 1. 0 .com/documentation/1. Start Zabbix agent service. The agent will not listen on any TCP port.8/complete 19/11/2010 . or you may define an alias by adding the following line to configuration file Alias = pg_usage:perf_counter[\Paging File(_Total)\% Usage] After that you can use parameter name “pg_usage” to retrieve the same information.disable BufferSize no 2100 65535 DebugLevel no 0-4 3 DisableActive no 0 DisablePassive no 0 http://www. The configuration file (c:/zabbix_agentd. Functions: -i -d -s -x --install --uninstall --start --stop Install Zabbix agent as a service.do not disable 1 . Print list of supported checks (metrics) and exit. Specifies debug level 0 . Aliases cannot be used for parameters defined in “PerfCounter” configuration file records.

There can be several user-defined parameters. UnsafeUserParameters no 0-1 0 UserParameter http://www. No spaces allowed.com/documentation/1. case sensitive hostname.allow User-defined parameter to monitor.0. '::127.not allowed 1 .zabbix. Maximum number of new lines the agent will send per second to Zabbix Server or Proxy processing 'log'.0. 0 .0. System hostname is used if undefined. The provided value will be overridden by the parameter 'maxlines'. Source IP address for outgoing connections.60 Please note double quotes around performance counter path.allowed Unique.0. Agent will listen on this port for connections from the server.”<perf_counter_path>”. Server yes SourceIP StartAgents Timeout no no no 1-16 1-30 3 3 Number of pre-forked instances of zabbix_agentd that process passive checks. 'logrt' and 'eventlog' active checks.1' are treated equally. Name of log file.0 102410050 32767 01024 1 Agent will listen on the specified interface.1'.1'.<period> Defines new parameter <parameter_name> which is an average value for system performance counter <perf_counter_path> for the specified time period <period> (in seconds). If not set. if you wish to receive average number of processor interrupts per second for last minute. '::ffff:127.0. For example. You may include individual files or all files in a directory in the configuration file. You may run “typeperf -qx” to get list of all performance counters available in Windows. in seconds. Syntax: <parameter_name>. First entry is used for receiving list of and sending active checks.Zabbix 1.8/complete 19/11/2010 . 0 . you can define new parameter “interrupts” as following: PerfCounter = interrupts. provided in 'log'.disable automatic log rotation. Maximum size of log file in MB. 'logrt' or 'eventlog' item keys. 0 .”\Processor(0) \Interrupts/sec”. If IPv6 support is enabled then '127.do not allow 1 .8 Manual [Zabbix] Página 71 de 285 EnableRemoteCommands no 0 Whether remote commands from Zabbix server are allowed.0. Spend no more than Timeout seconds on processing Allow all characters to be passed in arguments to user -defined parameters.0. Hostname system. List of comma delimited IP addresses (or hostnames) of Zabbix servers.0. Required for active checks and must match hostname as configured on the server. MaxLinesPerSecond no 11000 100 PerfCounter no RefreshActiveChecks ServerPort no no 603600 120 10051 How often list of active checks is refreshed. Samples for calculating average value will be taken every second. Windows Event Log is used. Server port for retrieving list of and sending active checks.hostname Include ListenIP ListenPort LogFileSize LogFile no no no no no 0.

2 seconds can be put in the same stack.7. Zabbix Sender can be started by executing: shell> cd bin shell> .connections -o 43 Starting with Zabbix 1.Zabbix 1.0.8 Manual [Zabbix] Página 72 de 285 Format: UserParameter=<key>.avg1]" Zabbix Get accepts the following command line parameters: -p -s -I -k -h -v --port <port number> Specify port number of agent running on the host.4.1 -p10050 -k"system.0. Configuration http://www. In order to get this help run: shell> zabbix_get -h 4.<shell command> Note that shell command must not return empty string or EOL only. --version Display version number.zabbix.8/complete 19/11/2010 . Zabbix Get can be started by executing: shell> cd bin shell> . Example: UserParameter=system.load[all. but maximum pooling time still is 1 second. 1 Comment 3. and sending them to the server in single connection. Default is 10050.echo 1 2 Comments 6.8. Zabbix Get (UNIX) Zabbix UNIX Get is a process which communicates with Zabbix Agent and retrieves required information.cpu. The utility is usually used for troubleshooting of ZABBIX Agents. --source-address <ip address> Specify source IP address -key <key of metric> Specify metric name (key) we want to retrieve.com/documentation/1. --help Give this help.test. See Zabbix Sender manpage for more information./zabbix_sender -z zabbix -s LinuxDB3 -k db./zabbix_get -s127. -host <host name or IP> Specify host name or IP address of a host. Value that is not further apart from previous value than 0. The utility is usually used in long running user scripts for periodical sending of availability and performance data. zabbix_sender has been improved in realtime sending scenarios by gathering multiple values that are passed to it in close succession. Zabbix Sender (UNIX) Zabbix UNIX Sender is a command line utility which may be used to send performance data to Zabbix server for processing.

8 Manual [Zabbix] Página 73 de 285 1.8/complete 19/11/2010 .event came from Trigger. Action status: Enabled – action is active Disabled – action is disabled Warning: before enabling recovery messages or escalations. Recovery message. Action conditions An action is executed only in case if an event matches defined set of conditions. The messages will be sent only to those who received any message regarding this problem before. Default message Recovery message Recovery subject Recovery message Status Default notification message. The message may contain macros.events generated by new active agents Enable escalations. An action can be defined for any event or set of events generated by Zabbix. Event source: Triggers – action will be executed for events generated by triggers Discovery – action will be executed for discovery events Description Event Source Enable escalations Period (seconds) Event Source Default subject Default notification subject. Source of event.event came from this Host Group <> . It may contain macros.com/documentation/1. If enabled. The following conditions can be defined for Trigger based events: Condition type Supported operators = like not like Description = .event came from Trigger.event did not come from this Host Group Compare against Host Template the trigger belongs to. otherwise remedy events can become escalated as well. which is part of the Application like . Time period for increase of escalation step. = . If enabled.event came from a trigger inherited from this Host Template <> . Action attributes: Parameter Name Unique action name.zabbix. = .event came from Trigger. make sure to add “Trigger value = PROBLEM” condition to the action. It may contain macros. the action will be escalated according to operation steps defined for operations.event did not come from a trigger inherited from this Host Template Application Host group = <> = <> Host template http://www. The subject may contain macros. Actions Zabbix reacts to events by executing set of operations. which is part of the Application containing the String not like . Currently three sources are supported: Triggers – events generated by trigger status changes Discovery – events generated by auto-discovery module Auto registration .Zabbix 1. Zabbix will send a recovery message after the original problem is resolved. Subject of the recovery message. which is part of the Application not containing the String Compare against Host Group having a trigger which generated event.

is treated as OK→PROBLEM.hh:mm-hh:mm.equal to trigger value (OK or PROBLEM) Event is within time period. Parameter is given in seconds.8 Manual [Zabbix] Página 74 de 285 Host = <> = <> description like not like = <> >= <= = Compare against Host having a trigger which generated event. in – event time matches the time period. Compare with value received from an agent (Zabbix.matches discovered service <> .… Check if host is in maintenance. = .zabbix. Uptime for Host Up and Service Up events.less or equal to trigger severity Compare with Trigger Value.equal to the value <> . = .event came from a different service Check if TCP port number of a discovered service is or is not in the range of ports.Zabbix 1. = .event generated by this Trigger <> .uptime/downtime is more or equal <= . Time period is given in format: dddd. <> . Host IP Service type = <> Service port = <> Discovery status = >= Uptime/Downtime <= Received value = <> >= <= like not like http://www.hh:mm:hh:mm.not equal to the value >= .Host IP is out of the range Check if a discovered service. Case sensitive. and The following conditions can be defined for Discovery based events: Condition type Supported operators = <> Description Check if IP address of a discovered Host is or is not in the range of IP addresses.Host IP is in the range <> .service port is out of the range Up – matches Host Up and Service Up events Down – matches Host Down and Service Down events Downtime for Host Down and Service Down events.more or equal to trigger severity <= . String comparison.event came from this Host <> . not like – String cannot be found in Trigger Name.uptime/downtime is less or equal.event did not come from this Host Compare against Trigger which generated event. = . >= . = . Compare with Trigger Severity.com/documentation/1. = . = .not equal to trigger severity >= .event generated by other Trigger Compare against Trigger Name which generated event. = . like – String can be found in Trigger Name. Case sensitive.less or equal to the value like – has a substring not like – does not have a substring.8/complete 19/11/2010 . SNMP).Host is in maintenance mode. Parameter is given as a string.more or equal to the value <= .equal to trigger severity <> .dd-dd. = .Host is not in maintenance mode.service port is in the range <> . Trigger Trigger (name) Trigger severity Trigger value Time period in in Maintenance status = <> Trigger value: Trigger changes status from OK to PROBLEM (trigger value is PROBLEM) Trigger changes status from PROBLEM to OK (trigger value is OK) Status change OK→UNKNOWN→PROBLEM PROBLEM→UNKNOWN→OK as PROBLEM→OK.

versions of Zabbix prior to 1. Zabbix 1. Parameter Step Description If escalation is enabled for this action. If a host exists in Zabbix configuration with the same name as a newly discovered one. resolved name is used. starting with 2. if the subject contains ASCII characters only. Besides. then all ”:” (colons) are replaced by “_” (underscores).3. To successfully receive and read e-mails from Zabbix.Zabbix 1. If performing discovery by a proxy. it is not UTF-8 encoded. Starting from 1.8 Manual [Zabbix] Página 75 de 285 For example this set of conditions (calculation type: AND/OR): ■ Host group = Oracle servers ■ Host group = MySQL servers ■ Trigger name like 'Database is down' ■ Trigger name like 'Database is unavailable' is evaluated as (Host group = Oracle servers or Host group = MySQL servers) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable') Operations Operation or a set of operations is executed when event matches conditions.8 would add another host with the same name.8. where N is increasing number. Zabbix supports the following operations: ■ Send message ■ Remote command(s). If not.2 the subject and the body of the message are base64-encoded to follow 'SMTP/MIME e-mail' format standard. e-mail servers/clients must support standard 'SMTP/MIME e-mail' format since Zabbix sends UTF-8 data.8.8/complete 19/11/2010 . Additional operations available for discovery events: ■ Add host ■ Remove host ■ Enable host ■ Disable host ■ Add to group ■ Delete from group ■ Link to template ■ Unlink from template When adding a host. currently hostname lookup still takes place on Zabbix server.com/documentation/1.8.1 and latter adds _N to the hostname. its name is decided by standard gethostbyname function. escalation settings: From – execute for each step starting from this one http://www. if IPv6 address must be used for a host name. since ”:” (colons) are not allowed in host names. IP address is used. Starting with 1. including IPMI.zabbix. If the host can be resolved.

Starting from 1. The subject may contain macros. Macros for messages and remote commands The macros can be used for more efficient reporting.Zabbix 1. Subject of the message.STATUS} Message subject will be replaced by something like: 'Processor load is too high on server zabbix.last(0)} MAX for 15 minutes: {{HOSTNAME}:{TRIGGER. The message itself.com: ON' Example 2 Message: Processor load is: {zabbix. 0 – use default period. Operation type Event Source Send message to Default message Subject Message Send message to: Single user – a single user User group – to all members of a group If selected.com/documentation/1.KEY}. Example 1 Subject: {TRIGGER. Type of action: Send message – send message to user Execute command – execute remote command Remote command List of remote commands.8 Manual [Zabbix] Página 76 de 285 To – till this (0.com:system. which generated the event.2. which have read permissions to a host (trigger).8/complete 19/11/2010 . Zabbix sends notifications only to those users.zabbix.6.min(900)} The message will be replaced by something like: http://www. for all steps starting from From) Period – increase step number after this period.load[.45' Example 3 Message: Latest value: {{HOSTNAME}:{TRIGGER. The message may contain macros.zabbix.KEY}.KEY}.zabbix.NAME}: {TRIGGER.avg1]. At least one host of a trigger expression must be accessible.cpu.last(0)} The message will be replaced by something like: 'Processor load is: 1.max(900)} MIN for 15 minutes: {{HOSTNAME}:{TRIGGER. default message will be used.

STATUS} {EVENT.TIME} {HOSTNAME<1-9>} X X X {HOST.8/complete 19/11/2010 .ACK.DEVICE.UPTIME} {DISCOVERY.ID} {EVENT.NAME} {DISCOVERY.SERVICE.DEVICE.AGE} {EVENT.com/documentation/1.DATE} {EVENT.Zabbix 1.IPADDRESS} {DISCOVERY.SERVICE.CONN<1-9>} {HOST.STATUS} {DISCOVERY.01 2 Comments 2.8 Manual [Zabbix] Página 77 de 285 Latest value: 1.NAME} {DISCOVERY.zabbix.33 MIN for 15 minutes: 1.45 MAX for 15 minutes: 2.STATUS} {DISCOVERY.HISTORY} {EVENT. Macros Zabbix supports number of macros which may be used in various situations.PORT} {DISCOVERY.SERVICE.DEVICE.DNS<1-9>} {IPADDRESS<1-9>} X X X X X X X X X X X X http://www.UPTIME} {ESC. MACRO Notifications Auto Discovery GUI Item key's Map and registration notifications Scripts parameters labels commands notifications X X X X X X X X X X X X X X X X X X X X X X X X X X {DATE} {DISCOVERY.ACK. Effective use of macros allows to save time and make Zabbix configuration more transparent. List of supported macros The table contains complete list of macros supported by Zabbix.RULE.SERVICE.HISTORY} {EVENT.

HARDWARE<1-9>} {PROFILE.SEVERITY<1-9>} {ITEM.LOG.AGE<1-9>} {ITEM.LOG.zabbix.NSEVERITY<1-9>} {ITEM.EVENTID<1-9>} {ITEM.com/documentation/1.LOG.NOTES<1-9>} {PROFILE.SOURCE<1-9>} {ITEM.VALUE<1-9>} X {NODE.MACADDRESS<1-9>} {PROFILE.DATE<1-9>} {ITEM.NAME<1-9>} X {ITEM.DEVICETYPE<1-9>} {PROFILE.OS<1-9>} {PROFILE.LOG.LOG.LASTVALUE<1-9>} X {ITEM.NAME<1-9>} {PROFILE.SOFTWARE<1-9>} X X X X X X X X X X X X X X X X http://www.SERIALNO<1-9>} {PROFILE.8/complete 19/11/2010 .ID<1-9>} {NODE.LOG.NAME<1-9>} {PROFILE.LOCATION<1-9>} {PROFILE.8 Manual [Zabbix] Página 78 de 285 {ITEM.TIME<1-9>} X X X X X X X {ITEM.LOG.CONTACT<1-9>} {PROFILE.Zabbix 1.

com/documentation/1.EVENTS.UNACK} X {TRIGGER.UNACK} X X {TRIGGER.EVENTS.COMMENT} X X X X X {TRIGGER.KEY<1-9>} X {TRIGGER.NAME} {TRIGGER.PROBLEM.EVENTS.ACK} X X {TRIGGER.PROBLEM.TAG<1-9>} {TIME} {TRIGGER.ACK} X X {TRIGGER.ACK} X {TRIGGER.PROBLEM.8 Manual [Zabbix] Página 79 de 285 {PROFILE.EVENTS.Zabbix 1.PROBLEM.EVENTS.PROBLEM.ID} X {TRIGGER.zabbix.PROBLEM.8/complete 19/11/2010 .EVENTS.NSEVERITY} X X http://www.UNACK} X X {TRIGGER.

UNACK} X {TRIGGERS.STATUS} X {TRIGGER.SEVERITY} X {TRIGGER.VALUE} X {TRIGGERS.8/complete 19/11/2010 .ACK} X http://www.UNACK} X {TRIGGERS.URL} X {TRIGGER.com/documentation/1.zabbix.8 Manual [Zabbix] Página 80 de 285 {TRIGGER.Zabbix 1.PROBLEM.

8.com/documentation/1. The macros can be used in item keys and trigger expressions. 0-9 . The following characters are allowed in the macro names: A-Z .8. _ . macros defined for templates of the host. regular expressions. Zabbix will check templates of deeper level taking into account template inheritance. In case if Zabbix is unable to find a macro. global macros for global one-click configuration changes and fine tuning Example 1 Use of host macro in item “Status of SSH daemon” key: http://www. If still not found. Since Zabbix version 1.8 Manual [Zabbix] Página 81 de 285 {TRIGGERS.ACK} X {host:key. Zabbix supports user macros.Zabbix 1. a global template will be used.PROBLEM. 3. the macro will not be substituted. taking advantage of templates with host specific attributes: passwords. These macros have a special syntax: {$MACRO}. etc 2.4 user macros can also be used in item descriptions and trigger names. if exists. Zabbix will try to find it in host templates.zabbix. if a macro does not exist for a host. The global and host level macros is an excellent way of making maintenance of Zabbix configuration much easier. Most common use cases of global and host macros: 1. . template and host level. User macros For a greater flexibility. which can be defined on global.8/complete 19/11/2010 .func(param)} X X {$MACRO} X Macros for host labels are supported starting from 1. port numbers. global macros (checked last) In other words. Zabbix substitutes macros according to the following precedence: 1. host macros (checked first) 2. file names.

min({$CPULOAD_PERIOD})}>{$MAX_CPULOAD} Note that a macro can be used as a parameter of trigger function. These graphs. None. Currently a host cannot be linked to different templates having same application.zabbix. Currently user macros are not supported in SNMP OID field.com/documentation/1. http://www.cpu. include hash mark in the macro like this: SOME_PERIOD ⇒ #3 Example 3 Use of two macros in trigger “CPU load is too high”: {ca_001:system. can be easily accessed via Monitoring→Graphs. max(#3)). application 'MySQL Server' may contain all items which are related to the MySQL server: availability of MySQL. 7 Comments 3. Email Email notification.Zabbix 1. in this example function min (). etc. Medias Media is a delivery channel for Zabbix alerts. For example.avg1].5.avg1]. once configured. transactions per second. Graphs Custom (user defined) graphs allow the creation of complex graphs.{$SSH_PORT} Example 2 Use of host macro in trigger “CPU load is too high”: {ca_001:system. Applications Application is a set of host items. An item may be linked with one or more applications.load[.cpu.8 Manual [Zabbix] Página 82 de 285 ssh. Applications are used in Zabbix front-end to group items. 1 Comment 4. one or more media types can be assigned to user. number of slow queries. processor load. 3 Comments 4. disk space.8/complete 19/11/2010 . Configuration of custom graphs can be accessed by navigating to Configuration→Templates or Configuration→Hosts and clicking on Graphs link for corresponding template or host.last(0)}>{$MAX_CPULOAD} If you want to use amount of values as the function parameter (for example.load[.

PIN can be entered by issuing command AT+CPIN=“NNNN” (NNNN is your PIN number. Alternatively you may disable PIN on the SIM card. GSM Modem Zabbix supports sending of SMS messages using Serial GSM Modem connected to Zabbix Server's serial port.Zabbix 1. Zabbix passes three command line parameters to the script: Recipient.8/complete 19/11/2010 . triggers and graphs of the template will be automatically added to the linked hosts. Zabbix does not set speed of the serial link. Subject and Message. Change definition of a template item (trigger. Make sure that: ■ Speed of a serial device (normally /dev/ttyS0 under Linux) matches GSM Modem. Host templates Use of templates is an excellent way of making maintenance of Zabbix much easier. Assign new host group to the template. ■ The serial device has read/write access for user zabbix. graph) and the change will be automatically applied to the hosts.8 Manual [Zabbix] Página 83 de 285 Jabber Notifications using Jabber messaging. Link with template Used to create hierarchical templates. Script Custom script. List of host groups the template belongs to. The name must be unique within ZABBIX Node. It uses default settings.com/documentation/1. Zabbix has been tested with the following GSM modems: ■ Siemens MC35 ■ Teltonika ModemCOM/G10 6. http://www. such as Unix minicom or Windows HyperTerminal. ■ GSM Modem has PIN entered and it preserves it after power reset.zabbix. A template can be linked to a number of hosts. Items. the quotes must present) in a terminal software. Run commans ls –l /dev/ttyS0 to see current permission of the serial device. Host template attributes: Parameter Name Groups New group Description Unique template (host) name.

Host dependencies can be defined using more flexible option. The name must be unique within Zabbix Node.e.Zabbix 1.1.8.8 Manual [Zabbix] Página 84 de 285 7. Example 1 Host dependency Suppose you have two hosts: a router and a server. Host and trigger dependencies Zabbix does not support host dependencies. Item key http://www. i. trigger dependencies. we create a trigger dependency: "The host is down" depends on "The router is down" In case if both the server and the router is down.zabbix. one or more hosts. we want to receive only one notification if the route is down: “The router is down” instead of: “The router is down” and “The host is down” In order to achieve this. So. Items Item is a single performance or availability check (metric). It means that the trigger will still change its status regardless of state of the triggers in the list. Zabbix will not execute actions for trigger “The host is down”. Hosts List of hosts of this group. Host group attributes: Parameter Description Group name Unique host group name.8/complete 19/11/2010 . Host groups Host group may have zero. How it works? A trigger may have list of one or more triggers it depends on. The server is behind the router. yet the trigger won't generate notifications and actions in case if one of the trigger in the list has state PROBLEM. 4.com/documentation/1. 19. 19.

if not .as depicted by the two lines that could be taken.fs.zabbix.1.it is not allowed.size[/] ■ vfs. Flexible and non-flexible parameters Flexible parameter is a parameter which accepts argument. Allowed elements and characters at each point can be determined by following the lines .2. Key parameters An item key can have multiple parameters that are comma separated.com/documentation/1.fs. ■ dot. has to follow syntax rules. ■ all uppercase letters. which just follow each other. Which means: ■ all numbers.1. ■ all lowercase letters.1. For example. Item key To construct a valid item key. Correct definition examples: ■ vfs.Zabbix 1. it is allowed. Key name Key name itself has a limited range of allowed characters. one starts with specifying key name. ■ underscore. Key format Item key format.8/complete 19/11/2010 .size[/opt] 19.8 Manual [Zabbix] Página 85 de 285 19. including key parameters. Allowed characters are: 0-9a-zA-Z_-.fs.if some block can be reached through the line. http://www. ■ dash.size[*] is a flexible parameter. * is any string that will be passed as argument to the parameter. vfs. The following illustrations depict supported syntax. then there's a choice to either have parameters or not .

Zabbix 1. any Unicode character is allowed. any Unicode character is allowed except comma and right square bracket (]).8 Manual [Zabbix] Página 86 de 285 Individual key parameter Each key parameter can be either quoted string.500 milliseconds. Parameter can also be left empty. http://www. and all other parameters are left at their defaults. timeout . item key icmpping[.500] would specify that interval between individual pings is 200 milliseconds. Parameter .200. In that case appropriate amount of commas must be added if any further parametrs are specified. unquoted string or an array.com/documentation/1.8/complete 19/11/2010 .unquoted string If the key parameter is an unquoted string.. For example. Parameter .quoted string If the key parameter is a quoted string. thus using the default value.. and included double quotes must be backslash escaped.zabbix.

gnu. Such items are still rechecked at a fixed interval.<maxlines>.version kernel.if. Parameter / system agent. such as documentation for libiconv [http://www.1. For items that are marked with ”?” it is not known whether they are supported or not.8/complete 19/11/2010 .<maxlines>. so that data acquired would not be corrupted. please. If empty “encoding” parameter is passed.zabbix.maxproc log[file. For a list of supported encodings (code page identifiers).maxfiles kernel.collisions[if] - http://www.<regexp>.<mode>] net.<regexp>. Unsupported items An item can become unsupported if its value can not be retrieved for some reason. it is again enclosed in square brackets.array If the key parameter is an array. configurable in Administration section. If a parameter is marked with “i”.<maxlines>. see your system's settings) is used by default.<eventid>. Available encodings The parameter “encoding” is used to specify encoding for processing corresponding item checks.<regexp>.com/documentation/1. then ANSI with system specific extension (Windows) or UTF-8 (default locale for newer Unix/Linux distributions.<encoding>.4 2.2. it means that it is ignored.<encoding>.<mode>] logrt[file_format. 19.6 X X X X X X X X X X X X X X X X X X X X X X X X X X eventlog X [name. Supported by Platform In the following lists parameters that are included in angle brackets <like_this> are optional. where individual parameters come following multiple parameter specifying rules and syntax.8 Manual [Zabbix] Página 87 de 285 Parameter .org/software/libiconv/] (GNU Project) or Microsoft Windows SDK documentation for “Code Page Identifiers”.3. consult respective documentation.<source>.<mode>] Windows X X X X Linux Linux FreeBSD Solaris 2. 19.Zabbix 1.<severity>.ping agent. 19.3.

boottime system.service[service.tcp.dns.<mode>] mode bytes packets errors dropped net.if.port[<ip>.zabbix.<mode>] mode bytes packets errors dropped net.<mode>.<state>.service.cpu.if.query[<ip>.<ip>.8/complete 19/11/2010 .load[<cpu>.dns[<ip>.tcp.listen[port] proc.udp.zone] net.<user>.<cmdline>] mode sum avg max min proc.cpu.intr system.com/documentation/1.total[if.tcp.<mode>] mode avg1 avg5 avg15 system.<ip>.<port>] net.perf[service.num[<name>.in[if.Zabbix 1.<type>] net.tcp.if.port] net.<state>.tcp.if.out[if.list net.cpu.listen[port] net.<port>] net.<cmdline>] state all sleep zomb run sensor[<temp>] temp temp1 temp2 temp3 services[<type>.zone.num[<type>] X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X http://www.tcp.<mode>] mode bytes packets errors dropped net.<exclude>] system.<user>.8 Manual [Zabbix] Página 88 de 285 net.mem[<name>.

<type>] mode free total used pfree pused system.switches system.com/documentation/1.swap.swap.<mode>] type user nice idle system kernel iowait wait interrupt softirq steal mode avg1 avg5 avg15 system.swap.<type>.<type>.localtime type utc local system.<type>] system.hostname system.8/complete 19/11/2010 .in[<device>.8 Manual [Zabbix] Página 89 de 285 type online max system.stat[resource.out[<device>.users.uptime system.<type>] type count sectors pages system.zabbix.size[<device>.dev.run[command.cpu.util[<cpu>.<type>] type count sectors pages system.cpu.uname system.<mode>] mode wait nowait system.<mode>] type sectors operations X X X X X X X X X X X X X X X - X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X - X X X X X X X X X X X X X X X X X X X X X X X X X X X http://www.read[device.num vfs.Zabbix 1.

file.<mode>] type sectors operations bytes sps ops bps mode avg1 avg5 avg15 vfs.com/documentation/1.<encoding>] vfs.md5sum[file] vfs.time[file.<type>.write[device.file.file.inode[fs.file.regexp[file.<mode>] mode total free used pfree pused vm.cksum[file] vfs.zabbix.8 Manual [Zabbix] Página 90 de 285 bytes sps ops bps mode avg1 avg5 avg15 vfs.size[fs.memory.regmatch[file.file.exists[file] vfs.<encoding>] vfs.size[file] vfs.file.regexp.<encoding>] vfs.dev.<mode>] mode modify access change vfs.file.8/complete 19/11/2010 .file.regexp.<mode>] mode total free used pfree pused vfs.Zabbix 1.contents[file.fs.fs.size[<mode>] mode total free used shared X X X X X X X X X X X X X X X X X X X X - X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X - http://www.

zabbix.<maxlines>.page. Maximum number of processes supported by OS.<path>. Zabbix Agent List of supported parameters Key Description Return value Returns '1' if agent is available.<encoding>. Log.<port>] web. Integer. logrt[file_format.<mode>] Monitoring of log file with log rotation support.com/documentation/1. Number of processes.page.<path>. http://www.<port>] web.maxfiles Version of Zabbix Agent.Zabbix 1.<length>] Parameter / system X X X X X Windows X X X X X X X X X X X X X X X X X X X X X X X Linux Linux FreeBSD Solaris 2.8 Manual [Zabbix] Página 91 de 285 buffers cached pfree pused available web.4.page.<path>.<regexp>.<encoding>.8/complete 19/11/2010 .4 2.ping Check the agent availability. nothing if unavailable. String Number of files.6 19.maxproc log[file.<regexp>.version kernel.<maxlines>.<port>. Integer. agent.perf[host. Maximum number of opened files supported by OS.<mode>] Monitoring of log file.<regexp>. kernel.get[host. agent.regexp[host. Log.

net.<eventid>.8/complete 19/11/2010 .<severity>.<mode>] Network interface outgoing statistic. Integer.collisions[if] Out-of-window collision. Integer. Integer. net.<maxlines>.<regexp>. Integer.total[if.Zabbix 1.<source>.out[if.if.com/documentation/1.if.if. http://www.if.if. net. Number of collisions. [name. net.8 Manual [Zabbix] Página 92 de 285 eventlog Monitoring of event logs.<mode>] Network interface incoming statistic.<mode>] Log.in[if.<mode>] Sum of network interface incoming and outgoing statistics.list List of network interfaces: Type String Status IPv4 Description net.zabbix.

intr Sensor reading.Zabbix 1. net.udp.DNS up On success returns a character string with the required type of information.cannot connect 1 .can connect 0 .it is in LISTEN state net. Device interrupts.port] Check.<user>. net.service is down 1 . net.DNS down 1 .com/documentation/1. Integer. http://www. 0 .mem[<name>.<port>] Check if service is running and accepting TCP connections. Integer.timeout connecting to the service 0 .<mode>.zabbix.it is not 1 .<state>. user sensor[<temp>] system.boottime system.<type>] Performs a query for the supplied DNS record type. 0 .listen[port] Checks if this TCP port is in LISTEN state.query[<ip>.8/complete 19/11/2010 .tcp.port[<ip>.zone.<ip>.it is in LISTEN state 0 . proc. net.<ip>.tcp.tcp.tcp. Timestamp of system boot.tcp.zone] Checks if DNS service is up.<user>.cpu.tcp.<port>] Check performance of service net.<cmdline>] Memory used by process name running under user user Memory used by process.<cmdline>] Number of processes name Number of having state running under user processes.service is down sec number of seconds spent while connecting to the service 0 .listen[port] Checks if this UDP port is in LISTEN state.dns[<ip>.service.8 Manual [Zabbix] Página 93 de 285 net.it is not 1 . if it is possible to make TCP connection to port number port.perf[service.num[<name>.service is running 2 . proc.service[service.dns.

<mode>] CPU(s) utilisation.Zabbix 1.com/documentation/1.num[<type>] Number of CPUs.run[command.cpu.zabbix.<type>.<type>] Virtual memory statistics Numeric value http://www.util[<cpu>.wikipedia.hostname Return host name.8/complete 19/11/2010 .cpu.<mode>] load Processor [http://en.switches Context switches. Float.cpu. (computing)]. Text result of the command system.org/wiki/Load_ load. Processor utilisation in percents system.8 Manual [Zabbix] Página 94 de 285 CPU system.stat[resource. system.cpu. Number available processors. system. Switches count. String value system. Integer string value.load[<cpu>.<mode>] Run specified command on the host.localtime System time. system. system.

8/complete 19/11/2010 .<type>] Swap out.zabbix. Swap statistics system.com/documentation/1.in[<device>. Swap statistics http://www.8 Manual [Zabbix] Página 95 de 285 system.swap.swap.Zabbix 1.out[<device>.<type>] Swap in.

Number of bytes or percentage system.file.md5sum[file] File's MD5 check sum vfs.cksum[file] Calculate file check sum File check sum calculated by algorithm used by UNIX cksum. vfs.8 Manual [Zabbix] Página 96 de 285 system.8/complete 19/11/2010 . Number of users connected.<mode>] Swap space.file does not exist 1 file exists MD5 hash of the file. Can be used only for files less than 64MB.uptime system.com/documentation/1. Numeric value vfs.Zabbix 1.write[device. Numeric value vfs.zabbix.regexp.<type>] Disk read statistics. String value system.file.read[device.file. Number of seconds Number of users vfs. Matched string or vfs.regexp[file.swap.<encoding>] Find string in a file http://www. unsupported otherwise.uname Returns detailed host information.contents[file.dev.dev.size[<device>.<type>] Disk write statistics.file.exists[file] Check if file exists 0 .<encoding>] Get file contents Text.file. vfs.num System's uptime in seconds.users.

fs.file.com/documentation/1.<mode>] Disk space Disk space in bytes vm. Key perf_counter [counter.time[file.<regexp>.page.zabbix.regexp[host.regexp.<interval>] Description Return value Comments Value of any Average value of the Performance Monitor can be used to performance “counter” during last obtain list of available counters.<encoding>] Find string in a file vfs.page.grsecurity.perf[host.<mode>] File time information. vfs.<length>] Get first occurrence of regexp in WEB page Matched string Linux-specific note. Number of seconds. version 1.org] limit access rights of non-privileged users.6 this parameter will return http://www. WIN32-specific parameters This section contains description of parameter supported by Zabbix WIN32 agent only.org [http://www.<path>.size[fs.page.memory. Kernel patches from www.size[file] File size vfs.get[host.8/complete 19/11/2010 .8 Manual [Zabbix] Página 97 de 285 EOF if expression not found 0expression not found 1 .inode[fs.<port>] Get timing of loading full WEB page Time in seconds web.<port>] Get content of WEB page WEB page source as text web. vfs.<path>. Until counter.size[<mode>] Memory size Memory size in bytes web.found Size in bytes.regmatch[file.file.<mode>] Number of inodes Numeric value vfs. Zabbix agent must have read-only access to filesystem /proc.<port>.file.grsecurity.Zabbix 1.fs. where “interval” seconds.<path>.

so the check returns an average value for last “interval” seconds every time.com/documentation/1. stop_pending. started. if list would be empty. that should be run services[automatic. if not and “interval” is given. paused exclude . 3 . “service1. separated by a newline or 0. excluding services with names service1. separated by comma.list of started services services[automatic. stopped.Number of bytes written by process during I/O operations io_write_op .continue pending seen in service properties under service name.service2 and service3 Different proc_info information [<process>. correct value only for counters that require just one sample (like \System\Threads).Number of I/O operations performed by process.Number of read operation performed by process io_write_b .6 interval is used. stopped. Default value.Size of process working set (amount of physical memory used by process) in Kbytes pf .<type>] about specific process(es). other than read and write operations gdiobj . Excluded services should be written in double quotes. manual.Number of bytes read by process during I/O operations io_read_op . for storing the average value. 5 .started] .pause pending Parameter must be real service name as Parameter is 4 .service3”] -list of stopped services. that should be run. start_pending.1.unknown 255 – no such service type . services [<type>.8 Manual [Zabbix] Página 98 de 285 “counter” is the counter path.Number of page faults ktime . without spaces.Zabbix 1. stopped] .Size of process virtual memory in Kbytes wkset . Since 1.list of services to exclude it from the result. running. <process> .<exclude>] List of services.Process kernel time in milliseconds utime Process user time in milliseconds io_read_b .process name (same as in proc_cnt[] parameter) <attribute> requested process attribute. This parameter is supported starting from version 1.Number of GDI objects used by http://www.8. for “interval” is the time period 1.<attribute>.list of stopped services. disabled state . pause_pending.Number of write operation performed by process io_other_b Number of bytes transferred by process during operations other than read and write operations io_other_op . automatic.service2. continue_pending.start pending State of service.<state>. 6 – stopped 7 . The following attributes are currenty supported: vmsize . service_state[*] 0 – running 1 – paused 2 .like CPU utilisation.one of all (default). Examples: services[.stop pending “Name:” or name of EXE file. It will not work as expected for counters that require more that one sample .zabbix.one of all (default).8/complete 19/11/2010 .

make sure that msgAuthoritativeEngineID (also known as snmpEngineID or “Engine ID”) is never shared by two devices.exe. use the following parameter: proc_info[iexplore. For SNMPv3 privacy and authentication currently MD5 and DES protocols are supported. 19. you wanted to monitor the bytes coming in to your switch on port 3 you would use: http://www.sum of values for all processes named <process> Examples: 1.Number of USER objects used by process <type> representation type (meaningful when more than one process with the same name exists). After creating the host.minimal value among all processes named <process> max . However.5.0. e. Step 2 Find out the SNMP string of the item you want to monitor.Zabbix 1. You can use the host. not on Windows NT 4. the template may not be compatible with the host.8 Manual [Zabbix] Página 99 de 285 process userobj .wkset.zabbix. Enter an IP address and a port of 161.average value for all processes named <process> sum .maximal value among all processes named <process> avg .8/complete 19/11/2010 . It must be unique for each device. You would then go through the list until you find the string you want to monitor.net-snmp.exe. use the following parameter: proc_info [iexplore. If monitoring SNMPv3 devices.com/documentation/1. The following steps have to be performed in order to add monitoring of SNMP parameters: Step 1 Create a host for the SNMP device. Valid values are: min . use 'snmpwalk' (part of ucd-snmp/net-snmp [http://www. Set the host Status to NOT MONITORED. If it doesn't then it is possible that the SNMP 'community' is different from the standard public in which case you will need to find out what it is.g.avg] Note: All io_xxx.org/] software which you should have installed as part of the Zabbix installation) or equivalent tool: shell> snmpwalk <host or host IP> public This will give you a list of SNMP strings and their last value. SNMP Agent Zabbix must be configured with SNMP support in order to be able to retrieve data provided by SNMP agents.SNMP template which would automatically add set of items. In order to get the average number of page faults for Internet Explorer processes. In order to get the amount of physical memory taken by all Internet Explorer processes.sum] 2.pf.gdiobj and userobj attributes available only on Windows 2000 and later versions of Windows.

6.8/complete 19/11/2010 . i. Step 3 Create an item for monitoring.Zabbix 1.22 interfaces.1. so enter a plain English description in the 'Description' field of the new item box. Description Note that OID can be given in either numeric or string form.3: snmpget command to find the OID for shell> snmpget -On 10.6.ucdavis.g. ‘my_param’. Choose the Multiplier if you want one and enter an 'update interval' and 'keep history' if you want it to be different from the default.3.ifTable.ifTable. port 3=port 103.ifEntry. Set the 'Status' to Monitored.3 Enter the 'SNMP port' as 161 and the 'Key' as something meaningful.3 = Counter 32: 614794138 You should now use the interfaces. string OID must be converted to numeric representation.45. This should give you something like the following: .2.0 http://www.6. Utility snmpget may be used for this purpose: shell> snmpget -On localhost public enterprises.ifTable.2.1.1.1.3.zabbix. .ifEntry. Enter the community (usually public) and enter the numeric OID that you retrieved earlier in to the 'SNMP OID' field being sure to include the leading dot.3 = Counter32: 614794138 again the last number in the OID is the port number.2. So. in some cases.2.45.3. e.3 where the last number in the string is the port number you are looking to monitor. e.1.ifEntry. e. We will work on the assumption that you are going to create the item yourself using the information you have just gathered using snmpwalk and snmpget.memory.ifInOctets.memTotalSwap.1.2.g.2.3.62. From here set the SNMP device to be Monitored and check in Latest data for your SNMP data! Example 1 General example Parameter Community public Oid Key 1.e.8.7.com/documentation/1.8. port 3=3. port 1=port 101.1. but Cisco use regular numbers. the 'Type of information' to Numeric (float) and the 'Store value' to DELTA (important otherwise you will get cumulative values from the SNMP device instead of the latest change).1. However. Make sure the 'Host' field has your switch/router in it and change the 'Type' field to “SNMPv1 agent”. selecting the SNMP host you created earlier.8 Manual [Zabbix] Página 100 de 285 interfaces.7.6.0 (or .1. Now save the item and go back to the hosts area of Zabbix.10.2. SNMP-InOctets-Bps. now go back to Zabbix and click on Items.2.g.0) <Unique string to be used as reference to triggers> For example. 3COM seem to use port numbers in the hundreds.1.ifOctetsIn. Depending on whether you used a template or not when creating your host you will have either a list of SNMP items associated with your host or just a new item box.ifOctetsIn.10.

0 router. etc). Example 2 Monitoring of Uptime Parameter Description Community public Oid Key Value type Units Multiplier MIB::sysUpTime.<port> Checks if FTP server is running and accepting connections 0 – FTP server is down Otherwise. All simple checks.8/complete 19/11/2010 . If missing. Examples of using simple checks: ftp.com/documentation/1. Note that Zabbix agent is not needed for simple checks. except tcp and tcp_perf. standard default service port is used. accept one optional parameter: ■ port . Zabbix server is responsible for processing of simple checks (making external connections.<port> Checks if HTTP server is running and accepting connections http://www. Simple checks Simple checks are normally used for agent-less monitoring or for remote checks of services.Zabbix 1.8 Manual [Zabbix] Página 101 de 285 Monitoring of SNMP parameters is possible if either -with-net-snmp or -with-ucd-snmp flag was specified while configuring Zabbix sources. List of supported simple checks: Key Description Checks if FTP server is running and accepting connections Return value 0 – FTP server down 1 – FTP server running 2 – timeout is is ftp. As a workaround.zabbix.uptime Float uptime 0. Checking of encrypted protocols (like IMAP on port 993 or POP on port 995) is currently not supported.01 19. 0 – HTTP server is down 1 – HTTP server is running 2 – timeout http.8080 IP is taken from the Zabbix host definition. please use tcp and tcp_perf for checks like these.6.<port> ftp_perf.port number. number of seconds spent connecting to FTP server.155 http http_perf.

<port> Checks if IMAP server is running and accepting connections ldap.<port> Checks if HTTP (WEB) server is running and accepting connections 0 – HTTP (WEB) server is down Otherwise. 0 – LDAP server is down 1 – LDAP server is running 2 – timeout icmppingloss [<target>.packet size in bytes timeout .zabbix.<interval>.<interval>.<port> Checks if LDAP server is running and accepting connections http://www.<interval>.host IP or DNS name packets .<packets>.<size>.<packets>. max. number of seconds spent connecting to IMAP server.<size>.<port> imap_perf.one of min.com/documentation/1.host IP or DNS name packets .packet size in bytes timeout .<packets>.8/complete 19/11/2010 .8 Manual [Zabbix] Página 102 de 285 http_perf.number of packets Loss of packets interval time percents between successive packets in milliseconds size .<mode>] imap.<timeout>.timeout in milliseconds mode . avg (default) Checks if IMAP server is running and accepting connections 0 – IMAP server is down 1 – IMAP server is running 2 – timeout 0 – IMAP server is down Otherwise.<timeout>] Checks if server is accessible by ICMP ping target .Zabbix 1.host IP or DNS name packets . icmpping[<target>.timeout in milliseconds Return percentage of lost packets target .packet size in bytes timeout . number of seconds spent connecting to HTTP server.<timeout>] in icmppingsec [<target>.number of packets interval time between successive Number of seconds packets in milliseconds size .timeout in milliseconds Return ICMP ping response time target .<size>.number of 0 – ICMP ping fails packets 1 – ICMP ping interval time successful between successive packets in milliseconds size .

zabbix.Zabbix 1.<port> pop_perf.<port> pop. ntp_perf.8/complete 19/11/2010 . number of seconds spent connecting to LDAP server.<port> Checks if SMTP server is running and accepting connections ssh. number of running and accepting seconds spent connections connecting to SSH server. 0 – NNTP server is down 1 – NNTP server is running 2 – timeout 0 – NNTP server is down Otherwise. number of running and accepting seconds spent connections connecting to POP server.<port> smtp_perf. ssh_perf.8 Manual [Zabbix] Página 103 de 285 ldap_perf.com/documentation/1. Checks if SMTP server is running and accepting connections 0 – SMTP server is down 1 – SMTP server is running 2 – timeout 0 – SMTP server is down Otherwise. number of running and accepting seconds spent connections connecting to NTP server. 0 – POP server is Checks if POP server is down running and accepting 1 – POP server is connections running 2 – timeout 0 – POP server is down Checks if POP server is Otherwise.<port> smtp. nntp. number of seconds spent connecting to NNTP server.<port> 0 – NTP server is Checks if NTP server is down running and accepting 1 – NTP server is connections running 2 – timeout 0 – NTP server is down Checks if NTP server is Otherwise.<port> http://www.<port> 0 – SSH server is Checks if SSH server is down running and accepting 1 – SSH server is connections running 2 – timeout 0 – SSH server is down Checks if SSH server is Otherwise.<port> Checks if LDAP server is running and accepting connections 0 – LDAP server is down Otherwise.<port> Checks if NNTP server is running and accepting connections ntp. number of seconds spent connecting to SMTP server.<port> Checks if NNTP server is running and accepting connections nntp_perf.

Key zabbix[boottime] zabbix[history] Description Comments Startup time of Zabbix server Unix timestamp.the service on the port is down Checks if TCP service Otherwise. only ones with identical parameters are written to a single file.Zabbix 1. ICMP pings Zabbix uses external utility fping for processing of ICMP pings. process in seconds. icmppingsec and icmppingloss) will not be processed. The utility is not part of Zabbix distribution and has to be additionally installed. ICMP pings (icmpping. “fping” default Description fping flag Min -c -p 1 20 24 50 65507 Max 10000 56 or 68 bytes.if in doubt. If the utility is missing. check fping documentation.port 0 . which is then passed to fping. 68 bytes on x86_64 -b 500 milliseconds.port Checks if TCP service is running and accepting connections 0 – TCP service is down 1 – TCP service is running 2 – timeout tcp_perf. In case if Timeout time is exceeded. “fping” default. 19. Internal checks are calculated by Zabbix Server. 2 is returned. 56 bytes on x86. has wrong permissions or its location does not match FpingLocation defined in configuration file. “fping” default -t Warning: fping defaults can differ depending on platform and version .8 Manual [Zabbix] Página 104 de 285 tcp. If items have different parameters. Zabbix writes addresses to be checked to a temporary file. Run these commands as user root in order to setup correct permissions: shell> chown root:zabbix /usr/sbin/fping shell> chmod 710 /usr/sbin/fping shell> chmod ug+s /usr/sbin/fping The default values for ICMP checks parameters: Parameter Value packets interval size timeout 3 25 pings to the target milliseconds.8/complete 19/11/2010 . number of is running and seconds spent accepting connections connecting to the TCP service.7. Number of values stored in Do not use if MySQL InnoDB. Timeout processing Zabbix will not process a simple check longer than Timeout seconds defined in Zabbix server configuration file. Internal checks Internal checks allow monitoring of internals of Zabbix.com/documentation/1. Oracle table HISTORY or PostgreSQL is used! http://www.zabbix.

8 Manual [Zabbix] Página 105 de 285 zabbix[history_log] Do not use if MySQL InnoDB.<from>.8.8.3. Number of items in Zabbix database Number of unsupported items in Zabbix database Stores warning and error Character.Zabbix 1. Do not use if MySQL InnoDB.lastaccess] Trigger function fuzzytime() can be used to check availability of proxies. by <from> to <to> Parameters from and to are inclusive. Oracle or PostgreSQL is used! Do not use if MySQL InnoDB.<to>] Number items in delayed seconds. Proxy zabbix[queue.8.default: 6 seconds <to> .<cache>. http://www.<mode>] Number of values processed by It is the best indicator of Zabbix Zabbix server. <name> . zabbix[history_str] zabbix[history_text] zabbix[history_uint] zabbix[items] zabbix[items_unsupported] zabbix[log] zabbix[proxy.3. Oracle or PostgreSQL is used! This item is supported starting from version 1. <from> .”Germany”. Add item with this key to messages generated by Zabbix have Zabbix internal messages server. zabbix [proxy.8. Oracle table HISTORY_STR or PostgreSQL is used! Do not use if MySQL InnoDB.<param>] Access to information.3.Proxy name List of supported parameters (<param>): lastaccess – timestamp of last heart related beat message received from Proxy For example. Do not use if MySQL InnoDB.8/complete 19/11/2010 . Oracle Number of values stored in or PostgreSQL is used! table HISTORY_LOG This item is supported starting from version 1.com/documentation/1. Number of values stored in Do not use if MySQL InnoDB.8.3. supported starting from version 1.zabbix.3. problems on the database side.m.w are supported for the Queue which are these parameters. Oracle Number of values stored in or PostgreSQL is used! table HISTORY_UINT This item is supported starting from version 1. stored. Free space in the history buffer Low number indicates performance in percentage.<name>. Oracle Number of values stored in or PostgreSQL is used! table HISTORY_TEXT This item is supported starting from version 1.h.default: infinity of server monitored Suffixes s. Cache Mode values all float uint str log text history pfree server zabbix[trends_uint] zabbix[triggers] zabbix[uptime] zabbix [wcache. performance. zabbix[trends] Number of values stored in table TRENDS Number of values stored in table TRENDS_UINT Number of triggers in Zabbix database Uptime of Zabbix process in seconds.d.

<mode>] Cache Mode buffer pfree total used free 19.zabbix.com/documentation/1.8/complete 19/11/2010 ."item func". Syntax of aggregate item's key groupfunc["Host group". Aggregated checks Aggregate checks do not require any agent running on a host being monitored.Zabbix 1."Item key". Zabbix server collects aggregate information by doing direct database queries.8 Manual [Zabbix] Página 106 de 285 total used free trend pfree total used free text pfree total used free zabbix [rcache."parameter"] Supported group functions: GROUP FUNCTION DESCRIPTION grpavg grpmax grpmin grpsum Average value Maximum value Minimum value Sum of values Supported item functions: ITEM FUNCTION avg count last max min sum DESCRIPTION Average value Number of values Last value Maximum value Minimum value Sum of values Examples of keys for aggregate items: Example 1 Total disk space of host group 'MySQL Servers'.8.<cache>. http://www.

1. Only commands in the specified directory are available.com/documentation/1."0"] Example 3 Average (5min) number of queries per second for host group 'MySQL Servers' grpavg["MySQL Servers". Do not overuse external checks! It can decrease performance of Zabbix system a lot. Host name Zabbix will execute: http://www.size[/.this simplified syntax is supported starting from Zabbix 1.168.9. First command line parameter is host name."last".zabbix."system.8. External checks External check is a check executed by Zabbix Server by running a shell script or a binary.qps".1."avg". Standard error and exit code are discarded.1 Zabbix server will find and execute the command in directory defined in configuration parameter ExternalScripts in zabbix_server."vfs. check_oracle.4] with parameters ”-h 192.8 Manual [Zabbix] Página 107 de 285 grpsum["MySQL Servers". External checks do not require any agent running on a host being monitored.Zabbix 1.4”.load[."300"] 19. Command will be executed as the user Zabbix server runs as. other parameters are substituted by parameters.company. This directory is located on Zabbix server. and permissions on the command should allow that user to execute it. For custom command execution using Zabbix agents see user parameter documentation. so any access permissions or environment variables should be handled in a wrapper script.total]".sh[-h 192.fs.sh 'www1.com'. Zabbix uses the standard output of the script as the value. grpavg["MySQL Servers".168.conf. Syntax of item's key: script[parameters] * script – name of the script."mysql.avg1]". If you don't want to pass your parameters to the script you may use: script[] or script <."0"] Example 2 Average processor load of host group 'MySQL Servers'. * parameters – list of command line parameters. if necessary.8/complete 19/11/2010 .cpu. Example 1 Execute script check_oracle."last".

com -h 192.run[<unique description>.this means storing both history and trends values for fast graph generation. The following functions are supported: http://www.8.8.0.12. Multiple commands can be executed one after another by placing them on a new line.8. Key is a unique identifier (per host).8/complete 19/11/2010 .8.2). Zabbix agent is not needed for Telnet checks. SSH checks are used for agent-less monitoring. SSH checks Zabbix must be configured with SSH2 support.com/documentation/1.0.<port>.10. Calculated items Support of calculated items was introduced in Zabbix 1.1.1.2 adds support for additional character: ■ % Key telnet.8.<port>.sh www1. You can create any key name using supported symbols. Item values will be periodically calculated based on a arithmetical expression.1 and 1.4.run[<unique description>.company. Key ssh. The minimal supported libssh2 library version is 1.168. Telnet checks Telnet checks are used for agent-less monitoring. Actual commands to be executed must be placed in the Executed script field in the item configuration.zabbix.<ip>. choose item type Calculated. 19. Calculation definition should be entered in the Formula field (named Expression in 1. Actual commands to be executed must be placed in the Executed script field in the item configuration.<encoding>] Description short Run a command by using SSH remote session Comments 19. Multiple commands can be executed one after another by placing them on a new line.1 Calculated items is a very nice way of creating virtual data sources.<encoding>] Description short Run a command on a remote device using telnet connection Comments 19. To use calculated items. Resulting data will be stored in Zabbix database as for any other item .Zabbix 1.<ip>. supported characters that prompt the prompt can end with: ■ $ ■ # ■ > Zabbix version 1.8 Manual [Zabbix] Página 108 de 285 check_oracle. Till version 1. using allowed symbols.11. Note that Zabbix agent is not needed for SSH checks.

Z0. avg... You could use all functions and operators supported in trigger expressions. Note that syntax is slightly different..zabbix._ Supported characters for a function: a.size[/. Also if you change item key of a referenced item. operators and brackets. Use of function last: 100*last("vfs.Z0.size[/...values]"..<parameter1>..zA.9 . however logic and operator precedence are exactly the same. Example 2 Calculate 10 minute average number of values processed by Zabbix._- Supported characters for a key: a.600) http://www. referenced item(s) not found 2. you have to update all formulas that used the old key manually.fs. Zabbix processes calculated items according to item update interval. syntax errors Example 1 Calculate percentage of free disk space on '/'. A calculated item may become unsupported in several cases: 1.free]")/last("vfs.8/complete 19/11/2010 .8 Manual [Zabbix] Página 109 de 285 A very simple expression might look like: func(<key>|<hostname:key>..zA.9_ Unlike trigger expressions.Z0. division by zero 4. etc Is a reference to an item.total]") Zabbix will take the latest values for free and total disk spaces and calculate percentage according to the given formula..<parameter2>. count.. max.. Use of function avg: avg("Zabbix Server:zabbix[wcache... no data to calculate a function 3.) More complex expression may use a combination of functions. ARGUMENT func host:key DEFINITION One of functions supported by trigger expressions: last.fs. not upon receiving a new value. It may be defined as key or hostname:key parameter(s) Optional parameters Supported characters for a hostname: a.Zabbix 1.zA.9.com/documentation/1. min.

Description Command Command to be executed to evaluate value of the Key. Example 1 Simple command UserParameter=ping.Zabbix 1. 4.command Parameter Key Unique item key. User parameter has the following syntax: UserParameter=key.if.if.zabbix.if.1.in[eth0. Simple user parameters In order to define a new parameter for monitoring.out[eth0.10.if.8 Manual [Zabbix] Página 110 de 285 Note that extensive use of calculated items with long time periods may affect performance of Zabbix Server. Example 2 More complex example UserParameter=mysql.bytes]")) 14 Comments 4.in[eth0.8/complete 19/11/2010 . User parameters are commands executed by Zabbix agent.bytes]") Example 4 Calculate percentage of incoming traffic.ping. one line has to be added to configuration file of Zabbix agent and the agent must be restarted.out[eth0. /bin/sh is used as a command line interpreter under UNIX operating systems.echo 1 The agent will always return '1' for item with key 'ping'.bytes]")+last("net.if.bytes]")/(last("net.in[eth0. User Parameters Functionality of Zabbix agents can be enhanced by defining user parameters (UserParameter) in agent's configuration file.bytes]")+last("net.com/documentation/1.mysqladmin -uroot ping|grep alive|wc –l http://www. Sum of two functions: last("net.10. More complex expression: 100*last("net. Example 3 Calculate total bandwidth on eth0.

8/complete 19/11/2010 . We can pass user name and password: mysql. Unless UnsafeUserParameters agent daemon configuration option is enabled. UserParameter=key[*]. To use positional references unaltered. Example 1 Something very simple UserParameter=ping[*]. Flexible user parameters Flexible user parameters can be used for more control and flexibility. For flexible user parameters. specify double dollar sign . http://www. awk '{print $$2}'. If non-valid value is returned.…. ■ ping[0] – will always return '0' ■ ping[aaa] – will always return 'aaa' Example 2 Let's add more sense! UserParameter=mysql.for example.$10 in the command. Command to be executed to evaluate value of the Key.2.10. '0' . ZBX_NOTSUPPORTED will be sent back by the agent. Zabbix parses content of [] and substitutes $1. it is not allowed to pass flexible parameters containing these symbols: \ ' ” ` * ? [ ] { } ~ $ ! & .grep "$2" $1|wc -l This parameter can be used to calculate number of lines in a file.Zabbix 1.com/documentation/1. ( ) < > | # @ Command used should always return a value that is not empty (and not a newline).otherwise.zabbix.ping[*].our_password] Example 3 How many lines matching a regular expression in a file? UserParameter=wc[*]. if MySQL server is alive.echo $1 We may define unlimited number of items for monitoring all having format ping[something]. 4.8 Manual [Zabbix] Página 111 de 285 The agent will return '1'. The [*] defines that this key accepts parameters.mysqladmin –u$1 –p$2 ping|grep alive|wc –l This parameter can be used for monitoring availability of MySQL database.command Parameter Key Command Description Unique item key.ping[zabbix.

8 Manual [Zabbix] Página 112 de 285 wc[/etc/passwd. for example. This is normal trigger state. This may happen because of several reasons: server is unreachable UNKNOWN trigger expression cannot be evaluated trigger expression has been recently changed 12. http://www.3. If time based functions like nodata() are used in the expression.000001) & (A<B+0. Trigger status (expression) is recalculated every time Zabbix server receives new value.8/complete 19/11/2010 .zabbix. Called TRUE in older Zabbix versions. The operator is defined as: A=B ⇔ (A<B-0. The operator is defined as: A=B ⇔ (A>B-0.2.000001) Logical AND Logical OR DEFINITION 12. it is recalculated every 30 seconds. For example.Zabbix 1. The following operators are supported for triggers (descending priority of execution): PRIORITY OPERATOR 1 2 3 4 5 6 7 8 9 10 / * + < > # = & | Division Multiplication Arithmetical minus Arithmetical plus Less than More than Not equal.com/documentation/1. See manpage in earlier versions for more information. Called FALSE in older Zabbix versions. processor load is too high. Expression for triggers The expressions used in triggers are very flexible.root] wc[/etc/services|zabbix] Note that Zabbix agent daemon does not support user parameters with -t or -p agent switches (used to test single item or print out a list of all supported items) until version 1. You can use them to create complex logical tests regarding monitored statistics. Triggers Trigger is defined as a logical expression and represents system state. Trigger functions The following functions are supported: All functions return numeric values only.000001) | (A>B+0. Comparison to strings is not supported.000001) Is equal. 2 Comments 12. The expression may have the following values: VALUE PROBLEM OK DESCRIPTION Normally means that something happened.8. In this case. if this value is part of this expression.1. Zabbix cannot evaluate trigger expression.

See function avg for an example of its use.2. Returns difference between last and previous values. Returns: 1 – last and previous values differ 0 – otherwise Returns 1 if timestamp (item value) does not differ from Zabbix server time for more than N seconds. int. for the last 600 seconds 24 hours ago. count(600. str.”gt”. text.8/complete 19/11/2010 .”gt”) will return exact number of values which are more than '12' stored in the history for the last 600 seconds. Usually used with system. optional parameter time_shift.2. Parameter defines length of the period in seconds. int. If there is a need to count arbitrary values. For strings: 0 – values are equal 1 – values differ Average value for period of time. For example. For example. abschange ignored avg sec or #num float. Sun – 7. for instance.2.. For example: 20031025 Returns day of week in range of 1 to 7. Same as max()-min(). Returns current date in YYYYMMDD format.12) will return exact number of values equal to '12' stored in the history. str. avg (3600.86400) will return exact number of values which are larger than '12' stored in the history among last 10 values 24 hours ago.Zabbix 1. It is useful when there is a need to compare the current average value with the average value time_shift seconds back.00001 String. log date ignored any any float. Parameter time_shift and string operators are supported from Zabbix 1. count(600. optional parameter time_shift. This function is non case-sensitive analogue of regexp. str.localtime to check that local time is in sync with local time of Zabbix server. str.12. ne are supported Supported operators: eq – equal ne – not equal gt – greater ge – greater or equal lt – less le – less or equal like (textual search only) . int.86400) will return the average value for an hour one day ago. and fourth parameter time_shift. The function accepts second optional parameter pattern. Another example: count(#10. text. The function accepts a second. Parameter #num is supported from Zabbix 1.8 Manual [Zabbix] Página 113 de 285 FUNCTION ARGUMENT SUPPORTED VALUE TYPES float.matches if contains pattern. int. int iregexp 1st – string 2nd – sec or #num str.zabbix. log. Integer items: exact match Float items: match within 0.8. Since Zabbix 1. eq.8. log DEFINITION Returns absolute difference between last and previous values. log count sec or #num float. For strings: 0 – values are equal 1 – values differ Number of historical values for period of time in seconds or number of last #num values matching condition.12. text. Mon – 1. 0 – otherwise.6. text. int change ignored float. log fuzzytime sec float. For instance.86400) should be used. Parameter time_shift is supported from Zabbix 1. text http://www.. third parameter operator.com/documentation/1.8. int dayofweek ignored delta sec or #num diff ignored float.1. count(600. the function supports a second. text and log items: operators like (default).

See function avg for an example of its use. Returns: 1 – found 0 .8. text str 1st – string 2nd – sec or #num str. In this case more than one value will be processed. Parameter time_shift is supported starting from Zabbix 1. int nodata sec any now prev ignored ignored any float. Returns log severity of the last log entry.8. str. In this case more than one value will be processed.Zabbix 1. 0 . Returns: 1 – if no data received during period of time in seconds. This function is case-sensitive. For example. log. 1970). text. text sum sec or #num float. last(0. optional parameter time_shift. Zabbix takes log severity from field Information of Windows event log.otherwise Returns number of seconds since the Epoch (00:00:00 UTC.2. Zabbix does not guarantee exact order of values if more than two values exist within one second in history. Parameter #num is supported starting from Zabbix 1.2. Parameters are the same as for function last. the function supports a second. Parameter defines string to find.4.8. int http://www. text. See function avg for an example of its use. This function is supported since Zabbix 1. Parameter is ignored.2. log regexp 1st – string 2nd – sec or #num str. text strlen sec or #num str. int min sec or #num float. log. optional parameter time_shift. Since Zabbix 1. Same as last(#2) Check if last value matches regular expression. January 1. log Last (most recent) value. Parameter defines length of the period in seconds. Parameter defines regular expression. Sum of values for period of time. Since Zabbix 1. last(0) is always equal to last(#1) last(#3) – third most recent value The function also supports an optional time_shift parameter. int.8/complete 19/11/2010 . Parameter defines length of the period in seconds. strlen(0) is equal to strlen(#1) strlen(#3) – length of the third most recent value strlen(0. For example. Returns previous value.86400) – length of the most recent value one day ago. Returns: 1 – found 0 – otherwise Length of the last (most recent) value in characters (not bytes). For example. Parameter: sec – ignored #num – Nth value For example. the function supports a second. Second optional parameter is number of seconds or number of lines to analyse. The period should not be less than 30 seconds.2.6. log. Check if log source of the last log entry matches parameter. int. useful for Windows event logs). logsource(“VMWare Server”) Maximal value for period of time. POSIX style. Minimal value for period of time. Case sensitive! Second optional parameter is number of seconds or number of lines to analyse.86400) will return the most recent value one day ago.8. Parameter defines length of the period in seconds.com/documentation/1.zabbix. logseverity ignored log logsource string log max sec or #num float. Parameter is ignored.8 Manual [Zabbix] Página 114 de 285 last sec or #num float. str. 0 – default severity N – severity (integer.otherwise Find string in last (most recent) value. 0 – does not match 1 – matches Normally used for Windows event logs.

Zabbix 1.8 Manual [Zabbix]

Página 115 de 285

Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use. time ignored any Returns current time in HHMMSS format. Example: 123055

Some of the functions cannot be used for non-numeric parameters! Most of numeric functions accept number of seconds as an argument. You may also use prefix # to specify that argument has a different meaning:
ARGUMENT sum(600) sum(#5) DEFINITION Sum of all values within 600 seconds Sum of the last 5 values

Function last uses a different meaning for values, prefixed with the hash mark - it makes it choose n-th previous value, so given values (from most recent to least recent) 3, 7, 2, 6, 5, last (#2) would return 7 and last(#5) would return 5. The following constants are supported for triggers:
CONSTANT <number> DEFINITION Positive float number. Examples: 0, 1, 0.15, 123.55

K – 1024*N M – 1024*1024*N <number><K|M|G> G – 1024*1024*1024*N Examples: 2K, 4G, 0.5M

A simple useful expression might look like:
{<server>:<key>.<function>(<parameter>)}<operator><const>

Parameter must be given even for those functions which ignore it. Example: last(0)

Example 1
Processor load is too high on www.zabbix.com [http://www.zabbix.com]
{www.zabbix.com:system.cpu.load[all,avg1].last(0)}>5

‘www.zabbix.com:system.cpu.load [http://www.zabbix.com:system.cpu.load][all,avg1]’ gives a short name of the monitored parameter. It specifies that the server is ‘www.zabbix.com [http://www.zabbix.com]’ and the key being monitored is ‘system.cpu.load[all,avg1]’. By using the function ‘last()’, we are referring to the most recent value. Finally, ‘>5’ means that the trigger is in the PROBLEM state whenever the most recent processor load measurement from www.zabbix.com [http://www.zabbix.com] is greater than 5.

Example 2
www.zabbix.com [http://www.zabbix.com] is overloaded
{www.zabbix.com:system.cpu.load[all,avg1].last(0)}>5|{www.zabbix.com:system.cpu.load[all,avg1].min(600)}>2

The expression is true when either the current processor load is more than 5 or the processor load was more than 2 during last 10 minutes.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 116 de 285

Example 3
/etc/passwd has been changed Use of function diff:
{www.zabbix.com:vfs.file.cksum[/etc/passwd].diff(0)}>0

The expression is true when the previous value of checksum of /etc/passwd differs from the most recent one. Similar expressions could be useful to as /etc/passwd, /etc/inetd.conf, /kernel, etc. monitor changes in important files, such

Example 4
Someone is downloading a large file from the Internet Use of function min:
{www.zabbix.com:net.if.in[eth0,bytes].min(300)}>100K

The expression is true when number of received bytes on eth0 is more than 100 KB within last 5 minutes.

Example 5
Both nodes of clustered SMTP server are down Note use of two different hosts in one expression:
{smtp1.zabbix.com:net.tcp.service[smtp].last(0)}=0&{smtp2.zabbix.com:net.tcp.service[smtp].last(0)}=0

The expression is true when both SMTP servers are down on both smtp1.zabbix.com and smtp2.zabbix.com.

Example 6
Zabbix agent needs to be upgraded Use of function str():
{zabbix.zabbix.com:agent.version.str(beta8)}=1

The expression is true if Zabbix agent has version beta8 (presumably 1.0beta8).

Example 7
Server is unreachable
{zabbix.zabbix.com:status.last(0)}=2

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 117 de 285

The ‘status’ is a special parameter which is calculated if and only if corresponding host has at least one parameter for monitoring. See description of ‘status’ for more details.

Example 8
No heartbeats within last 3 minutes Use of function nodata():
{zabbix.zabbix.com:tick.nodata(180)}=1

'tick' must have type 'Zabbix trapper'. In order to make this trigger work, item 'tick' must be defined. The host should periodically send data for this parameter using zabbix_sender. If no data is received within 180 seconds, the trigger value becomes PROBLEM.

Example 9
CPU activity at night time Use of function time():
{zabbix:system.cpu.load[all,avg1].min(300)}>2&{zabbix:system.cpu.load[all,avg1].time(0)}>000000&{zabbix:sys

The trigger may change its status to true, only at night (00:00-06:00) time.

12.3. Trigger dependencies
Trigger dependencies can be used to define relationship between triggers. Trigger dependencies is a very convenient way of limiting number of messages to be sent in case if an event belongs to several resources. For example, a host Host is behind router Router2 and the Router2 is behind Router1.
Zabbix - Router1 – Router2 - Host

If the Router1 is down, then obviously the Host and the Router2 are also unreachable. One does not want to receive three notifications about the Host, the Router1 and the Router2. This is when Trigger dependencies may be handy. In this case, we define these dependencies:
trigger 'Host is down' depends on trigger 'Router2 is down' trigger 'Router2 is down' depends on trigger 'Router1 is down'

Before changing status of trigger 'Host is down', Zabbix will check if there are corresponding trigger dependencies defined. If so, and one of the triggers is in PROBLEM state, then trigger status will not be changed and thus actions will not be executed and notifications will not be sent. Zabbix performs this check recursively. If Router1 or Router2 is unreachable, the Host trigger won't be updated.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 118 de 285

12.4. Trigger severity
Trigger severity defines how important is a trigger. Zabbix supports following trigger severities:
SEVERITY DEFINITION COLOR Gray. Light green. Light yellow. Dark red.

Not classified Unknown severity. Information Warning Average High Disaster For information purposes. Be warned. Average problem.

Something important has happened. Red. Disaster. Financial losses, etc. Bright red.

The severities are used to: ■ visual representation of triggers. Different colors for different severities. ■ audio alarms in Status of Triggers screen. Different audio for different severities. ■ user medias. Different media (notification channel) for different severities. For example, SMS – high severity, email – other.

12.5. Hysteresis
Sometimes a trigger must have different conditions for different states. For example, we would like to define a trigger which would become PROBLEM when server room temperature is higher than 20C while it should stay in the state until temperature will not become lower than 15C. In order to do this, we define the following trigger:

Example 1
Temperature in server room is too high
({TRIGGER.VALUE}=0&{server:temp.last(0)}>20)| ({TRIGGER.VALUE}=1&{server:temp.last(0)}>15)

Note use of macro {TRIGGER.VALUE}. The macro returns current trigger value. 9 Comments

4.13. Screens and Slide Shows
Zabbix screens allow grouping of various information for quick access and display on one screen. Easy-to-use screen builder makes creation of the screens easy and intuitive. Screen is a table which may contain the following elements in each cell: ■ simple graphs ■ user-defined graphs ■ maps ■ other screens ■ plain text information

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 119 de 285

■ server information (overview) ■ trigger information (overview) ■ data overview ■ clock ■ history of events ■ history of actions ■ URL (data taken from other location) Number of elements in each screen is unlimited. If graph height is set to be less than 120 pixels, any trigger is not shown in the legend. Slide Show is a set of screens, which will be automatically rotated according to configured update intervals.
PARAMETER Name Update interval (in sec) Slides Screen Delay Name of slide show. This parameter defines default interval between screen rotations in seconds. List of individual slides (screens): Screen name How long the screen will be displayed, in seconds. If set to 0, Update Interval of the slide show will be used. Description

Example 1
Slide show “Zabbix administrators” The slide show consists of two screens which will be displayed in the following order:

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

8/complete 19/11/2010 . no permissions are granted on a screen when user is registered to the Zabbix.15. IT Services IT Services are intended for those who want to get a high-level (business) view of monitored infrastructure. SLA of various IT services.zabbix.Zabbix 1. A very simple IT Service structure may look like: IT Service | |-Workstations | | | |-Workstation1 | | | |-Workstation2 | |-Servers Each node of the structure has attribute status. IT Services is hierarchy representation of monitored data. In many cases. Note that a user is automatically disconnected after 30 minutes of inactivity. 4.14. Access permissions on screen within the menu may be set for each user. Users can not use their user id and password to log directly into the UNIX server unless they have also been set up accordingly to UNIX.8 Manual [Zabbix] Página 120 de 285 Zabbix Server ⇒ Pause 60 seconds ⇒ Zabbix Server2 ⇒ Pause 30 seconds ⇒ Zabbix Server ⇒ Pause 60 seconds ⇒ Zabbix Server2 ⇒ … 1 Comment 4.8. http://www. high processor load. [To be finished…] Note that up to and including Zabbix version 1. Communication between the Web Server and the user's browser can be protected using SSL. 4. Zabbix IT Services provides answers to all mentioned questions. What we are interested is availability of service provided by our IT department. etc. By default. Each Zabbix user is assigned a unique login name and a password. like lack of disk space. The status is calculated and propagated to upper levels according to selected algorithm. User permissions All Zabbix users access the Zabbix application through the Web-based front end. Triggers create lowest level of the IT Services. we are not interested in low-level details.com/documentation/1. All user passwords are encrypted and stored on the Zabbix database. and many other information of higher level. Overview Zabbix has a flexible user permission schema which can be efficiently used to manage user permission within one Zabbix installation or in a distributed environment.1 triggers with severities Not classified and Information do not impact SLA calculation.1.15. structure of existing IT infrastructure. We can also be interested in identifying weak places of IT infrastructure.

Zabbix supports several types of users. 4. Statistics shown by the Queue is a good indicator of performance of Zabbix server. The user has access to everything: Monitoring.com/documentation/1.Zabbix 1.16. There is no IPC queue or any other queue mechanism in Zabbix.8/complete 19/11/2010 . User type Zabbix User Zabbix Admin Description The user has access to Monitoring menu.16. The type controls what administrative functions a user has permission to. Permissions cannot be revoked by denying access to specific host Super Admin groups. The user has ReadZabbix Write access to all host groups. http://www. 4.2. User types User types are used to define access to administrative functions and to specify default permissions.2. Permissions to host groups must be explicitly given.8 Manual [Zabbix] Página 121 de 285 Permissions are granted to user groups on a host group level. The user has access to Monitoring and Configuration.zabbix. How to read The Queue on a standalone application or when displayed for a master node shows items waiting for a refresh. Permissions to host groups must be explicitly assigned. 4. The Queue is just a logical representation of data from the database. The user has no access to any resources by default.15. The Queue 4.1.16. The user has no access to any host groups by default. Configuration and Administration. Overview Zabbix Queue displays items that are waiting for a refresh.

we see that we have three items of type Zabbix agent waiting to be refreshed 0-5 seconds. On the screenshot we see that there are 93 items waiting more than 5 minutes for refresh on node “Child”.8/complete 19/11/2010 .Zabbix 1. The master node receives historical data with a certain delay (normally.com/documentation/1. Note that information displayed for a child node is not up-to-date. and one item of type Zabbix agent (active) waiting more than five minutes (perhaps the agent is down?). up-to 10 seconds for internode data transfer). so the information is delayed.8 Manual [Zabbix] Página 122 de 285 In this case. however we should not trust the information as it depends on: http://www.zabbix.

The script must be used in combination with snmptrapd.conf. Add this line: traphandle default /bin/bash /home/zabbix/bin/snmptrap.Zabbix 1.18.1. http://www. There's a full list of such internal items in item configuration section.d. @mycustomregexp. for example.1.zabbix.sh The script is used to receive SNMP traps. ■ Run snmptrapd 4. The scripts are located under directory misc/init. Utilities 4.sh to configure some basic parameters ■ Add special host and trapper (type “string”) item to Zabbix.8 Manual [Zabbix] Página 123 de 285 ■ performance of the Child node ■ communications between Master and Child nodes ■ possible local time difference between Master and Child nodes A special item key zabbix[queue] can be used to monitor health of the queue by Zabbix.17. 4. 4.18.sh to ~zabbix/bin ■ Edit snmptrap. prefixed with @. Start-up scripts The scripts are used to automatically start/stop Zabbix processes during system's startup/shutdown.sh ■ Copy misc/snmptrap/snmptrap. which is part of package net-snmp.com/documentation/1. See snmptrap. Regular expressions Complex regular expressions can be created and tested in the Zabbix frontend by going to Administration → General → Regular expressions.8/complete 19/11/2010 . Using regular expressions After a regular expression has been created. Configuration guide: ■ Install snmptrapd (part of net-snmp or ucd-snmp) ■ Edit snmptrapd.2.sh for the item's key. snmptrap.17.17. 4. it can be used everywhere regular expressions are supported by referring to it's name.

some customisations are currently only possible by editing a definitions file. in seconds.inc. in seconds. 1 .com/documentation/1.7. Values ZBX_UNITS_ROUNDOFF_LOWER_LIMIT number of ZBX_UNITS_ROUNDOFF_UPPER_LIMIT.18.6. Located in the frontend directory. Parameters in this file that could be of interest to users: ■ TRIGGER_FALSE_PERIOD For how long to show triggers in OK state after their state changed from PROBLEM. rounded greater to to http://www. this file is include/defines.Zabbix 1.left. Possible values: 0 . Default: 1800 ■ ZBX_PERIOD_DEFAULT Default graph period. whether created with the advanced editor. in seconds. Two years by default since 1. or entered manually. ■ ZBX_MAX_PERIOD Maximum graph period.8/complete 19/11/2010 .wikipedia.8 Manual [Zabbix] Página 124 de 285 4. in seconds. One hour by default.2. 4. one year before that. ■ ZBX_MIN_PERIOD Minimum graph period.php.right. Frontend definitions While many things in the frontend can be configured using the frontend itself. Regular expression types All regular expressions in Zabbix.01 ■ ZBX_UNITS_ROUNDOFF_UPPER_LIMIT less than it digits after will be comma. Default: 1800 ■ TRIGGER_BLINK_PERIOD For how long a trigger should blink after its state changed. support POSIX extended regular expressions [http://en.zabbix. in seconds. Default: 0.org/wiki/Regular_expression#POSIX_Extended_Regular_Expressions]. One hour by default.20. Default: 0 ■ ZBX_UNITS_ROUNDOFF_THRESHOLD Threshold value for roundoff constants. ■ GRAPH_YAXIS_SIDE_DEFAULT Default location of Y axis in simple graphs and default value for drop down box when adding items to custom graphs.

■ m .1.8. 21.2.2 the following time-related multipliers are available: ■ s . Starting from 2. Examples These multipliers allow to write expressions that are easier to understand and maintain.2 Server K (Kilo) M (Mega) G (Giga) T (Tera) P (Peta) E (Exa) Z (Zetta) Y (Yotta) K (Kilo) M (Mega) Frontend G (Giga) T (Tera) 21.com/documentation/1.8.Zabbix 1.seconds. for example the following expressions: http://www.zabbix.org/zapcat/] item keys syntax Default: false ZAPCAT_COMPATIBILITY is only available for 1. ■ h . Suffixes It is possible to simplify Zabbix trigger expressions or item keys by using suffixes. when value is greater than roundoff threshold Default: 2 ■ ZBX_UNITS_ROUNDOFF_LOWER_LIMIT Number of digits after comma.3.8. works the same as raw value.days ■ w .8/complete 19/11/2010 .minutes. Time-related multipliers Since Zabbix version 1. 21.0 current Zapcat syntax won't be supported. when used. Standard multipliers The following table summarises available standard multipliers in Zabbix frontend and server: Till_1. when value is less than roundoff threshold Default: 6 ■ ZAPCAT_COMPATIBILITY Enables support for Zapcat Zabbix Java JMX bridge [http://www.weeks.8. 21.8 Manual [Zabbix] Página 125 de 285 Number of digits after comma.8 versions. ■ d .kjkoster.2 Additional in 1.4 and latter 1.hours.

uptime[].uptime. When installed.lastaccess]}>120 {host:system. you will see “Connected as Admin” in the lower right corner of the page and access to Configuration and Administration areas will be granted: 5. IP address of a failed login attempt will be displayed after successful login.8 Manual [Zabbix] Página 126 de 285 {host:zabbix[proxy.zabbix_proxy.last()}<86400 could be changed to: {host:zabbix[proxy. http://www. Login This is “Welcome to Zabbix” screen. Quick Start Guide 5.8/complete 19/11/2010 . use user name Admin with password zabbix to connect as Zabbix superuser.lastaccess]}>2m {host:system.1. Zabbix interface will pause for 30 seconds in order to prevent brute force and dictionary attacks.1.zabbix.Zabbix 1.1.zabbix_proxy.com/documentation/1.last()}<1d 5. Protection against brute force attacks In case of five consecutive failed login attempts. When logged in.

make sure to add your user to one of existing groups.com/documentation/1. If an user does not log in. http://www. User “Admin” is Zabbix superuser. the user will be accessing Zabbix with “guest” permissions. Add user After initial installation.zabbix.Zabbix 1. for example Network administrators. Zabbix has only two users defined.2. By default. “guest” has no permissions on Zabbix objects. In order to add new user. In new user form.8 Manual [Zabbix] Página 127 de 285 5. navigate to Administration → Users and switch to Users in the dropdown. then click “Create User”. which has full permissions. User “guest” is a special default user.8/complete 19/11/2010 .

new users have no media (notification method). http://www. click Add in the Media section.Zabbix 1. To create one.8/complete 19/11/2010 .zabbix.com/documentation/1.8 Manual [Zabbix] Página 128 de 285 By default.

The new user appears in the userlist.8/complete 19/11/2010 . enter email address of the user. then click Save in the user properties. click on the group in Groups column. then click Select. so click on Add below the Read only listbox. By default. new user has no permissions. This opens group properties.Zabbix 1. To grant user rights. This user will have read-only access to Linux servers group. but leave all of them enabled for now. mark checkbox next to Linux servers.com/documentation/1. You can also customise severities for which the media will be active. http://www.8 Manual [Zabbix] Página 129 de 285 In this popup.zabbix. Click Add. In the new popup.

8/complete 19/11/2010 .8 Manual [Zabbix] Página 130 de 285 In user group properties. 3. http://www. Click on Email in the list of pre-defined media types.Zabbix 1. all access rights are assigned to user groups. Email configuration can be found under Menu → Administration → Media types. Done! You may try to log in using credentials of the new user. click Save. Email is one of those. Zabbix has several predefined notification delivery methods (media types).com/documentation/1. Email settings Initially.zabbix. In Zabbix.

3.8. 5. Zabbix server.zabbix. ■ If you are using Zabbix appliance version 1. http://www. 0 Comments 5. Monitoring default Zabbix server Open Configuration → Hosts to see the list of currently defined hosts. Press Save when ready. A media type must be linked with users. You must have the agent installed and configured properly. ■ If you are using Zabbix up to version 1.3 or later. Now you have media type “Email” defined.com/documentation/1. SMTP helo and SMTP email values. you will see single enabled host. SMTP email is used as the From address for outgoing e-mails.4. Zabbix server.8/complete 19/11/2010 . you will see single disabled host.8 Manual [Zabbix] Página 131 de 285 Set correct SMTP server.4.Zabbix 1. The situation will be different depending on Zabbix version being used.1. Monitoring an agent-enabled host The section provides details about monitoring a host which has Zabbix agent running. otherwise it will not be used.8.

2.if agent and server daemons are running properly. Click on Create host. Host name ■ Enter a host name here. Linked templates ■ On the right hand side block Linked templates.4. There will be one predefined host. choose Templates in the Group dropdown. http://www.Zabbix 1. Move groups from the right hand side box to the left hand side box and the opposite until you are satisfied with the result.8 Manual [Zabbix] Página 132 de 285 If the host is not monitored. ■ For a quickstart. then mark checkbox next to Template_Linux entry (assuming the newly added host is running Linux) and click on Select. we will use one of the pre-defined templates as well. ■ Host must belong to at least one hostgroup. spaces and underscores are allowed.com/documentation/1. That's it. IP address ■ Enter the IP address of the host. ■ For passive Zabbix agent monitored hosts IP address should be defined. Alpha-numericals. the host will be monitored from now on.zabbix. click on the Add button. Other options will suit us with their defaults. Groups ■ Host must belong to at least one host group. As the minimum. Monitoring a different server Open Configuration → Hosts to see the list of currently defined hosts. host definition for our purposes should have the following defined: ■ Host name. 5. but now we want to add another one. Note that Zabbix agent daemon must have Zabbix server IP address specified in its configuration file Server directive. we don't have to do anything else . click on Not monitored in the Status column and confirm the popup.8/complete 19/11/2010 .

click Save. the effect of using a template should be that this new host now has entities from Template_Linux . no status update has happened so far. Verifying current configuration In this list we can see that several items. The host should be successfully created.Zabbix 1. http://www. According to the details.3. Click on Items next to it. there is some error with communication .4. and try refreshing the page later as well. Check that Zabbix server is running.zabbix. choose one of the groups you added your new host to. That should show a high level configuration overview of this host. Click on Details in the upper left corner of the resulting page .8/complete 19/11/2010 . If that icon is gray. triggers and graphs supposedly have been added to our new host.move your mouse cursor over it to see the error message. 5.let's verify that. If the Z icon in the Availability column is red. In the Group dropdown.that should show you what actually happened. Let's make sure that this host indeed has those items.8 Manual [Zabbix] Página 133 de 285 When done.com/documentation/1.

8 Manual [Zabbix] Página 134 de 285 http://www.8/complete 19/11/2010 .com/documentation/1.Zabbix 1.zabbix.

There was also something about graphs . Note the Template_Linux text in gray prefixing them.triggers also seem to be in place (the above screenshot only shows part of the output. Here we can see that some templated custom graphs are available as well. Go to Menu→Latest data and expand some category in there. which indicates which template do the entities come from.using the host bar above the trigger list navigate to custom graph configuration. though). Great . there's a horizontal strip which allows to easily navigate between different entity categories of a host.Zabbix 1.8 Manual [Zabbix] Página 135 de 285 Looks like items have been added successfully. By default. Now it is time to see what information is available. Zabbix entity lists are limited to 50 entries per page. click on Triggers. http://www. What about triggers? Looking above the item list.com/documentation/1. In there. you can modify this in your user profile.8/complete 19/11/2010 .zabbix.

Zabbix 1.8 Manual [Zabbix]

Página 136 de 285

The values are being gathered and displayed along with change information, if any. In Zabbix, for all numeric items a graph can be obtained without any configuration at all - these graphs are generated on runtime. To view such a graph, click on Graph link next to any item.

You can change the currently displayed time period using the controls above the graph.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 137 de 285

Feel free to explore other areas that display monitoring information, including: ■ Monitoring → Graphs for custom graphs; ■ Monitoring → Triggers for a list of currently active problems; ■ Monitoring → Dashboard for a high level overview; ■ Monitoring → Maps for network maps; ■ Monitoring → Screens for compound pages showing several elements at once. After having the basic monitoring in place, we might want to actually notify on situation changes, which we'll set up in the next section.

5.5. Set up notifications
We have a host or several hosts monitored. We can see simple and custom graphs, as well as data for individual items. We also have problem conditions, called triggers, set up, and they are changing from OK to PROBLEM state and back as situation changes. While we can look at the data to determine the current status, it is not feasible to do so all the time - which means we will want to set up notifications. To do this, open Configuration → Actions.

By default, there are no actions configured. To create one, click Create Action. In the upcoming form, enter a name for the action. In the most simple case, if we don't add any conditions, action will be used upon any trigger change from OK to PROBLEM and vice versa. We still should define what the action should do - and that is done in the Action operations block. Click on New in that block, which opens new operation configuration form. Here, choose Single user in the Send message to dropdown, then click on Select. In the upcoming popup, choose the user we created before.

Notice how the e-mail address we specified for that user will be used here.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 138 de 285

Macros (or variables) {TRIGGER.NAME} and {STATUS}, currently visible in the Default subject and Default message fields, will be replaced with trigger name and trigger status, respectively. Trigger status will be either PROBLEM or OK. Click Add in the Edit operation block.

We are done with the simple action configuration, so click Save in the Action block. Congratulations - we are done with the simple setup of monitoring some host and sending out notifications based on problem condition definitions. If the notifications don't work, make sure user you created has at least read permissions on the host which generated the event, as discussed in the ”Add user” step. Additionally, you can check out action log by going to Administration → Audit, and choosing Actions in the dropdown, located in the upper right corner. 3 Comments

6. XML Import and Export
6.1. Goals
Zabbix Import/Export functionality is created to make possible effective exchange of various configuration entities. Data is exported in XML format which is easy to read and modify. Use cases: ■ Sharing of templates or network maps Zabbix users may share configuration parameters.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 139 de 285

■ Integration with third-party tools Universal XML format makes integration and data import/export possible with third party tools and applications. Exporting and importing network maps is supported since Zabbix version 1.8.2.

6.2. Overview
Currently two main categories of configuration are supported for export - hosts and their associated data, and network maps.

6.2.1. Host import/export
Zabbix host import/export processes the following data: ■ Hosts and their linkage to templates; ■ Templates; ■ Applications; ■ Items; ■ Triggers; ■ Custom graphs; ■ User macros.

6.2.2. Map import/export
Zabbix map import/export supports the following elements since version 1.8.2: ■ Full map configuration; ■ All map elements, including images, triggers, hosts, host groups and maps; ■ All connectors with associated data, including labels and status indicators. Additionally, since 1.8.3 used images (icons and background images) are exported as well.

6.2.3. Screen import/export
Zabbix screen import/export supports all screen elements.

6.3. Host export
For Zabbix versions up to 1.8.3, host and template export is available at Configuration → Export/Import. Starting with 1.8.3, import and export controls are available on corresponding configuration pages (Configuration → Hosts and Configuration → Templates).

6.3.1. Since Zabbix 1.8.3

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 140 de 285

6.3.1.1. Step 1 Navigate either to Configuration → Hosts or Configuration → Templates, depending on which ones you want to export. Mark checkboxes next to elements to be exported. 6.3.1.2. Step 2 Make sure that Export selected is chosen in the activity dropdown below host or template list, then click Go and save the file.

6.3.2. Up to Zabbix 1.8.3
Step 1 Select elements for export

We selected host “Template_Linux” and all its items and triggers. Press button “Preview” to see list of elements to be exported:

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

diff(0)}&gt.8 Manual [Zabbix] Página 141 de 285 Step 2 Export data Press button “Export” to export selected elements to a local XML file with default name zabbix_export.version.0</expression> <priority>3</priority> </trigger> .0.11"> <hosts> <host name="ZABBIX Server"> <useip>1</useip> <ip>127. The file has the following format (one element of each type is shown): <?xml version="1.0"?> <zabbix_export version="1.Zabbix 1.1</ip> <port>10050</port> <status>1</status> <groups> </groups> <items> <item type="0" key="agent. </items> <triggers> <trigger> <description>Version of zabbix_agent(d) was changed on {HOSTNAME}</ <expression>{{HOSTNAME}:agent..com/documentation/1. <graphs> <graph name="CPU Loads" width="900" height="200"> http://www...0..8/complete 19/11/2010 ..xml.0" date="11.07" time="11.05.ping" value_type="3"> <description>Ping to the server (TCP)</description> <delay>30</delay> <history>7</history> <trends>365</trends> <snmp_port>161</snmp_port> <valuemap>Service state</valuemap> <applications> <application>General</application> </applications> </item> .zabbix..

avg5]"> <color>999900</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> </graph_elements> </graph> .avg1]"> <color>009900</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> <graph_element item="{HOSTNAME}:system.3.cpu.cpu..8.load[. Starting with 1.. import and export controls are available on corresponding configuration pages (Configuration → Hosts and Configuration → Templates). </graphs> </host> . host and template import is available at Configuration → Export/Import.cpu.8 Manual [Zabbix] Página 142 de 285 <show_work_period>1</show_work_period> <show_triggers>1</show_triggers> <yaxismin>0. Pay attention to the following parameters of the item: PARAMETER Import file File name of XML file..zabbix..0000</yaxismin> <yaxismax>100.4.3. Host import For Zabbix versions up to 1. Description http://www.avg15]"> <color>990000</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> <graph_element item="{HOSTNAME}:system.8..com/documentation/1..0000</yaxismax> <graph_elements> <graph_element item="{HOSTNAME}:system.8/complete 19/11/2010 .load[.load[. </hosts> </zabbix_export> 1 Comment 6.Zabbix 1. Step 1 Configure settings for data import and press “Import”.

x place triggers before items in the export and such data can not be imported in Zabbix 1.8 Manual [Zabbix] Página 143 de 285 Rules Element defines element of XML file. 2. Select file where Zabbix should store XML data with exported maps.2. 4. Check box under “Add missing” if you need to create a new map if it's missing. Otherwise it will not update it.zabbix. items should be moved in front of the triggers.2. If parameter Add is set for Missing element. You will get to a screen similar to what you see when importing hosts in Configuration→ Export/Import (Import) menu. 6.8. where all configured maps are displayed.8/complete 19/11/2010 .com/documentation/1. 4. 3. Otherwise it will not add it. you will find new button . Select “Export selected” if it's not selected already. Note that Zabbix versions 1. then the import will update it with data taken from the file. 2. Press “Import Map” button.5. Map importing Importing maps is as easy as exporting them. To export maps: 1. If parameter Update is set for Existing element.1. 2 Comments 6.6. then the import will add new element with data taken from the file. http://www.Zabbix 1. Check box under “Update existing” if you need to update (overwrite) existing maps. Map export and import Map export and import is available since Zabbix version 1. On the top right corner near “Create Map” button. Map exporting In left bottom corner a selection box is available with two options: “Export selected” and “Delete selected”.x.8. Press on “Choose file” button to select XML file containing exported Zabbix maps. 5. To import maps: 1. Press button “Go”.5. 6. Map export and import controls can be found under Configuration → Maps menu. Press import to send needed data to Zabbix frontend.“Import Map”. If such a path is desired. 3.5. Mark boxes next to maps you wish to export.

so are the map links and map link status indicators. It can take some time if you have lots of maps to import or lots of hosts. if map refers to a specific trigger on a specific node. For example. That means all map settings are exported. Export format An example empty map export with background image from a distributed setup node: <sysmap> <selements> </selements> <links> </links> <name>TEST</name> <width>800</width> <height>600</height> <backgroundid> <node>aly_trunk</node> <name>Map BG</name> </backgroundid> <label_type>2</label_type> <label_location>0</label_location> <highlight>1</highlight> <expandproblem>1</expandproblem> </sysmap> http://www.3) Click on “Details” link on the left hand side to see more information about what was done by import.3.5.8. import will fail. Wait till page reloads. images or any others elements related to the exported map are not exported. 6. showing image importing options (available since version 1. 6.8 Manual [Zabbix] Página 144 de 285 6.Zabbix 1. import would fail with an error message: Cannot find trigger "our_node5:Zabbix server:Disk is full" used in exported map "Small map". but this trigger has been deleted in the meantime. hostgroups. Thus if at least one of the elements map refers to is missing. all contained elements with their settings are exported.zabbix.4. triggers etc.5.5. Zabbix frontend will inform you about import success or failure.5. 6. triggers. hosts. What is not exported? Any maps. or why it failed to import.8/complete 19/11/2010 . Map import dialogue Map import dialogue for Zabbix super admin.com/documentation/1. What is exported? Only map structure is exported.

■ Map reference DM setup http://www.8 Manual [Zabbix] Página 145 de 285 6. ■ <selementid> is a unique element id. skipped otherwise.l </elementid> <elementtype>2</elementtype> <iconid_off> <node>noden1</node> <name>Hub</name> </iconid_off> <label>New Element</label> <label_location>-1</label_location> <x>231</x> <y>122</y> </selement> ■ <selement> is the opening tag for an element (shorthand of “System map element”). Map elements Let's take XML excerpt of some Zabbix map element as an example: <selement> <selementid>100100000000372</selementid> <elementid> <node>noden1</node> <host>LocalHost</host> <description>DOUBLE</description> <expression>{TimeHost:system. {TimeHost:system.5.5.localtime[local]. ■ <elementtype> describes what type of element info is stored in <elementid> node.last(0)}=0 &amp.com/documentation/1.Zabbix 1. Element types and storage elementtype tag in map export can be one of the following: Value 0 1 2 3 4 Type Host Map Trigger Host group Image ■ Host reference DM (distributed monitoring) setup <node>noden1</node> <host>LocalHost</host> Single server setup <host>LocalHost</host> Hosts are referred to by host name..localtime[local].5.1.zabbix. ■ <node> tag will be present if the exported map comes from a distributed setup.5. 6.2. ■ <elementid> refers to the actual Zabbix entity that is represented on the map (map/hostgroup/host etc.8/complete 19/11/2010 . used for map link references.

size[free]. For default icon. ■ Trigger reference Triggers are described in a more complex way: DM setup <node>noden1</node> <host>LocalHost</host> <description>Lack of free memory on server {HOSTNAME}</description> <expression>{LocalHost:vm. <iconid_on>. <iconid_maintenance> and <iconid_disabled> describes what icons should be used for the map element according to its status. image itself is specified: DM setup <node>noden1</node> <name>Local Image</name> Single server setup http://www. Nodes <iconid_off>. <iconid_unknown>.zabbix.last(0)}&lt.com/documentation/1. Inside icon block.8/complete 19/11/2010 . <iconid_off> is used. trigger description and trigger expression. ■ Image reference For images <elementid> node can be skipped.10000</expression> Trigger is referred to by host name.8 Manual [Zabbix] Página 146 de 285 <node>noden1</node> <name>Local map</name> Single server setup <name>Local map</name> Maps are referred to by map name.memory.10000</expression> Single server setup <host>LocalHost</host> <description>Lack of free memory on server {HOSTNAME}</description> <expression>{LocalHost:vm.Zabbix 1.last(0)}&lt. ■ Host group reference DM setup <node>noden1</node> <name>Local Host Group</name> Single server setup <name>Local Host Group</name> Host groups are referred to by host group name.size[free].memory.

node for that state should be skipped in the <selement> block. ■ <label_location> is used for positioning element's label: Value -1 0 1 2 3 Type use map default bottom left right top 6. Macros can be used in labels. Map links Example: <link> <selementid1>100100000000399</selementid1> <selementid2>100100000000402</selementid2> <drawtype>0</drawtype> <color>00AA00</color> <linktriggers> </linktriggers> </link> ■ <selemetid1> and <selementid2> nodes are used to specify map elements that link connects. Element labels ■ <label> describes map elements labels.last(0)}&lt.5.15 | {Symmetra PX40 Clon </triggerid> <drawtype>0</drawtype> http://www. 6.8/complete 19/11/2010 .3.com/documentation/1.5. Example: <linktrigger> <triggerid> <node>aly_trunk</node> <host>Symmetra PX40 Clone2</host> <description>APC: Input Current (PHASE L3)</description> <expression>{Symmetra PX40 Clone2:upsPhaseInputCurrent.5.zabbix.5.5. Element positioning <x> and <y> nodes are used for positioning element on the map by x and y coordinates.5. ■ <linktriggers> contains information about link status indicators.4. ■ <drawtype> defines default link style: Value 0 2 3 4 Style line bold line dot dashed line ■ <color> specifies what the default link colour is.5.8 Manual [Zabbix] Página 147 de 285 <name>Local Image</name> To use default icon for any state. 6.Zabbix 1.L3.

6.2. Screen export and import Screen export and import is available since Zabbix version 1. where all configured screens are displayed. 6.base64 encoded image When importing. missing images can be added and existing images can be overwritten by marking appropriate checkboxes.6. Image importing is only available to users of Zabbix Super Admin type. Warning: if replacing an existing image..ErkJggg==</encodedImage> </image> </images> Value for the <encodedImage> tag is truncated in the above example. they are stored in the resulting XML file.. Linked trigger referenced the same as map element trigger.individual image element ■ <name> .1. 2 ⇒ background ■ <encodedImage> . ■ <drawtype> and <color> are used to indicate how link should be drawn on the map if this trigger has the highest severity from all the active triggers that are attached to this link. where 1 ⇒ icon. It is possible to import images only by unchecking both map checkboxes. Screen export and import controls can be found under Configuration → Screens menu. 6.root element for images ■ <image> . Used tags: ■ <images> . An example of how an exported image might look like: <images> <image> <name>Server (small)</name> <imagetype>1</imagetype> <encodedImage>iVBORw0KGgoAA. http://www.5.image type. Screen exporting In left bottom corner a selection box is available with two options: “Export selected” and “Delete selected”.8 Manual [Zabbix] Página 148 de 285 <color>0</color> </linktrigger> ■ <triggerid> describes trigger used for indicating link status. If exported map is using any images. 6.5.3.6.com/documentation/1.zabbix. unique ■ <imagetype> .8. it will affect all maps that are using this image.8/complete 19/11/2010 . Images Image import/export is supported since Zabbix version 1.Zabbix 1. It is possible to export and import used images alongside maps.8.image name.

Exported data Only screen structure is exported. Check box under “Add missing” if you need to create new screen if it's missing. you will find new button . Click the button to select XML file containing exported Zabbix screens. It can take some time if you have lots of screens to import or lots their elements.Zabbix 1.zabbix. Click on “Details” link in the left upper corner to see more detailed information about what has been done by import. 3. 6. On the top right corner near “Create Screen” button.8/complete 19/11/2010 . 5. Check box under “Update existing” if you need to update (overwrite) existing screens. http://www.3. or why it failed to import. Select “Export selected” if it's not selected already. Screen import form 6. That includes all screen settings are and all screen elements along with their configuration. Press “Import Screen” button.6. 4.6. File selection along with options to control import is shown.2. 6. 3. Zabbix frontend will inform you about import success or failure. Wait till page reloads. Select file where Zabbix should store XML data with exported screens. Screen importing Importing screens is as easy as exporting them. 2. Press button “Go”.8 Manual [Zabbix] Página 149 de 285 To export screens: 1. Press import to send needed data to the Zabbix frontend. 4. Mark checkboxes next to screens you wish to export. 2.com/documentation/1. To import screens: 1.“Import Screen”.

for example.6. XML format . When importing a screen.Zabbix 1.screen name.columns.. 6. Resource type 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Graph Simple graph Map Plain text Hosts info Triggers info Server info Clock Screen Triggers overview Data overview URL History of actions History of events Status of hostgroup triggers System status Description http://www. ■ screenitem . <screenitem></screenitem> </screenitems> </screen> </screens> ■ name . with: Cannot find trigger "child_node5: ZBXHost:DOUBLE CHECK" used in exported screen "Link Screen" 6. described below. ■ vsize . Not exported data Anything included in the screen itself (like a host..individual screen items.6.5. hostgroup or any other data) is not exported.6. if any of the referenced elements is missing. ■ hsize .8 Manual [Zabbix] Página 150 de 285 6.screen definition Screen export consists of screen definition itself and any additional elements.zabbix.com/documentation/1. <screens> <screen> <name>Screen name</name> <hsize>1</hsize> <vsize>2</vsize> <screenitems> <screenitem></screenitem> . XML format . import will fail.rows.screen elements Available screen elements and their IDs.6.8/complete 19/11/2010 .4.

top.com/documentation/1.6.middle. Normal text . ■ <resourceid> . if applicable.amount of rows to show. XML format . it can have subtags. Italic text .element location on screen table by X axis (cell of the upper left corner). as per the table above.Zabbix 1. ■ <valign> . sets count of columns to merge (to the right).individual screen element details. XML format .available element tags Bold text . 2 .8/complete 19/11/2010 .if higher than 1.identifies resource. if applicable. if applicable. if applicable.load</key_> </resourceid> Individual object references are listed at each element.tag optionally available for some elements (see below for details). they are listed here.8.cpu. ■ <rowspan> .element location on screen table by Y axis (cell of the upper left corner). ■ <width> . If data is exported from a distributed setup installation.mandatory tag for all elements. If there are additional tags available for the specific element. ■ <height> . it becomes: <resourceid> <node>Zabbix node</node> <host>Zabbix server</host> <key_>system.right. 1 . A-Z Each individual element must have mandatory tags from the previous section and may have tags that are available for all elements. node will always be identified by name: <node>Zabbix node</node> For example.if higher than 1.identifies element type. ■ <halign> . Simple graph <resourceid> entry from a non-distributed setup would look like this: <resourceid> <host>Zabbix server</host> <key_>system.load</key_> </resourceid> In a distributed setup. ■ <y> .left. http://www. 2 .allows to apply the element to different hostgroups and/or hosts. ■ <style> .element's height in pixels. ■ <x> . ■ <elements> . sets count of rows to merge (down).6.cpu.bottom.centre.tag available for all elements. depends of resource type.horizontal align: 0 .7.meaning depends on resource type. If <resourceid> refers to an object by name.element's width in pixels.vertical align: 0 . 1 . ■ <colspan> . ■ <resourcetype> . if applicable.zabbix.8 Manual [Zabbix] Página 151 de 285 16 Status of host triggers 6. 6. ■ <dynamic> .

8. Additional tags: ■ <width>.6. Available <resourceid> contents: <name>Linux servers</name> 6. Server time (1).8. ■ <dynamic>. History of actions Resource type 12. Clock Resource type 7. 6.8/complete 19/11/2010 . Additional tags: ■ <elements> .zabbix. History of events Resource type 13.8. Additional tags: ■ <resourceid> .8. 6. Hosts info Resource type 4.Local time (0).8 Manual [Zabbix] Página 152 de 285 6.5.8. ■ <height>. ■ <height>. ■ <width>.6.amount of rows to show.4. Data overview Resource type 10. Additional tags: ■ <resourceid> .2. 6.6. Additional tags: ■ <elements> .6.Host group (by name).3. Additional tags: ■ <resourceid> .com/documentation/1.Host group (by name).amount of rows to show.Graph (by name).8.6. Graph Resource type 0. Available <resourceid> contents: <name>Linux servers</name> http://www.6.1.Zabbix 1. ■ <style> .6. Available <resourceid> contents: <host>Zabbix host</host> <name>Graph name</name> 6.

Simple graph Resource type 1. ■ <style> .Zabbix 1. HTML code will rendered for in item data that contains strings.6.8. Available <resourceid> contents: <name>City map</name> 6.cpu.10. Additional tags: http://www.cpu. Screen Resource type 8.7.8 Manual [Zabbix] Página 153 de 285 6.9. Additional tags: ■ <resourceid> .6.zabbix.load</key_> 6.6.11. Additional tags: ■ <resourceid> . No additional tags available.Screen (by name). Available <resourceid> contents: <host>Zabbix server</host> <key_>system.if set. ■ <elements> .8. Server info Resource type 6.8.com/documentation/1.6.Item (by key).Item (by key).8. ■ <dynamic>.12. Additional tags: ■ <resourceid> .6.6.8.number of rows to show. Available <resourceid> contents: <name>Application servers screen</name> 6. Additional tags: ■ <resourceid> . Plain text Resource type 3. Map Resource type 2. Status of host triggers Resource type 16. 6.8.Zabbix map (by name). ■ <dynamic>.8/complete 19/11/2010 .load</key_> 6.8. Available <resourceid> contents: <host>Zabbix server</host> <key_>system.

one simple graph in the lower left cell and trigger status element. URL Resource type 11.8 Manual [Zabbix] Página 154 de 285 ■ <resourceid> . No additional tags available.8. exported to XML.8/complete 19/11/2010 . 6.13.Host group (by name). Additional tags: ■ <url> .number of rows to show.Host group (by name). in the lower right cell.number of rows to show. 6. Available <resourceid> contents: <host>aleksei_host</host> 6.6.16.6. Available <resourceid> contents: <name>aaa</name> 6. Available <resourceid> contents: <name>aaa</name> 6. Status of hostgroup triggers Resource type 14.Zabbix 1. Triggers overview Resource type 9.15.8. Additional tags: ■ <resourceid> .9..Host (by name). Additional tags: ■ <resourceid> . Triggers info Resource type 5.Host group (by name). ■ <elements> . Notice the encoding of & as &amp.6.8. ■ <elements> .14. Available <resourceid> contents: <name>aaa</name> 6. System status Resource type 15.6.8.8. XML export example The following is a simple screen (2×2). It contains one custom graph in upper left cell (spanning two columns).zabbix.17. http://www.6.6. filtered for a hostgroup. Additional tags: ■ <resourceid> .fully qualified or relative URL.com/documentation/1.

http://www.com/documentation/1.8 Manual [Zabbix] Página 155 de 285 <?xml version="1.zabbix.Zabbix 1. Tutorials This section contains step-by-step instructions for most common tasks. traffic</name> </resourceid> <width>1000</width> <height>100</height> <x>0</x> <y>0</y> <colspan>2</colspan> <rowspan>0</rowspan> <elements>0</elements> <valign>0</valign> <halign>0</halign> <style>0</style> <dynamic>0</dynamic> </screenitem> <screenitem> <resourcetype>1</resourcetype> <resourceid> <host>Zabbix server</host> <key_>zabbix[uptime]</key_> </resourceid> <width>500</width> <height>90</height> <x>0</x> <y>1</y> <colspan>0</colspan> <rowspan>0</rowspan> <elements>0</elements> <valign>0</valign> <halign>0</halign> <style>0</style> <dynamic>0</dynamic> </screenitem> <screenitem> <resourcetype>14</resourcetype> <resourceid> <name>Linux servers</name> </resourceid> <width>500</width> <height>100</height> <x>1</x> <y>1</y> <colspan>0</colspan> <rowspan>0</rowspan> <elements>25</elements> <valign>0</valign> <halign>0</halign> <style>0</style> <dynamic>0</dynamic> </screenitem> </screenitems> </screen> </screens> 7.8/complete 19/11/2010 .0" encoding="UTF-8"?> <screens> <screen> <name>Excellent screen</name> <hsize>2</hsize> <vsize>2</vsize> <screenitems> <screenitem> <resourcetype>0</resourcetype> <resourceid> <host>Zabbix server</host> <name>CPU Load &amp.

Otherwise Zabbix won't accept them. queries.conf: UserParameter=mysql.8/complete 19/11/2010 . Type of the item must be either Zabbix Agent or Zabbix Agent (active).zabbix. It is assumed that a host is configured already in ZABBIX frontend. Agent will reload configuration file. Step 4 Add new item for monitoring. Step 2 Add this command to agent's configuration file. Step 3 Restart Zabbix agent. Step 1 Write a script or command line to retrieve required parameter. for example. Step 1 Configure Zabbix agent.questions. For example.1.com/documentation/1. Add new item with Key=mysql. http://www.mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" mysql. Extending Zabbix Agents This tutorial provides step-by-step instructions how to extend functionality of Zabbix agent.2. It can be any string. 1 Comment 7.questions to the monitored host. Monitoring of log files This tutorial provides step-by-step instructions how to setup monitoring of log files. Test this parameter by using zabbix_get utility. the command returns total number of SQL queries.8 Manual [Zabbix] Página 156 de 285 7. Be aware that type of returned values must be set correctly on Zabbix server. we may write the following command in order to get total number of queries executed by a MySQL server: mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" When executed. Add the command to zabbix_agentd.Zabbix 1.questions is an unique identifier.

http://www. Must be set to ‘log’. For example: host:sudo /etc/init. Remote command may contain macros! Description Note the use of sudo . Step 2 Configure new action by going to Configuration → Actions and choosing operation type Remote command. Pay attention to the following parameters of the action: PARAMETER Action type Remote command Must be set to 'Remote command'. enable remote commands.d/apache restart. For example: log[/var/log/syslog].conf Step 2 Add a new item for monitoring of a log file. Must be set to ‘log[file<.Zabbix 1. Also make sure that parameter DisableActive is not set in zabbix_agentd.3. Remote commands This tutorial provides step-by-step instructions on how to setup remote execution of pre-defined commands in case on an event. Syntax of remote commands: REMOTE COMMAND <host>:<command> Description Command 'command' will be executed on host 'host'. Make sure that the file has read permissions for user ‘zabbix’ otherwise the item status will be set to ‘unsupported’.com/documentation/1. Step 1 On Zabbix agent. Each line must contain an command for remote execution. 7. It is assumed that Zabbix is configured and operational. Pay attention to the following parameters of the item: PARAMETER Type Key Type information of Must be set to ‘ZABBIX Agent (active)’. See below for hints on how to configure sudo. Make sure that parameter Hostname matches host name of the host configured in Zabbix frontend.error]. In zabbix_agentd. <group>#<command> Command 'command' will be executed on all hosts of host group 'group'.zabbix. Zabbix agent will filter entries of log file by the regexp if present. log[/var/log/syslog. Description Update interval The parameter defines how often ZABBIX Agent will check for any changes in the log file.8 Manual [Zabbix] Página 157 de 285 Follow standard instructions in order to install and configure agent on monitored host. Restart agent daemon if changing this parameter.Zabbix user does not have permissions to restart system services by default.conf make sure that parameter EnableRemoteCommands is set to 1 and uncommented. Normally (in sec) must be set to 1 second in order to get new records as soon as possible.regexp>]’.8/complete 19/11/2010 .

d/apache restart On some systems sudoers file will prevent non-local users from executing commands. In order to automatically restart Windows in case of a problem detected by Zabbix. Zabbix does not check if a command has been executed successfully. Server reboot: host:IPMI power off <group>#IPMI <ipmi The syntax is for execution of IPMI command for all hosts of a host group. comment out requiretty option in /etc/sudoers. “power”. Syntax of IPMI remote commands: REMOTE COMMAND Description The syntax is for execution of IPMI command on a single host.8 Manual [Zabbix] Página 158 de 285 Zabbix agent executes commands in background. To change this. zabbix ALL=(ALL) NOPASSWD: /etc/init.exe –r –f Replace 'host' with Zabbix hostname of Windows server. by default).zabbix. Examples: Server control> [value] restart: host:IPMI reset on. It is assumed that ZABBIX server and ZABBIX agent are configured and operational.Zabbix 1.4. define the following actions: PARAMETER Action type Remote command 'Remote command' host:c:\windows\system32\shutdown. “off” or number (1. execute as root: # visudo Example lines that could be used in sudoers file: # allows 'zabbix' user to run all commands without password. Remote commands in Zabbix < 1. To configure access. Supported ipmi controls: <host>:IPMI <ipmi “reset”. Description 1 Comment 7. Example 1 Restart of Windows on certain condition. control> [value] Access permissions Make sure that user 'zabbix' has execute permissions for configured commands. Supported values: “on”. Step 1 Get service name http://www. zabbix ALL=NOPASSWD: ALL # allows 'zabbix' user to restart apache without password. Monitoring of Windows Services This tutorial provides step-by-step instructions how to setup monitoring of Windows services. in Zabbix >= 1.4 they are limited to 255 characters. One may be interested in using sudo to give access to privileged commands.8/complete 19/11/2010 .4 are limited to 44 characters.com/documentation/1.

value mapping Windows service state. value type Integer. http_proxy=http://proxy_ip:proxy_port. In the General tab you should see a field called Service name. Overview Zabbix provides effective and very flexible WEB monitoring functionality.zabbix.3.2. 9. if I wanted to monitor the “workstation” service then my service would be lanmanworkstation. For example. The value that follows that you put in the brackets above. Scenarios are very convenient way of monitoring user experience. set environment variable http_proxy for Zabbix server user.Zabbix 1. Goals Zabbix WEB Monitoring support is developed with the following goals: ■ Performance monitoring of WEB applications ■ Availability monitoring of WEB applications ■ Support of HTTP and HTTPS ■ Support of complex scenarios consisting of many steps (HTTP requests) 9. The following information is collected per each step of WEB scenario: ■ Response time ■ Download speed per second ■ Response code Zabbix also checks if a retrieved HTML page contains a pre-defined string. Normally a scenario is defined for one particular part of functionality of a WEB application. WEB Monitoring 9. Step 2 Add item for monitoring of the service Add item with a key service_state[lanmanworkstation]. To use HTTP proxy. 9.com/documentation/1. WEB Scenario Scenario is set of HTTP requests (steps). The module periodically executes WEB scenarios and keeps collected data in the database.1. The data is automatically used for graphs.8/complete 19/11/2010 . For example.8 Manual [Zabbix] Página 159 de 285 You can get that name by going to the services mmc and bring up the properties of the service you want to monitor it's up/down status. triggers and notifications. Zabbix WEB monitoring supports both HTTP and HTTPS. WEB Scenario is linked to a http://www. which will be periodically executed by Zabbix server.

it will be executed Disabled: disabled scenario. The application must exist.test. WEB Scenario is periodically executed and consists of one or more Steps.com/documentation/1. in seconds.e.Zabbix 1. Logout If a step cannot be performed. 0 is returned. Item key: web. it will NOT be executed List of macros to be used in configuration of the steps. Useful for monitoring of WEB sites which generate different content for different WEB browsers.in[Scenario.02 on Linux Active: active scenario.. Example 1 Monitoring of Zabbix GUI If we want to monitor availability and performance of Zabbix GUI. Name Update interval Agent Status Variables Steps As soon as a scenario is created. check how quickly Overview and Status of Triggers screens work and then logout. i.zabbix.8 Manual [Zabbix] Página 160 de 285 host application for grouping. The name will appear in Monitoring → Web For example: Zabbix GUI How often this scenario will be executed.test. Go to Status of Triggers screen 4. we have to login.8/complete 19/11/2010 . Go to Overview screen 3. All cookies are preserved during execution of a single scenario. 'Scenario' Item key: web. Login 2. average for all steps. For example: Zabbix Server Name of the WEB scenario. The scenario may have the following steps: 1. http://www. Parameter Application Description WEB scenario will be linked to this application. Item Description This item will collect information about download speed (bytes per second) of the Download speed for scenario whole scenario. Actual scenario name will be used instead of “Scenario”. For example: Opera 9. Zabbix automatically adds the following items for monitoring and links them to the selected application. For example: 60 Zabbix will pretend to be the selected browser. If all steps are executed scenario successfully. For example: {user}=guest {password}=guest Steps of the scenario.fail[Scenario] Type: integer Web monitoring items are added with 30 day history retention and 90 day trend retention periods. Syntax: {macro}=value The macro {macro} will be replaced by “variable” in Step's URL and Post variables. execution of scenario fails.bps] Type: float Failed step 'Scenario' of This item keeps number of failed step of the scenario.

If empty. Therefore. if any. For example: id=2345&userid={user} If {user} is defined as a macro of the WEB scenario. The information will be sent as is. For example: Login URL For example: www. For example: 200.zabbix. Actually this parameter defines maximum time for making connection to the URL and maximum time for performing an HTTP request.zabbix.8/complete 19/11/2010 .4. Item Description http://www. For example: Homepage of Zabbix List of HTTP status codes to be considered as success. If retrieved status code is not in the list. WEB Step Step is basically a HTTP request. Zabbix will not spend more than 2 x Timeout seconds on the step.com/documentation/1.com [http://www.8 Manual [Zabbix] Página 161 de 285 These items can be used to create triggers and define notification conditions.test.210 Description Post Timeout Required Status codes As soon as a step is created. any status code is accepted. If empty.test.zabbix. it will be replaced by its value when the step is executed. For example: 15 The string (given as POSIX regular expression) must exist in retrieved content.bps]}. Parameter Name URL Name of the step.Zabbix 1.last(0)<10000 Do not forget to replace the Scenario with real name of your scenario. Example 2 Trigger “WEB application is slow” The trigger expression can be defined as: {host: web. Otherwise this step fails. Zabbix automatically adds the following items for monitoring and links them to the selected application.. 9. Example 1 Trigger “WEB scenario failed” The trigger expression can be defined as: {host: web. Steps are executed in a pre-defined order.in[Scenario. any content will be accepted. Do not spend more than Timeout seconds for execution of the step.com] HTTP POST variables.fail[Scenario]}.last(0)#0 Do not forget to replace the Scenario with real name of your scenario. this step fails. Actual scenario and step names will be used instead of “Scenario” and “Step” respectively.

You may also want to create a host if one does not exist.5. The scenario will execute number of steps. Example 1 Trigger “Zabbix GUI login is too slow” The trigger expression can be defined as: {zabbix: web.in[Scenario.zabbix. We want to know if it is available.Step] Type: float This item will collect response codes of the step. Click on Select next to the Application field and choose the application we just created.bps] 'Step' of scenario 'Scenario' Type: float This item will collect information about response time of the step in seconds. First we login with our user name and password.test. 'Step' of scenario 'Scenario' Item key: web. provides right content and how quickly it works. Download speed for step Item key: web. These items can be used to create triggers and define notification conditions.time[ZABBIX GUI.Step] 'Step' of scenario 'Scenario' Type: integer Web monitoring items are added with 30 day history retention and 90 day trend retention periods.time[Scenario. http://www. Open Configuration → Hosts.rspcode[Scenario. In the application section. Response time is counted from the beginning of the request until all information has been Response time for step transferred.8/complete 19/11/2010 . select a host. Step 2 Add new Web scenario. Navigate to Configuration → Web. We will add a new scenario for monitoring of Zabbix Web interface.test. then click on Applications next to the host you want to use for web monitoring. Step 1 Add new host application.test.Step.Zabbix 1.test. then click Create scenario button.com/documentation/1. Response code for step Item key: web. click Create application. Real life scenario Let's use Zabbix Web Monitoring for monitoring of Zabbix Web interface.last(0)>3 9. This step is not required if you already have a suitable application.Login]}.8 Manual [Zabbix] Página 162 de 285 This item will collect information about download speed (bytes per second) of the step.

zabbix. Web scenario step 1 We start by checking that the first page responds correctly.8/complete 19/11/2010 . Click on Add button in the Steps section to add individual steps. returns with HTTP response code 200 and contains text SIA Zabbix.8 Manual [Zabbix] Página 163 de 285 Note that we also created two macros. Web scenario step 2 http://www.Zabbix 1.com/documentation/1. When done configuring the step. click Add. Step 3 Define steps for the scenario. {user} and {password}.

login step must use full URL to index.for example.Zabbix 1. All the post variables must be on a single line and concatenated with & symbol. Note that Zabbix frontend uses JavaScript redirect when logging in.8 Manual [Zabbix] Página 164 de 285 We continue by logging in the Zabbix frontend. {user} and {password}. and only further steps may check for logged-in features.com/documentation/1. Additionally. login string becomes: name={user}&password={password}&enter=Enter Web scenario step 3 Being logged in. thus first we must log in. we check for a string that is only visible when logged in . Example string for logging into Zabbix frontend: name=Admin&password=zabbix&enter=Enter If using the macros as in this example. http://www. Profile link appears in the upper right corner.zabbix.php file. and we do so by reusing the macros (variables) we defined on the scenario level. we should now verify the fact. To do so.8/complete 19/11/2010 .

otherwise Zabbix database will become polluted with lots and lots of open session records.8 Manual [Zabbix] Página 165 de 285 Web scenario step 4 Now that we have verified that frontend is accessible.Zabbix 1. Final step configuration The final web scenario step configuration should look like this: http://www.8/complete 19/11/2010 .com/documentation/1. we should also log out . we can log in and retrieve logged-in content.zabbix.

com/documentation/1. The list of applications and linked scenarios will appear in Monitoring → Web: Click on the scenario name to see more detailed statistics: http://www.Zabbix 1.8/complete 19/11/2010 .8 Manual [Zabbix] Página 166 de 285 Step 4 Save the finished web monitoring scenario.zabbix.

Zabbix 1.8 Manual [Zabbix]

Página 167 de 285

2 Comments

10. Log File Monitoring
10.1. Overview
Zabbix can be used for centralized monitoring and analysis of log files with/without log rotation support. Notifications can be used to warn users when a log file contains certain strings or string patterns.

10.2. How it works
Monitoring of log files requires Zabbix Agent running on a host. An item used for monitoring of a log file must have type Zabbix Agent (Active), its value type must be Log and key set to log [file,<pattern>,<encoding>,<max lines>] or logrt[path to log file with filename format,<pattern>,<encoding>,<max lines>].

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 168 de 285

For example:
log["/home/user/file.log","pattern_to_match","UTF-8",100] or logrt["/home/user/filelog_.*_[0-9]{1,3}","pattern_to_match","UTF-8",100]

The last one will collect data from files such “filelog_abc_1” or “filelog__001”. Important notes: ■ The server and agent keep a trace of the monitored log's size and last modification time (for logrt) in two counters. ■ The agent starts reading the log file from the point it stopped the previous time. ■ The number of bytes already analyzed (the size counter) and the last modification time (the time counter) are stored in the Zabbix database and are sent to the agent, to make sure it starts reading the log file from this point. ■ Whenever the log file becomes smaller than the log size counter known by the agent, the counter is reset to zero and the agent starts reading the log file from the beginning taking the time counter into account. ■ All files matching the filename format in the provided directory are analyzed every cycle the agent tries to get the next line from the log (for logrt). ■ If there are several matching files with the same last modification time in the directory, then the agent will read lexicographically the smallest one. ■ Zabbix Agent processes new records of a log file once per Refresh period seconds. ■ Zabbix Agent does not send more than maxlines of a log file per second. The limit prevents overloading of network and CPU resources and overrides the default value provided for MaxLinesPerSecond parameter in the configuration file of the agent. ■ Special note for “\” path separators: if file_format is “file\.log”, then there should not be directory “file”, since it is not possible to unambiguously define whether ”.” is escaped or is the first symbol of the file name. 4 Comments

11. Discovery
11.1. Goals
There are several goals of Zabbix network discovery module: ■ Simplify deployment Network discovery can be used to significantly simplify and speed up Zabbix deployment. It also makes possible creation of user friendly appliances. ■ Simplify administration Properly configured network discovery can simplify administration of Zabbix system a lot. ■ Support of changing environments

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 169 de 285

Network discovery makes possible use of Zabbix in rapidly changing environments with no excessive administration.

11.2. Overview
Zabbix provides effective and very flexible network discovery functionality. Zabbix network discovery is based on the following information: ■ IP ranges ■ Availability of external services (FTP, SSH, WEB, POP3, IMAP, TCP, etc) ■ Information received from Zabbix agent ■ Information received from SNMP agent It does NOT provide: ■ Discovery of network topology Every service and host (IP) checked by Zabbix network discovery module generates events which may be used to create rules for the following actions: ■ Generating user notifications ■ Adding and removing hosts ■ Enabling and disabling hosts ■ Adding hosts to a group ■ Removing hosts from a group ■ Linking hosts to a template ■ Unlinking hosts from a template ■ Executing remote scripts The actions can be configured to respect host or service uptime and downtime. If Zabbix server is compiled with IPv6 support and fping6 utility is missing, ICMP checks will fail for IPv4 devices as well. Only since Zabbix 1.8.2 IPv4 addresses are still processed by located fping. 0 Comments

11.3. How it works
Network discovery basically consists of two phases: Discovery and Actions. First, we discover a host or a service, and generate discovery event or several events. Then we process the events and apply certain actions depending of type of discovered device, IP, its status, up/down time, etc.

11.3.1. Discovery
Zabbix periodically scans IP ranges defined in network discovery rules. Frequency of the check is configurable for each rule individually. Each rule defines set of service checks to be performed for IP range.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 170 de 285

Events generated by network discovery module have Event Source “Discovery”. Zabbix generates the following events:
Event Service Up Service Down Host Up Host Down When generated Every time Zabbix detects active service. Every time Zabbix cannot detect service. If at least one of the services is UP for the IP. If all services are not responding.

Service Discovered If the service is back after downtime or discovered for the first time. Service Lost Host Discovered Host Lost If the service is lost after being up. If host is back after downtime or discovered for the first time. If host is lost after being up.

11.3.2. Actions
For a description of all conditions available for network discovery based events see action conditions. For a description of all operations available for network discovery based events see operations.

11.4. Network discovery rule
Network discovery rule is a rule used by Zabbix to discover hosts and services. Parameters of network discovery rule:
Parameter Name Description Name of the rule. For example, “Local network”. Range of IP addresses for discovery. It may have the following formats: Single IP: 192.168.1.33 Range of IP addresses: 192.168.1.1-255 IP mask: 192.168.4.0/24 List: 192.168.1.1-255,192.168.2.1-100,192.168.2.200,192.168.4.0/24 This parameter defines how often Zabbix should execute this rule. Zabbix will use this list of checks for discovery of hosts and services. List of supported checks: SSH, LDAP, SMTP, FTP, HTTP, POP, NNTP, IMAP, TCP, ZABBIX Agent, SNMPv1 Agent, SNMPv2 Agent, SNMPv3 Agent Parameter Ports may be one of following: Single port: 22 Range of ports: 22-45 List: 22-45,55,60-70 Uniqueness criteria may be: IP address (no processing multiple-IP devices) One of discovery check of the rule. Will be based either on a SNMP or Zabbix Agent check. Active – the rule is active and will be execute by Zabbix server Disabled – the rule is not active. It won't be executed.

IP range

Delay (in sec)

Checks

Device uniqueness criteria Status

11.5. Real life scenario
Suppose we would like to setup network discovery for local network having IP range of 192.168.1.1-192.168.1.255. In our scenario we want to:

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

Zabbix 1.8 Manual [Zabbix]

Página 171 de 285

■ discover only hosts having Zabbix Agent running ■ run discovery every 10 minutes ■ add host for monitoring if host uptime is more than 1 hour ■ remove hosts if host downtime is more than 24 hours ■ use Template_Windows for Windows hosts ■ use Template_Linux for Linux hosts ■ add Linux hosts to group “Linux servers” ■ add Windows hosts to group “Windows servers” Step 1 Define network discovery rule for our IP range.

Zabbix will try to discover hosts in IP range of 192.168.1.1-192.168.1.255 by connecting to Zabbix Agents and getting value from system.uname key. A value received from an agent can be used to apply different actions for different operating systems. For example, link Windows boxes to Windows_Template, Linux boxes to Linux_Template. The rule will be executed every 10 minutes (600 seconds). When the rule is added, Zabbix will automatically start discovery and generation of Discovery based events for further processing. Step 2 Define an action for adding newly discovered Linux servers.

http://www.zabbix.com/documentation/1.8/complete

19/11/2010

uname (Zabbix Agent's key we used in rule definition) contains “Linux” ■ Uptime is more than 1 hour (3600 seconds) The action will execute the following operations: ■ adds newly discovered host to group “Linux servers” (also adds host if wasn't added previously) ■ links host to template “Template_Linux”.8/complete 19/11/2010 .8 Manual [Zabbix] Página 172 de 285 The action will be activated if: ■ service “Zabbix Agent” is Up ■ value of system.com/documentation/1. Zabbix will automatically start monitoring of the host using items and triggers from “Template_Linux”.Zabbix 1. Step 3 Define an action for adding newly discovered Windows servers.zabbix. http://www.

zabbix.Zabbix 1. http://www.com/documentation/1.8 Manual [Zabbix] Página 173 de 285 Step 4 Define an action for removing lost servers.8/complete 19/11/2010 . A server will be removed if service “Zabbix Agent” is Down for more than 24 hours (86400 seconds).

1.3. including framing characters.2.2.1.10 1.1.2.6 1.6.1.1. subnetwork.1. Advanced SNMP Monitoring 12.12 ifInDiscards The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a 1.2.6.2.8 1.2.1.1.13 higher-layer protocol..3. including those that were discarded or not sent.3.2.1.2.2.1.3.2.18 transmitted.6.1.2.e.1.1.3.2.2.1.1.6. including those that were discarded or not sent.6. The total number of packets that higher-level protocols requested be 1.2.6.3.3.broadcast or subnetworkmulticast) packets delivered to a higher-layer protocol.6. and which were addressed to a multicast or broadcast address at this sub-layer.1.2.1.1.1.2.3. The number of packets received via the interface which were discarded because of an unknown or unsupported protocol.2. The number of outbound packets which were chosen to be discarded even 1.20 The number of outbound packets that could not be transmitted because of errors.1.zabbix.2.3.1.1.2. One possible reason for discarding such a packet could be to free up buffer space.7 1. and which were not addressed to a multicast or broadcast address at this sub-layer.com/documentation/1.1.11 1.2.14 The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.2. including framing characters. distinguished according to the physical/link protocol(s) immediately `below' the network layer in the protocol stack. The interface's address at the protocol layer immediately `below' the network layer in the protocol stack.1. The total number of octets received on the interface. http://www.This string should include the name of the manufacturer.8/complete 19/11/2010 .2.2.2.2.1. Special OIDs Some of the most used SNMP OIDs are translated automatically to a numeric representation by Zabbix.3.1.2.2. Special OID ifIndex ifDescr Identifier 1.1.6.2.2. The number of subnetwork-unicast packets delivered to a higher-layer protocol.6.2.1.1.3.2.2. ifIndex.2.2.1.2. An estimate of the interface's current bandwidth in bits per second.3.2.8 Manual [Zabbix] Página 174 de 285 12.1.5 1.21 The length of the output packet queue (in packets).1.1.2 Description A unique value for each interface.1.1. ifIndex is translated to 1.1.1.1.Zabbix 1.6.2.2.2. A textual string containing information about the interface.6. One possible reason for discarding such a packet could be to free up buffer space.2. For example.0.1.2.2.3 1.1.6.1. specified in octets.19 though no errors had been detected to prevent their being transmitted.1.3.2.2. 1.2.1.3.2. ifType ifMtu ifSpeed ifPhysAddress ifAdminStatus ifOperStatus ifInOctets ifInUcastPkts ifInNUcastPkts 1.3. The total number of octets transmitted out of the interface.2.2.1.2.1.2.6.1.2.1.1.3.2.1.1. The current administrative state of the interface.1.6.1.2. The current operational state of the interface.2.2.1.1 1.1.1.3.17 transmitted.1. ifInErrors ifInUnknownProtos 1.1.1.1.2.2. 1.6.1.16 ifOutUcastPkts The total number of packets that higher-level protocols requested be 1.3.1. the product name and the version of the hardware interface.6.1.4 1.6.1.2.0 is translated to 1.2.1. The table contains list of the special OIDs.1.6.1.1. The size of the largest datagram which can be sent / received on the interface.3. ifOutNUcastPkts ifOutDiscards ifOutErrors ifOutQLen 1.1.2.6.15 ifOutOctets 1.2.6.2.2.3.1.6. The number of non-unicast (i.3.2.3.2. The type of interface.6.2.

.8/complete 19/11/2010 .5388 HOST-RESOURCES-MIB::hrSWRunPerfMem."ifDescr". A special syntax for item OID can be used in order to deal with dynamic data (random IDs of network interfaces.Zabbix 1. The syntax: <base OID of data>["index".5389 HOST-RESOURCES-MIB::hrSWRunPerfMem.5.5388 HOST-RESOURCES-MIB::hrSWRunPath. Using dynamic indexes leads to more SNMP queries in Zabbix versions up to 1.7. Use of dynamic indexes Dynamic indexes are supported since Zabbix version 1. Description string to search for The string is used for exact match with a value when doing lookup. HOST-RESOURCES-MIB::hrSWRunPath. etc).3. The index will be appended to the Data OID in order to receive value we are interested in: HOST-RESOURCES-MIB::hrSWRunPerfMem. use the following OID: ifInOctets["index". Another example.. Currently one method is supported index – search for index and append it to the base OID The OID will be used to make a lookup for the string.7. 5388.8 Manual [Zabbix] Página 175 de 285 2 Comments 2.5392 = = = = = = = INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: 528 KBytes 528 KBytes 31468 KBytes 31740 KBytes 32116 KBytes 30420 KBytes 32560 Kbytes Dynamic indexes are cached since Zabbix version 1.zabbix.5389 . Method of processing.5376 HOST-RESOURCES-MIB::hrSWRunPerfMem. "/usr/sbin/apache2"] . = = = = STRING: STRING: STRING: STRING: "/sbin/getty" "/sbin/getty" "/usr/sbin/apache2" "/sbin/sshd" Now we have index.5377 HOST-RESOURCES-MIB::hrSWRunPath.6.com/documentation/1."<base OID of index>"."<string to search for>"] For example."HOST-RESOURCES-MIB::hrSWRunPath". getting memory usage of apache process: HOST-RESOURCES-MIB::hrSWRunPerfMem["index". Case sentitive.5391 HOST-RESOURCES-MIB::hrSWRunPerfMem. Monitoring of IPMI devices http://www. to get the ifInOctets value for the GigabitEthernet0/1 interface on a Cisco device.. 13..5390 HOST-RESOURCES-MIB::hrSWRunPerfMem.5377 HOST-RESOURCES-MIB::hrSWRunPerfMem. Dynamic index lookup and data retrieval is performed in single connection since Zabbix version 1.5376 HOST-RESOURCES-MIB::hrSWRunPath."GigabitEthernet0/1"] Parameter base OID of data index base OID of index Base OID to use for data retrieval.

which are executed automatically ■ IPMI scripts.Zabbix 1. Why use Proxy? Zabbix Proxy can be used for many purposes: ■ Offload Zabbix Server when monitoring thousands of devices ■ Monitor remote locations ■ Monitor locations having unreliable communications ■ Simplify maintenance of distributed monitoring http://www.3. Sun hardware. IPMI agent's IP address. See configuration of hosts for more details. can be executed manually from Zabbix GUI See corresponding sections of the Manual for more details. and other commands can be executed either automatically or manually from Zabbix front-end. etc). 14. 13. shutdown.8/complete 19/11/2010 .zabbix. a host must be configured to process IPMI commands. Also.2. IPMI parameters Zabbix IPMI monitoring works only for devices having IPMI support (HP iLO. 13. IPMI actions Two types of actions can be defined: ■ automatic actions.1. halt.com/documentation/1. Use of Proxies Zabbix Proxies may greatly simplify maintenance of Zabbix environment and increase performance of the central Zabbix server. port number. user name and password must be configured properly.1.8 Manual [Zabbix] Página 176 de 285 13. In order to use IPMI monitoring. Goals There are several goals of Zabbix IPMI monitoring: ■ Monitoring of health and availability of IPMI devices ■ Remote IPMI based management functions Remote restart. 14. when all Agents and Proxies report to one Zabbix server and all data is collected centrally. use of Zabbix Proxies is the easiest way of implementing centralized and distributed monitoring.

2. Each proxy also has last time listed when it contacted the server (either to send in new data or because of the heartbeat connection).com/documentation/1. Node When making a choice between use of a Proxy or a Node. Proxy v.zabbix. 14.8/complete 19/11/2010 .3.Zabbix 1. Proxies can be created and deleted here. Managing proxies Zabbix proxy management screen can be accessed by opening Administration → DM and choosing Proxies from the dropdown in the upper right corner. Configuration 14. Opening proxy properties also allows to select which hosts should be monitored by that proxy.1.2. This is configured in host definition screen: http://www.3.8 Manual [Zabbix] Página 177 de 285 14. Monitoring a host by a proxy Every host can be monitored either by Zabbix Server or by Zabbix Proxy. several considerations must be taken into account.s. Lightweight GUI Node No Proxy Yes Works Easy independently maintenance No Yes Ready for One way Automatic Local Centralised DB embedded TCP administration configuration creation hardware connections No Yes Yes No No Yes Yes Yes No Yes Yes Yes No Yes 1 Comment 14.3.

8/complete 19/11/2010 . Goals There are several goals of the distributed monitoring: ■ Get control of whole monitoring from a single or several locations Zabbix administrator may control configuration of all Nodes from a single Zabbix WEB front-end. the Proxy will perform gathering of performance and availability data for the host. 15. ■ Monitor large complex environments This is especially useful when monitoring several geographical locations. 15. The data will be collected by the Proxy and sent to Zabbix Server for further processing.com/documentation/1. ■ Hierarchical monitoring This is for monitoring of complex multi-level environments.Zabbix 1. Distributed Monitoring Zabbix can be configured to support hierarchical distributed monitoring.1.8 Manual [Zabbix] Página 178 de 285 If a host is configured to be monitored by a Proxy.zabbix. ■ Offload the overhead from busy Zabbix server Monitoring thousands of hosts using single Zabbix server? This may be for you! http://www.

3. Configuration of Nodes http://www. Each Node has its own configuration and works as a normal Zabbix Server. Each Node is responsible for monitoring of its own Location.com/documentation/1. 15. i. Child Nodes will optionally send the data to Master Node.zabbix. Each Node reports to its Master Node only. Configuration of the whole distributed setup can be done from a single location via common WEB interface.8 Manual [Zabbix] Página 179 de 285 2.1. No restart of any Node required.e. Configuration of Child Nodes can be done in off line mode. when there are no connectivity between Master and Child Node.8/complete 19/11/2010 . Zabbix supports up-to 1000 (one thousand) Nodes in a distributed setup. Configuration 15. Hierarchical distributed monitoring allows having tree-like structure of Nodes. When communication is back. Node can be configured either locally or by its Master node which has a copy of configuration data of all Child Nodes. Historical information and events are stored locally. Overview Zabbix provides effective and reliable way of monitoring distributed IT infrastructure.3. New Nodes can be attached to and detached from the Zabbix distributed setup without any loss of functionality of the setup.Zabbix 1. All Nodes may work even in case of communication problems.

. done.168..... Default is 10051.. This option is not required to start Zabbix server! Step 4 Configure Node parameters. Follow standard installation instructions to create database. This should be executed only once..Zabbix 1.. Central Node will have NodeID=1. Node Port number...2. Zabbix won't keep history of the node longer than N days. while Child Node's NodeID=2. Conversion completed.8 Manual [Zabbix] Página 180 de 285 Parameters of a Node: Parameter Name Id Type Time zone IP Port Do not keep history older than (in days) Do not keep trends older than (in days) Unique node name.. Zabbix server has to be executed to convert unique IDs for use by first node..... Local – Local node Remote – Remote node Time zone of the Node.. Zabbix automatically converts time stamps to local timezone when transferring time related data across nodes... Port: 10051 Child Node IP: 192.5.zabbix..... Zabbix trapper must be listening on this port number./zabbix_server -n 1 -c /etc/zabbix/zabbix_server..3.. Step 2 Setup NodeID in server configuration file... history and trends. Simple configuration Our simple configuration consists of a Central Node and a Child Node...168... For non local trend data only.. install Zabbix frontend and binaries.......3.com/documentation/1.....conf Converting tables ... Description 15.. Unique Node ID. For non local historical data only....8/complete 19/11/2010 . Port: 15052 For Central Node Step 1 Install Zabbix.. Node IP address.. cd bin .3.conf: NodeID=1 Step 3 Convert database data.. Zabbix trapper must be listening on this IP address.. http://www. In file zabbix_server... Central Node will have total control over configuration of Child Node......... Zabbix won't keep trends of the node longer than N days... Central Node IP: 192.. Child Node will report to central node events.2..

Zabbix 1.zabbix. Step 6 Start Master Node. We should see NodeID in startup messages of server log file: 31754:20070629:150342 server #16 started [Node watcher. Node ID:1] http://www.8/complete 19/11/2010 .8 Manual [Zabbix] Página 181 de 285 Step 5 Add child node.com/documentation/1.

...conf: NodeID=2 Step 3 Convert database data.......... cd bin ... done.... This should be executed only once..../zabbix_server -n 2 -c /etc/zabbix/zabbix_server......conf Converting tables ..... Step 5 Add master node. This option is not required to start Zabbix server! Step 4 Configure Node parameters....... Follow standard installation instructions to create database...com/documentation/1....... Zabbix server has to covert all IDs to unique ones for the second node.. In file zabbix_server..8/complete 19/11/2010 .. install Zabbix frontend and binaries...... http://www.......Zabbix 1...zabbix. Conversion completed..... Step 2 Setup NodeID in server configuration file...8 Manual [Zabbix] Página 182 de 285 For Child Node Step 1 Install Zabbix.

Zabbix 1.com/documentation/1. Node ID:2] Does it work? Selection of active nodes will appear automatically after nodes are defined: http://www.8 Manual [Zabbix] Página 183 de 285 Step 6 Start Child Node. We should see NodeID in startup messages of server log file: 27524:20070629:150622 server #9 started [Node watcher.zabbix.8/complete 19/11/2010 .

3.com/documentation/1. http://www.Zabbix 1. Each Node may be configured either locally (using local WEB interface) or from one of its Master Nodes.8/complete 19/11/2010 .3.zabbix. More complex setup The setup consists of seven Nodes.8 Manual [Zabbix] Página 184 de 285 Add host for monitoring for Child Node node and see events coming to Master Node: 15.

Oracle or PostgreSQL backend.conf.4. hardware) and database engine independently of other nodes.sql.zabbix. Riga (node 4) will collect events from all child nodes. Zabbix front end must be installed and configured.8/complete 19/11/2010 .5. 15. Platform independence A node may use its own platform (OS.8 Manual [Zabbix] Página 185 de 285 In this example.Zabbix 1. It may be practical to use less powerful hardware with ZABBIX Server running SQLite or MySQL MyISAM while nodes of higher levels may use combination of a better hardware with MySQL InnoDB. Also child nodes can be installed without ZABBIX frontend. Step 2 Configure zabbix_server. It may also optionally collect historical information as well.com/documentation/1. Zabbix database must be created and populated with data from data. Configuration of a single Node Every Node in distributed environment must be properly configured to have a unique Node ID. Follow standard installation procedure but do not start Zabbix Server. Additional steps Step 1 Follow standard installation procedure. http://www. 15.

Trends are calculated locally based on received historical data.Zabbix 1.. historical data and events to its Master Node. last value..8 Manual [Zabbix] Página 186 de 285 Add NodeID to Zabbix Server configuration file.com/documentation/1. Step 4 Start Zabbix Node. Step 3 Configure Master and Child Nodes.. http://www. Make sure that all IP addresses and port numbers are correct. Use Zabbix Frontend to configure details of Nodes having direct communication with the Node. Zabbix node will automatically start configuration and data exchange with all nodes in distributed setup.1. Child Node will resend data in case of communication problems. 15. Switching between nodes When connecting to a node in distributed setup. Data flow 15.7.6. 15.7. Every 10 seconds. Zabbix does not send operational data across the nodes. etc) exists only locally. Start Zabbix Server: shell> . You may see the following messages in server log file: . Child to Master Each Child Node periodically sends configuration changes./zabbix_server If everything was configured properly. Data Frequency Configuration changes Every 120 seconds. For example. It displays current node.zabbix. Events History Every 10 seconds. NodeID must be a unique Node ID..8/complete 19/11/2010 . All information available in the GUI belongs to the selected node. item-related information (last check. a list of available child nodes is accessible in right-upper corner of the GUI. 11656:20061129:171614 NODE 2: Sending data of node 2 to node 1 datalen 3522738 11656:20061129:171614 NODE 2: Sending data of node 2 to node 1 datalen 20624 .

8/complete 19/11/2010 .zabbix. Network communications must be also fast enough for timely transfer of new data. Firewall settings Inter-node communications use TCP protocol only. thus protecting integrity of database. Data flow Source port Destination port 10051 10051 Child to Master Any Master to Child Any This is default port used by Zabbix trapper process. Goals There are several goals of the maintenance mode: ■ Protect Zabbix database from any changes initiated by users ■ Perform database maintenance ■ Inform users about reason of the maintenance work ■ Users from a range of IP addresses will be able to work with the GUI during the maintenance mode normally ■ Automatic return to normal mode when maintenance is over http://www.com/documentation/1.7. 15. This can be useful for protection of Zabbix database from any changes initiated by users. 15.8.2.7. 16. Zabbix does not send configuration of a Master Node to Childs. Performance considerations Any node requires more processing resources in a distributed setup. 16.Zabbix 1. Master Node must be powerful enough to process and store not only local data but also data received from its all Child Nodes. Master to Child Each Master Node (a node with at least one child) periodically sends configuration changes to Child Nodes either directly or via other Child Nodes directly connected to the Master Node. Data Frequency Configuration changes Every 120 seconds.3. 15.1. Maintenance mode for Zabbix GUI Zabbix GUI can be temporarily disabled in order to prohibit access to the front-end. Zabbix database can be stopped while Zabbix GUI is in the maintenance mode.8 Manual [Zabbix] Página 187 de 285 Sending of Events and History can be controlled by configuration parameters NodeNoEvents and NodeNoHistory.

who allowed to connect to FrontEnd $ZBX_GUI_ACCESS_IP_RANGE = array('127.1'). disabled otherwise Connections from these IP addresses will be allowed with no maintenance mode. The screen is refreshed every 30 seconds in order to return to normal state withiout user intervention when maintenance is over.168.1.2.0. // MSG showed on Warning screen! $_REQUEST['warning_msg'] = 'Zabbix is under maintenance.zabbix. ZBX_GUI_ACCESS_IP_RANGE For example: 192. How it looks like The following screen will be displayed while in maintenance mode. http://www.Zabbix 1.8 Manual [Zabbix] Página 188 de 285 16.8/complete 19/11/2010 . file conf/maintenance.com/documentation/1. 3.conf.php must be modified to uncomment the following lines: // Maintenance mode define('ZBX_DENY_GUI_ACCESS'. // IP range.1-255 warning_msg Informative message. Parameter ZBX_DENY_GUI_ACCESS Details Enable maintenance mode: 1 – maintenance mode is enabled.1).0. Configuration In order to enable maintenance mode.'.

items. WEB Interface There are several useful features of ZABBIX WEB interface: ■ almost all screens support full-screen mode ■ Ctrl + Mouse click make possible selection of multiple list elements (hosts. etc) ■ sound alarm can be switched on and off in Status of Triggers view ■ a new theme can be created to match your preferences or a company color schema http://www.8/complete 19/11/2010 .com/documentation/1.zabbix.Zabbix 1. triggers.8 Manual [Zabbix] Página 189 de 285 17.

$cmbTheme->AddItem('css_bb. Creating your own theme By default.8/complete 19/11/2010 . search for css_bb.8 Manual [Zabbix] Página 190 de 285 17.css and create new css_new. Step 2 Place the new CSS file into correct location.css. Modified code: $cmbTheme = new CComboBox('theme'. You should not omit apostrophes.inc.css. into directory styles/.css'.S_SYSTEM_DEFAULT). $cmbTheme->AddItem('css_bb.'MY_COOL_THEME'). Step 1 Create your own CSS file.php.'MY_COOL_THEME'). Step 5 Activate new theme. http://www.S_BLACK_AND_BLUE).S_BLACK_AND_BLUE). The file you created. The file can be based on existing CSS files coming with Zabbix. If you want your theme name to be translatable. For example. $cmbTheme->AddItem('css_ob.1.zabbix.S_SYSTEM_DEFAULT). Original code: $cmbTheme = new CComboBox('theme'. $cmbTheme->AddItem('css_new.css'.css'. but the new example uses string (enclosed in apostrophes).in that case make sure to prefix it with S_. css_new.php file: $combo_theme->addItem('css_new. you may take Black&Blue CSS file from styles/css_bb. Feel free to share result of your work with Zabbix community if you created something nice. as that will result in warnings.css'.$theme). Note that original themes use constants.css.S_ORIGINAL_BLUE). There are two pieces of code that have to be amended. You may follow this step-by-step procedure in order to create your own. you must add the constant used for name in locale files . Zabbix provides number of predefined themes.Zabbix 1. $cmbTheme->AddItem(ZBX_DEFAULT_CSS. $cmbTheme->AddItem(ZBX_DEFAULT_CSS.css'.S_ORIGINAL_BLUE). $cmbTheme->AddItem('css_ob.com/documentation/1. Step 4 You should also add your new theme to the config. Step 3 Edit include/forms. Open this file for editing.$theme).css'.

Configuration 2.8/complete 19/11/2010 .zabbix.com/documentation/1.Zabbix 1. List of WEB scenarios It provides list of active WEB scenarios. you may either set this theme to be a default one or change your theme in user profile. 2.8 Manual [Zabbix] Página 191 de 285 In Zabbix GUI. Displayed data: http://www.1. Enjoy new look and feel! 2 Comments 2. WEB The screen can be used to manage monitoring of WEB scenarios.1.1.

Configuration parameters: Parameter Application Name Host application the scenario is linked to. Update interval Status Frequency of execution of the WEB scenario.2. Description Number of steps Number of individual steps (HTTP requests) the scenario consists of.8 Manual [Zabbix] Página 192 de 285 Parameter Name Unique name of a WEB scenario. Description http://www. Unique name of the WEB scenario.1.com/documentation/1. WEB scenarios configuration The screen is used to define parameters of an individual WEB scenario. 2.Zabbix 1. Status of the scenario: Active – the scenario is active Disabled – the scenario is disabled.8/complete 19/11/2010 . Note that disabled scenarios are not displayed by default.zabbix.

zabbix. Zabbix will automatically replace them with actual values.8 Manual [Zabbix] Página 193 de 285 Update interval (in sec) Agent Frequency of execution of the WEB scenario.8/complete 19/11/2010 . Status of the scenario: Active – the scenario is active Disabled – the scenario is disabled.1. http://www. Zabbix will pretend that it is Firefox. Note that disabled scenarios are not displayed by default. MS Explorer or any other application. Useful when WEB site returns different content for different browsers. List of variables (macros) that can be used in scenario steps (URL and Post variables).3. Client agent string.Zabbix 1.com/documentation/1. WEB step configuration The screen is used to define parameters of each individual step of the WEB scenario. List of steps executed by the scenario: Name – step name Timeout – timeout URL – location to connect to Required – required string Status – step status Status Variables Steps 2. It has the following format: {macro1}=value1 {macro2}=value2 For example: username=Alexei password=kj3h5kJ34bd The macros can be referenced as {username} and {password}.

Retrieved content (HTML) must contain this string. Description List of expected HTTP codes.com [http://www.2. URL to connect and retrieve data.com [https://www.201. Hosts The screen is used to manage host related information. no check is performed.zabbix. For example: http://www. no check is performed. the step will fail.google. Hosts 2. If empty. otherwise the step will fail. http://www.210-299 2.8 Manual [Zabbix] Página 194 de 285 Configuration parameters: Parameter Name URL Post Timeout Required Unique step name.com/documentation/1. If Zabbix gets a code which is not in the list.com] https://www.zabbix. Status codes If empty. GET variables can be passed in the URL parameter.zabbix.1. List of Hosts The screen provides a list of monitored hosts.google. For example: 200.Zabbix 1.2.8/complete 19/11/2010 . Required string.com] List of POST variables. Zabbix will not spend more than Timeout second on processing the URL.

Host DNS name if used. It is ignored by Zabbix if no agent used.Zabbix 1.8/complete 19/11/2010 . Host mass-update screen http://www. Host Status: Monitored – Host is active and being monitored Disabled – Host disabled Description Agent (Zabbix.com/documentation/1. SNMP) availability: Availability Available – agent is up and running Unknown – agent is not available Error Any errors related to use of agent based checks.zabbix. List of templates linked to the host. Zabbix Agent port number.8 Manual [Zabbix] Página 195 de 285 Displayed data: Parameter Name DNS IP Port Templates Status Unique host name. Host IP address if used.

Host configuration The screen give access to host details. It is a very effective way of changing attributes for a number of hosts.com/documentation/1.zabbix. http://www.8 Manual [Zabbix] Página 196 de 285 The screen is accessible by selecting hosts and clicking on button “Mass update”.Zabbix 1.8/complete 19/11/2010 .

New group can be created and linked to the host. Optional host DNS name.8 Manual [Zabbix] Página 197 de 285 Configuration parameters: Parameter Name Groups New group DNS name IP address Connect to Port Monitored by proxy Unique host name. if empty.com/documentation/1. thus not monitored Description Status http://www. Ignored. The host can be monitored either by Zabbix Server or one of Proxies: (no proxy) – host is monitored by Zabbix Server Proxy name – host is monitored by Proxy “Proxy name” Host status: Monitored – Host is active.8/complete 19/11/2010 . ready to be monitored Not monitored – Host is not active. Default value is 10050. Optional host IP address. List of host groups the host belongs to.zabbix.Zabbix 1. Zabbix server will use this setting to retrieve data from agents: DNS name – Connect to host DNS name IP address – Connect to host IP (recommended) Zabbix agent TCP port number.

http://www. User. IP address of IPMI management device. User name for authentication. Port number of the IPMI device. Templates The screen is used to manage host templates. Information about items. 2.com/documentation/1. Password for authentication. Enable or disable use of extended Host profile. but preserve information about items. triggers and graphs will be inherited from the templates. Keep default setting here. Enable or disable use of Host profile.2. triggers and graphs Unlink and clear – unlink from template and remove all information inherited from the template Enable IMPI management functionality for this host.2. Unlink – unlink from template.8 Manual [Zabbix] Página 198 de 285 Link with template Use IPMI IPMI IP address IPMI port IPMI privilege level IPMI username IPMI password Use profile Use extended profile Link host with one or more templates. List of Templates The screen provides list of templates.zabbix.Zabbix 1.8/complete 19/11/2010 .

zabbix. Template configuration The screen give access to template details.com/documentation/1. Templates List of hosts linked to this template.8 Manual [Zabbix] Página 199 de 285 Displayed data: Parameter Name Description Template name.Zabbix 1.8/complete 19/11/2010 . http://www.

zabbix. List of Proxies The screen provides list of proxies. Information about items. if empty. Ignored. http://www. New group can be created and linked to the template.8 Manual [Zabbix] Página 200 de 285 Configuration parameters: Parameter Name Groups New group Link with template Unique template name. Proxies The screen is used to manage proxies.2.Zabbix 1. Link template with one or more templates.8/complete 19/11/2010 . Description 2.com/documentation/1. triggers and graphs will be inherited from the templates.3. List of host groups the template belongs to.

Zabbix 1. http://www.8 Manual [Zabbix] Página 201 de 285 Displayed data: Parameter Name Unique Proxy name. Members List of hosts monitored by this Proxy. Description Last seen (age) Last time we received a heart beat message or data from the Proxy.com/documentation/1.zabbix.8/complete 19/11/2010 . Proxy configuration The screen gives access to proxy details.

http://www.8/complete 19/11/2010 . 2. List of Host Groups.zabbix.8 Manual [Zabbix] Página 202 de 285 Configuration parameters: Parameter Description Proxy name Unique Proxy name.com/documentation/1. Host groups The screen is used to manage host groups.4.Zabbix 1. Hosts List of hosts monitored by this Proxy. The screen provides list of host groups.2.

Zabbix 1. Host group configuration The screen provides access to host group details. Number of group members (hosts).com/documentation/1.8 Manual [Zabbix] Página 203 de 285 Displayed data: Parameter Name # Members Description Host Group name. List of host group members. http://www.zabbix.8/complete 19/11/2010 .

Hosts List of hosts.Zabbix 1.com/documentation/1.8/complete 19/11/2010 . List of Templates The screen provides list of template and linked hosts. members of the group.2.5. Template linkage The screen is used to manage host template linkage.zabbix. http://www. 2.8 Manual [Zabbix] Página 204 de 285 Configuration parameters: Parameter Description Group name Unique host group name.

8 Manual [Zabbix] Página 205 de 285 Displayed data: Parameter Description Templates Host template name. Template linkage The screen give access to management of host template linkage. Hosts List of hosts linked to the template.zabbix.8/complete 19/11/2010 . http://www.Zabbix 1.com/documentation/1.

Applications The screen is used to manage applications. List of hosts linked to the template.Zabbix 1.6.com/documentation/1. 2. List of Applications The screen provides list of applications.zabbix.8 Manual [Zabbix] Página 206 de 285 Configuration parameters: Parameter Template Hosts Description Template name.2.8/complete 19/11/2010 . http://www.

Description Configuration of application The screen give access to management of applications. also displays number of items (members of the application).8 Manual [Zabbix] Página 207 de 285 Displayed data: Parameter Application Application name. Show Link to host items.Zabbix 1.com/documentation/1.zabbix.8/complete 19/11/2010 . http://www.

3.8/complete 19/11/2010 .zabbix.8 Manual [Zabbix] Página 208 de 285 Configuration parameters: Parameter Name Hosts Description Application name. Items 2. List of Items The screen provides list of items linked to a host. http://www.Zabbix 1.1. 2. Items The screen is used to manage item related information. Host name the application is linked to.com/documentation/1. Must be unique within one host.3.

Unique item key. Any errors related to this item. It is very effective way of changing attributes of a number of items.zabbix. Item type.8/complete 19/11/2010 . http://www.8 Manual [Zabbix] Página 209 de 285 Displayed data: Parameter Description Key Description Item description (name). Item status.com/documentation/1. Update interval Frequency of the check. Number of days Zabbix keeps trends data.Zabbix 1. Item mass-update screen The screen is accessible by selecting items and clicking on button “Mass update”. History Trends Type Status Applications Error Number of days Zabbix keeps detailed historical data. List of applications the item belongs to.

http://www.Zabbix 1.com/documentation/1.8 Manual [Zabbix] Página 210 de 285 Click on a parameter you would like to change.8/complete 19/11/2010 . Copy selected to… The screen makes possible copy of a selected item to a number of hosts. enter new value and press “Save”.zabbix.

zabbix. http://www. Item configuration The screen provides access to configuration of a single item.com/documentation/1.8 Manual [Zabbix] Página 211 de 285 Select hosts you would like to copy items and press “Copy”.8/complete 19/11/2010 .Zabbix 1.

fs. the description will be automatically changed to “Free disk space on /” Item type. if any.first. Must be set for keys log[]. second.zabbix.$2.com/documentation/1. See sections below for detailed description of each type. Item key. The key must be unique within a single host. if key type is Zabbix Agent.…$9 . Numeric (unsigned) – 64bit unsigned integer Numeric (float) – floating point number Character – character (string) data limited to 255 bytes Log – log file.free]”. or Zabbix aggregate.8/complete 19/11/2010 .size[/. Simple check.… ninth parameter of item key For example: Free disk space on $1 If item key is “vfs.Zabbix 1. Zabbix Agent (active). Type of data as stored in the database after performing conversions. It may contain this macros: $1. The key value must be supported by an agent or Zabbix server. Text – text of unlimited size Description Type Key Type of information http://www.8 Manual [Zabbix] Página 212 de 285 Item attributes: Parameter Description Item description.

1-5.8 Manual [Zabbix] Página 213 de 285 Data type The data type is used for integer items in order to specify expected data type. Older data will be removed by Housekeeper. minutes or seconds are shown). M. Status Store value Show value Log format Available for items of type Log only. Active . ….6-7.09:00-18:00 – refresh set to 10 seconds for working hours. if units are set to B. Zabbix will display: 1 as 1B 1024 as 1KB 1536 as 1.10:00-12:00 1 . parameter is treated as number of seconds since 01/01/1970. Value mapping does not change received values. If multiple flexible intervals overlap. default multiplier is 1024. bps . default multiplier is 1000. Units Use multiplier Custom multiplier Update interval Refresh this item every N seconds.2.hh:mm-hh:mm. where multiplier is 1024. Otherwise Zabbix cannot correctly set prefixes (K.8. Flexible intervals Keep history (in days) Keep trends (in Keep aggregated (hourly min.7 . For example: 10 sec. like 1m3w5d or 2h4m46s.Sunday Keep detailed history for N days in the database. count) detailed history for N days in the database.hh:mm-hh-mm For example. This is supported starting from version 1. It works with integer items only. MBps. etc into B. Since Zabbix 1. Till Zabbix 1. If set. If there are no weeks to display.mm.09:00-18:00. Only 3 upper major units are shown. Zabbix will add prefix if required and the unit postfix to all received values. Decimal – data in decimal format Octal – data in octal format Hexadecimal – data in hexadecimal format Zabbix will automatically perform conversion to numeric.8/complete 19/11/2010 . hh:mm:dd”.dd hh:mm:ss” uptime – translated to “hh:mm:ss” or “N days. 1-5.Monday. Supported placeholders: time * y: Year (0001-9999) * M: Month (01-12) * d: Day (01-31) http://www. Disabled – item is disabled.5KB unixtime – translated to “yyyy. This item will not be processed. Bps.“1m5d” (no hours. it is for displaying data only. “Windows service states”.com/documentation/1.active (normal) status. Zabbix will process this item. and special processing is used for units B.2. (in sec) List of exceptions for Update Interval. Otherwise default update interval will be used. Older days) data will be removed by Housekeeper.8. For example. max. Period format: dd-dd. the smallest Delay value is used for the overlapping period. Delta (simple change) – evaluate as (value-prev_value). Do not use . s – translated to “yyymmmdddhhhmmmsss”. This item will not be processed. G etc). and some units have special processing: b.zabbix. For example.do not pre-process received values Custom multiplier – multiply received values by value defined in Custom multiplier Use this option to convert values received in KB. however Zabbix may try to periodically set status of such items to Active if configured. Not supported – item is not supported by Zabbix or SNMP agent. only two levels are displayed .1000 is 1K.dd-dd. Pre-process received values. avg. special processing for bits. Multiply all received value by this integer or floating-point value.Zabbix 1.8. parameter is treated as number of seconds. where value – current value value_prev – previously received value Apply value mapping to this item. As is – no pre-processing Delta (speed per second) – evaluate value as (value-prev_value)/(time-prev_time). where value – current value value_prev – previously received value time – current timestamp prev_time – timestamp of previous value This setting is extremely useful to get speed per second based on constantly growing value.

Triggers The screen is used to manage triggers. Note that “p” and ”:” chars are just placeholders and can be anything other than “yMdhms”.045 Zabbix Agent started. Triggers 2. Zabbix 1. Since version 1.4. For example. and the rest of the line. ■ G (Giga). List of Triggers The screen provides list of triggers linked to a host. Unit blacklist By default.zabbix. specifying a unit for an item will result in multiplier prefix being added .2. ■ Y (Yotta).4.1 Zabbix supports the following unit prefixes: ■ K (Kilo). Applications Link item to one or more applications. hardcoded list of units this is prevented: ■ ms ■ RPM ■ rpm ■ % Note that both lowercase and uppercase rpm (rpm and RPM) strings are blacklisted.Zabbix 1. Log time format for this line would be “pppppp:yyyyMMdd:hhmmss”. ■ Z (Zetta). For a pre-defined. value 2048 with unit B would be displayed as 2KB. ■ E (Exa). ■ T (Tera). ■ M (Mega). consider the following line from Zabbix agent log file: ” 23480:20100328:154718.2 (revision 11211).8/complete 19/11/2010 .com/documentation/1. additionally supported prefixes include: ■ P (Peta). Until version 1.8. time. then follow date.1. http://www. 2.8 Manual [Zabbix] Página 214 de 285 * h: Hour (00-23) * m: Minute (00-59) * s: Second (00-59) Leaving this field blank means don't try to parse the timestamp.8.8.for example. See more details about items in other sections of the Manual.” It begins with six character positions for PID.

http://www.8/complete 19/11/2010 . Description Expression Trigger expression.com/documentation/1. It is very effective way of changing attributes of a number of triggers. Note that Disabled triggers are hidden by default.8 Manual [Zabbix] Página 215 de 285 Displayed data: Parameter Severity Status Name Coloured trigger severity. Trigger name.Zabbix 1.zabbix. Trigger mass-update screen The screen is accessible by selecting triggers and clicking on button “Mass update”. Trigger status.

Zabbix 1.zabbix. http://www. Copy selected to… The screen makes possible copy of a selected trigger to a number of hosts.com/documentation/1.8 Manual [Zabbix] Página 216 de 285 Click on a parameter you would like to change.8/complete 19/11/2010 . enter new value and press “Save”.

Trigger configuration The screen provides access to configuration of a single trigger.zabbix.Zabbix 1.8/complete 19/11/2010 .com/documentation/1.8 Manual [Zabbix] Página 217 de 285 Select hosts you would like to copy items and press “Copy”. http://www.

Text field used to provide more information about this trigger. Add new dependency.zabbix. May contain instructions for fixing specific problem.com/documentation/1.8 Manual [Zabbix] Página 218 de 285 Trigger attributes: Parameter Name Expression The trigger depends on New dependency Event generation Severity Comments URL Disabled Description Trigger name.2 and before) – events are also generated on every PROBLEM evaluation of the trigger Trigger severity.8. Trigger can be disabled if required. List of triggers the trigger depends on. http://www. on trigger status change Normal + Multiple PROBLEM events (Multiple TRUE events in 1. the URL is used in the screen 'Status of Triggers'.Zabbix 1. contact detail of responsible staff. If not empty. Logical expression used for calculation of trigger state. Normal – events are generated normally. The name may contain macros.8/complete 19/11/2010 . etc. See also more information about triggers.

http://www.Zabbix 1. List of Actions The screen provides list of actions.zabbix. Actions 2. Status Status of the action.8/complete 19/11/2010 .1.com/documentation/1. Conditions List of conditions for this action. Operations List of operations for execution.5.8 Manual [Zabbix] Página 219 de 285 2. Actions The screen is used to manage actions.5. Displayed data: Parameter Name Description Action name.

zabbix.Zabbix 1.8 Manual [Zabbix] Página 220 de 285 Action configuration The screen provides access to configuration of a single action.com/documentation/1.8/complete 19/11/2010 . More configuration options are available if escalation is enabled: http://www.

Graphs The screen is used to manage custom graphs.6.1.Zabbix 1.6. List of Graphs The screen provides list of graphs. Graphs 2.8 Manual [Zabbix] Página 221 de 285 See more details about configuration of actions.zabbix. 2. conditions and operations in other sections of the Manual.com/documentation/1. http://www.8/complete 19/11/2010 .

8/complete 19/11/2010 . Graph width in pixels.Zabbix 1.zabbix. Graph height in pixels.com/documentation/1. http://www.8 Manual [Zabbix] Página 222 de 285 Displayed data: Parameter Name Width Height Description Graph name. Graph type: Normal Graph type Stacked Pie Pie exploded Graph configuration The screen provides access to configuration of a single custom graph.

If selected.8 Manual [Zabbix] Página 223 de 285 Graph attributes: Parameter Name Width Height Unique graph name. non-working hours will be shown with gray background.com/documentation/1. simple triggers will be displayed as red lines. Display percentile for right Y axis.8/complete 19/11/2010 . Graph type: Normal – normal graph. Normally used for displaying 95% percentile.zabbix. Display percentile for left Y axis. Normally used for displaying 95% percentile. values displayed as lines. Description Graph type Show working time Show triggers Percentile line (Left) Percentile line (Right) http://www.Zabbix 1. If selected. Stacked – stacked graph. Graph width in pixels. Exploded – exploded pie graph. Graph height in pixels. Pie – pie graphs.

Display legend.8/complete 19/11/2010 .zabbix. For Pie graphs only. contact detail of responsible staff. Type of Y axis: Calculated – Y axis value will be automatically calculated Calculated [min=0] – Y min value is set to 0.Zabbix 1. List of graph elements (items) to be displayed for this graph. Fixed – fixed min and max value for Y axis. May contain instructions for fixing specific problem. etc. Enable 3D style. For Pie graphs only.com/documentation/1.8 Manual [Zabbix] Página 224 de 285 Comments Text field used to provide more information about this trigger. maximum value will be automatically calculated. Y axis type 3D view Legend Items Graph element: http://www.

used when more than one value exists for a single pixel (Xcoordinate): All – all (minimum. Type: Simple Aggregated What values will be displayed. 2.com/documentation/1. Function Draw style Color Aggregated periods count Y axis side Sort order (0→100) What Y axis side the element is assigned to. Draw order.Zabbix 1. http://www.1.8 Manual [Zabbix] Página 225 de 285 Attributes of a graph element: Parameter Parameter Type Description Selection of host item.zabbix. average and maximum) Min – minimum only Avg – average only Max – maximum only Draw style: Line – draw lines Filled region – draw filled region Bold line – draw bold lines Dot – draw dots Dashed line – draw dashed line RGB color in HEX notation. 0 will be processed first.7.8/complete 19/11/2010 . List of Screens The screen provides list of screens. which will be displayed. Screens 2. Screens The screen is used to manage screens.7.

http://www.8/complete 19/11/2010 .com/documentation/1. number of columns and rows.8 Manual [Zabbix] Página 226 de 285 Parameter Name Screen name.zabbix. Description Dimension (cols x rows) Screen size.Zabbix 1. Screen configuration (high-level) The screen provides access to configuration of a single screen.

http://www. Screen configuration (screen elements) The screen provides access to configuration of a single screen giving access to configuration of all elements.8/complete 19/11/2010 .Zabbix 1.com/documentation/1.8 Manual [Zabbix] Página 227 de 285 Screen high-level attributes: Parameter Name Columns Rows Description Unique screen name. Number of columns in the screen. Number of rows in the screen.zabbix.

8 Manual [Zabbix] Página 228 de 285 Click on a screen element (cell) to change what information should be displayed in the screen cell.Zabbix 1. http://www.com/documentation/1.zabbix.8/complete 19/11/2010 .

status of triggers for a host group URL – include content from an external resource Resource Possible values: Center Horizontal align Left Right http://www.8 Manual [Zabbix] Página 229 de 285 Screen high-level attributes: Parameter Description Information displayed in the cell: Clock – digital or analog clock displaying current server or local time Data overview – latest data for a group of hosts Graph – single custom graph History of actions – history of recent actions History of events – latest events Hosts info – high level host related information Map – single map Plain text – plain text data Screen – screen (one screen may contain other screens inside) Server info – server high-level information Simple graph – single simple graph Triggers info – high level trigger related information Triggers overview .8/complete 19/11/2010 .zabbix.Zabbix 1.com/documentation/1.

List of Maps The screen provides list of maps. Displayed data: http://www.8 Manual [Zabbix] Página 230 de 285 Vertical align Possible values: Middle Top Bottom Extend cell to a number of columns. Maps The screen is used to manage user-defined maps.8.Zabbix 1.8/complete 19/11/2010 .1. Column span Row span 2.zabbix.com/documentation/1. same way as HTML row spanning works. Maps 2. Extend cell to a number of rows. same way as HTML column spanning works.8.

8 Manual [Zabbix] Página 231 de 285 Parameter Name Width Height Description Map name Map width in pixels.zabbix. Map high-level attributes: Parameter Name Width Height Unique map name. Map height in pixels. Map width in pixels.8/complete 19/11/2010 . Map configuration (high-level) The screen provides access to configuration of a user-defined screen.Zabbix 1.com/documentation/1. Description http://www. Map height in pixels.

This option is available since Zabbix 1. Label type used for all map icons: Label – icon label only IP address – IP address only Element name – element name (for example. If a map element (host. If element has an active trigger. host name) Status only – status only (OK or PROBLEM) Nothing . If marked. This option is available since Zabbix 1. For upgrades from previous installations it is enabled by default on all maps. host group or another map) has a single problem. This option is available since Zabbix 1. problem name is used. having same colour as the highest severity trigger. this option controls whether problem (trigger) name is printed.Zabbix 1. No scaling is performed.8.com/documentation/1.1.zabbix.3.8/complete 19/11/2010 .8.8 Manual [Zabbix] Página 232 de 285 Background image Use background image: No image – no background image (white background) Image – selected image to be used as a background image. If element status is “disabled” or “in maintenance”. square background will be used. round background will be used. Map elements will receive highlighting. or problem count.8.no icon labels are displayed Display icon label on: Bottom – bottom (under the icon) Left – left side Right – right side Top – top of the icon Icon highlighting Mark elements on trigger status change Expand single problem Icon label type Icon label location Map configuration (configuration of map elements) List of links: http://www. Elements that have a trigger status recently changed will be highlighted with markers.

8/complete 19/11/2010 .Zabbix 1.com/documentation/1.8 Manual [Zabbix] Página 233 de 285 Configuration of map element The screen provides access to configuration of a single map element.zabbix. http://www.

Zabbix 1.8 Manual [Zabbix] Página 234 de 285 Map element attributes: Parameter Description Type of the element: Host – icon representing status of all triggers of the selected host Map – icon representing status of all elements of a map Trigger – icon representing status of a single trigger Host group – icon representing status of all triggers of all hosts belonging to Image – an icon. not linked to any resource Icon label.com/documentation/1. Macros and multi-line string can be used in labels starting from version 1.8 Label location: Default – Map's default label location Bottom – bottom (under the icon) Left – left side Right – right side Top – top of the icon Status of triggers for the selected host will be used. Type Label Label location Host Map http://www.8/complete 19/11/2010 . Status of all elements for the selected map will be used. any string.zabbix.

the URL will be used when a user clicks on the screen element.Zabbix 1.8 Manual [Zabbix] Página 235 de 285 Trigger Host group Icon (ok) Icon (problem) Status of the selected trigger will be used.com/documentation/1. Icon (unknown) Icon to be used if the selected host is in an unknown state.8/complete 19/11/2010 . Y coordinate for the map element. Icon to be used when no problem exists. Icon (disabled) Coordinate X Coordinate Y URL Icon to be used if the selected host is disabled. Status of all triggers for the selected host group will be used. Map link attributes: Parameter Description http://www. If set. Configuration of a link The screen provides access to configuration of a link.zabbix. Icon to be used in case of problems (one or more). X coordinate for the map element.

9. its style is applied to the link.Zabbix 1. Default link style: Line – single line Bold line – bold line Dot – dots Dashed line – dashed line Default link colour.com/documentation/1.zabbix.9. IT Services 2. Type (OK) Colour (OK) 2. List of IT Services The screen provides list of IT Services. IT Services The screen is used to manage IT Services.1.8 Manual [Zabbix] Página 236 de 285 Label Element 1 Element 2 Link status indicators Label that will be rendered on top of the link. You can use macros here. Second element that link connects.8/complete 19/11/2010 . http://www. First element that link connects. List of triggers linked to the link. In case if a trigger has status PROBLEM.

Trigger Linked to a trigger: none – no linkage trigger name – linked to the trigger.Zabbix 1.8/complete 19/11/2010 . http://www.8 Manual [Zabbix] Página 237 de 285 Displayed data: Parameter Service Service name. thus depends on the trigger status IT Service configuration The screen provides access to configuration of IT services.zabbix. Description Status calculation How the service updates its status.com/documentation/1.

List of child services the service depends on. SLA percentage for this service.8/complete 19/11/2010 .8 Manual [Zabbix] Página 238 de 285 IT Service attributes: Parameter Name Parent service Depends on Service name.com/documentation/1. Description Status calculation algorithm Calculate SLA Acceptable SLA (in %) Service times http://www.Zabbix 1. if all children have problems – consider problem if all children have problems Select to display SLA data. all service operates 24x7x365. It is used for reporting.zabbix. Add new service times to make exceptions. Parent service. For reference only. How to calculate status of the service: Do not calculate – do not calculate service status Problem. if it least one child has a problem – consider problem if at least one child service has a problem Problem. By default. it cannot be changed.

8/complete 19/11/2010 .10. Service state within this period does not affect SLA. lowest comes first. Link to trigger Sort order 2.1. Discovery 2.zabbix. Services of the lowest level must be linked to triggers. Discovery The screen is used to manage discovery rules.8 Manual [Zabbix] Página 239 de 285 New service time Service times: One-time downtime – a single downtime.Zabbix 1.com/documentation/1. Uptime – service uptime Downtime – Service state within this period does not affect SLA. Displayed data: http://www. List of discovery rules The screen provides list of discovery rules. Display sort order.10.

Status of the discovery rule: Active – the rule is active Disabled – the rule is disabled Discovery rule configuration The screen provides access to configuration of a discovery rule. Discovery rule attributes: Parameter Name Unique name of the discovery rule. Description http://www. Frequency in seconds.zabbix. List of checks executed by the discovery rule.com/documentation/1.8/complete 19/11/2010 .8 Manual [Zabbix] Página 240 de 285 Parameter Name IP range Delay Checks Status Description Name of discovery rule.Zabbix 1. Range of IP addresses affected by the discovery rule.

2. Export The screen provides list of hosts and their elements for export. Export/Import 2.zabbix. Export The screen is used to export hosts.8 Manual [Zabbix] Página 241 de 285 Discovery by proxy Who performs discovery: (no proxy) – Zabbix Server is doing discovery proxy name – This proxy performs discovery Range of IP addresses for discovery. SNMPv3 Agent SLA percentage for this service.168. http://www.11.1-100.192.1. POP.8/complete 19/11/2010 . HTTP. This parameter may be one of following: Single port: 22 Range of ports: 22-45 List: 22-45. items.60-70 Status of the discovery rule: Active – the rule is active Disabled – the rule is disabled IP range Delay (seconds) Checks New check Port Status 2. LDAP. triggers and graphs.168.168.200 This parameter defines how often Zabbix should execute this rule in seconds. NNTP. FTP.1-255 List: 192. SMTP.11.55. Format: Single IP: 192.1.1.168. Zabbix Agent.168.1-255.192. List of supported checks: SSH. SNMPv2 Agent.1. It is used for reporting. TCP. SNMPv1 Agent.Zabbix 1.2.33 Range of IP addresses: 192.com/documentation/1. IMAP.

Zabbix 1. Preview page: http://www.com/documentation/1. Select to export host graphs. Items Triggers Graphs Select to export host items. Zabbix agent port number. Host status. Displayed data: Parameter Name DNS IP Port Status Host name.8/complete 19/11/2010 . then press “Preview” or “Export”. Host DNS name.8 Manual [Zabbix] Página 242 de 285 Select elements you would like to export. IP address of Zabbix agent.zabbix. Description Templates Select to export template related information. Select to export host triggers.

8 Manual [Zabbix] Página 243 de 285 2.2. Import The screen is used to perform XML import of host related data.com/documentation/1.8/complete 19/11/2010 .Zabbix 1. http://www.11.zabbix.

8 Manual [Zabbix] Página 244 de 285 Discovery rule attributes: Parameter Import file Description XML file to import. 6 Comments 17.8/complete 19/11/2010 .com/documentation/1.Zabbix 1. Administration http://www.3. Set of rules for each type of element: Existing – what to do if element already exists Missing – what do to if element is missing Possible actions: Update – update existing element Add – add element Skip – do not process new data Rules Press “Import” to import selected file.zabbix.

zabbix. SMS.8/complete 19/11/2010 .1. 17. Housekeeper The Housekeeper is a periodical process which is executed by Zabbix Server. Default is 100. etc) than (in days) history Zabbix will keep in the database. Max count of elements to show For entries that are displayed in a single table cell.2.8 Manual [Zabbix] Página 245 de 285 17. Maximum amount of elements that will be available as search or filter results. Configuration parameters: Parameter Default theme Dropdown first entry Search/Filter elements limit Description Default theme for users who have not set a specific one in their profiles Whether first entry in element selection dropdowns should be all or none. http://www.1. General 17. Maximum number of event to show for each trigger in Status of Triggers screen. The process removes outdated information and information deleted by user. This parameter defines for how many days event are displayed in Status of Triggers screen.1. Event acknowledges Show events not older (Days) Max count of events per trigger to show This parameter defines if event acknowledges are activated in Zabbix interface.3. Default is 7 days. Older events will be removed. no more than configured inside table cell here will be shown.3.com/documentation/1.Zabbix 1. Older actions will be removed. Do not keep events older This parameter defines how many days of events history Zabbix will keep in the than (in days) database. Configuration parameters: Parameter Description Do not keep actions older This parameter defines how many days of executed actions (emails.3.1. GUI This section allows to set Zabbix frontend related defaults. jabber.

Image attributes: Parameter Description http://www.Zabbix 1. Backgrounds are used as background images of System Maps.8 Manual [Zabbix] Página 246 de 285 17. There are two types of images: ■ Icon ■ Background Icons are used in for displaying System Map elements.3.com/documentation/1.3.zabbix. Images List of images Image definition Zabbix images are stored in the database.8/complete 19/11/2010 .1.

4.Zabbix 1. JPEG) to be uploaded to Zabbix Note that you may upload image of any size. an item which has value '0' or '1' can use value mapping to represent the values in a human readable form: ■ '0' ⇒ 'Not Available' ■ '1' ⇒ 'Available' Value mapping can be used only for items having type Unsigned integer.com/documentation/1. Value mappings are used for representation of data in both Zabbix front-end and information sent by email/jabber/SMS/whatever.3.zabbix.8 Manual [Zabbix] Página 247 de 285 Name Type Upload Unique name of an image.5MB may not be displayed in maps.ini if you have this problem. 17. Either Icon or Background Name of local file (PNG. Value mapping Value maps are used to create a mapping between numeric values and string representations.1. Regular expressions This section allows to create custom regular expressions for reusing elsewhere in Zabbix. Results show status of each subexpression and total custom expression status.1. A custom regular expression may consist of multiple subexpressions.5. For example. Increase value of max_memory_size in php.8/complete 19/11/2010 . Value mapping definition http://www. and it can be tested in this section by providing a test string. 17.3. however images bigger than 1.

17.hh:mm-hh:mm.1.09:00-18:00 1-5.zabbix.3.10:00-16:00 http://www. Working time has the following format: dd-dd.com/documentation/1.Zabbix 1.hh:mm-hh:mm.… . Set of mappings. New mapping Single mapping for addition.dd-dd. 7 – Sunday Hours: 00-24 Minutes: 00-59 Empty format is equal to 01-07.09:00-18:00. 2 – Tuesday . while non-working time is displayed as grey.8/complete 19/11/2010 . Working time is displayed as a white background. Currently this is used for graphs only.… Format dd hh mm Description Day of week: 1 – Monday.8 Manual [Zabbix] Página 248 de 285 Parameters of a value mapping: Parameter Name Mapping Description Unique name of set of value mappings.6-7.6.00:00-23:59 For example: 1-5. Working time Working time is system-wide parameter which defines working time.

is created in order to alarm Zabbix administrators in case of disaster. Authentication 17.2.8 Manual [Zabbix] Página 249 de 285 17. If set to 0. Group for discovered hosts Hosts discovered by network discovery will be automatically placed in the hostgroup.2.zabbix.8.2 database watchdog is supported for MySQL only. Other Refresh unsupported items Some items may become unsupported due to errors in User Parameters or because of an item being not supported by an agent.com/documentation/1. The watchdog will send notifications to a user group in case if the database is down. message Until Zabbix version 1.3.7. Zabbix can be configured to periodically make unsupported items active.1. HTTP The screen can be used to enable Apache based (HTTP) authentication. Parameter Description Zabbix will activate unsupported item every N seconds. it will wait until the database is back again to continue processing. 17.3. Zabbix server will not stop. the automatic Refresh unsupported items (in activation will be disabled. It cannot work without a database.3. User group for database down User group for sending alarm message or 'None'. The authentication will be used to check user names and passwords. however his Zabbix password will not be used.8. Since 1. it is supported for all databases. The Administration Tab is available to users of type Super Administrators only. Database watchdog.1. sec) Proxies check unsupported items every 10 minutes.Zabbix 1.8/complete 19/11/2010 . This is not configurable for Proxies. Note that an user must exist in Zabbix as well. selected here. http://www. a special Zabbix server process. Database watchdog Availability of Zabbix server depends on availability of back-end database.2.

Note that an user must exist in Zabbix as well.2.8/complete 19/11/2010 .3.zabbix. LDAP The screen can be used to enable external LDAP authentication.com/documentation/1. not by Zabbix! 17. Be careful! Make sure that Apache authentication is configured and works properly before switching it on. The authentication will be used to check user names and passwords. Zabbix LDAP authentication works at least with Microsoft Active Directory and OpenLDAP.Zabbix 1.2.8 Manual [Zabbix] Página 250 de 285 Configuration parameters: Parameter Description HTTP Authentication Enabled This parameter defines if Apache based authentication is enabled. http://www. however his Zabbix password will not be used. In case of Apache authentication all users (even with GUI Access set to Internal) will be authorised by Apache.

ou=Users. Port Base DN Search Attribute Bind DN Bind Password LDAP Authentication Enabled Test Authentication Login http://www.com/documentation/1.8 Manual [Zabbix] Página 251 de 285 Configuration parameters: Parameter LDAP Host Description Name of LDAP server. Default is 389. Enable LDAP authentication. For secure LDAP connection port number is normally 636.com For secure LDAP server use ldaps protocol ldaps://ldap.8/complete 19/11/2010 .ou=system uid uid=Admin.ou=system Password for binding to the LDAP server.zabbix. Name of a test user.Zabbix 1.zabbix. The user must exist in LDAP.zabbix. For example: ldap://ldap.com Port of LDAP server.

e.3. User name.3. User surname. 17. Displayed data: Parameter Alias Name Surname Description User short-name.Zabbix 1. login name.8 Manual [Zabbix] Página 252 de 285 User Password LDAP password of the test user.8/complete 19/11/2010 . These groups must have GUI Access set to Internal.3.3. Users 17. Some user groups can still be authorised by Zabbix.com/documentation/1.1. Zabbix will not activate LDAP authentication if it is unable to authenticate the test user. i.zabbix. http://www. Users The screen can be used to manage Zabbix users. List of users It provides list of users.

one of following: Zabbix User Zabbix Admin Zabbix Super Admin List of all group the user belong to. depends on settings of user groups: System default – Zabbix. Configuration parameters: http://www. Groups Is online? Access to GUI. Is user online.com/documentation/1.8/complete 19/11/2010 .Zabbix 1. LDAP Authentication GUI Access Internal – the user is authenticated by Zabbix regardless of system settings Disabled – GUI access is restricted to this user Status Actions User status. HTTP Authentication. User configuration The screen provides user details and gives control to change user attributes.zabbix. The user is ignored by Zabbix.8 Manual [Zabbix] Página 253 de 285 User type User type. depends on settings of user groups: Enabled – the user is active Disabled – the user is disabled.

User surname.com/documentation/1. Zabbix Super Admin – access to everything.e. Defines how the GUI looks like: System Default . http://www. the rights depend on user group membership! The information is available read-only. screens. User type Groups Media Language Theme Auto-login (1 month) Auto-logout (0 . Refresh used for graphs.Zabbix 1.8 Manual [Zabbix] Página 254 de 285 Parameter Alias Name Surname Description User short-name. login name.use system settings Original Blue – standard blue theme Black & Blue – alternative theme Enable if you want Zabbix to remember you. plain text data. It is impossible to change user rights here. Language of Zabbix GUI. including Administration tabs. Can be set to 0 to disable. one of following: Zabbix User – access to Monitoring tab only. Browser cookies are used for this. Set it to 0 to disable auto-logout.8/complete 19/11/2010 . Zabbix Admin – access to Monitoring and Configuration tabs.disable) User will be logouted after N seconds if inactivity. User type. List of all medias. Must be unique! User name. URL (after login) Refresh (in seconds) Make Zabbix to transfer you to the URL after successful login. i.zabbix. List of all group the user belong to. etc. The medias are used by Zabbix for sending notifications. Click on User Rights Show to display user rights.

http://www.8 Manual [Zabbix] Página 255 de 285 17.com/documentation/1. User Groups The screen can be used to manage Zabbix user groups.3.Zabbix 1.2. List of user groups It provides list of user groups.3.zabbix.8/complete 19/11/2010 .

Zabbix 1.8 Manual [Zabbix] Página 256 de 285 Displayed data: Parameter Name Description Host group name. Enabled – users are active User status Disabled – all users of the group are disabled Displays how the users are authenticated.com/documentation/1. Must be unique.zabbix.8/complete 19/11/2010 . System default – use default authentication Internal – use Zabbix authentication Disabled – access to Zabbix GUI is forbidden List of group members GUI Access Members User group configuration http://www.

How the users of the group are authenticated. System default – use default authentication Internal – use Zabbix authentication Disabled – access to Zabbix GUI is forbidden GUI Access Status of group members: Users Status Enabled – users are active Disabled – users are disabled Three lists for different host permissions: Read-write – host groups with read-write access Read-only – host groups with read-only access Deny – host groups with deny access Rights Click on User rights (Show) to see what permissions the user group has: http://www.8 Manual [Zabbix] Página 257 de 285 Configuration parameters: Parameter Description Group name Unique group name.8/complete 19/11/2010 . Users List of members of this group.Zabbix 1.zabbix.com/documentation/1.

Media type is a delivery method for user notifications.4.8 Manual [Zabbix] Página 258 de 285 17.8/complete 19/11/2010 . Media types 17.com/documentation/1.3.4.3.zabbix. Media types The screen can be used to manage Zabbix media types.Zabbix 1.1. http://www. List of media types It provides list of media types.

http://www. Media configuration The screen provides user details and gives control to change media attributes.8/complete 19/11/2010 .Zabbix 1.com/documentation/1. depends on media type. Details Configuration details.8 Manual [Zabbix] Página 259 de 285 Displayed data: Parameter Description Media type: Email – email notification SMS – SMS notifications sent using serial GSM modem Jabber – Jabber notification Script – script based notification Type Description Name of the media.zabbix.

8 Manual [Zabbix] Página 260 de 285 Configuration parameters: Parameter Description Unique media name.Zabbix 1.com/documentation/1. Type Media type: Email – email notification SMTP Server .name of the custom script Description http://www.zabbix.server name SMTP Hello – Hello string. normally domain name SMTP Email – sender email address SMS – SMS notifications sent using serial GSM modem GSM Modem .8/complete 19/11/2010 .serial device name of GSM modem Jabber – Jabber notification Jabber Identifier .Jabber ID Password – Password of the Jabber ID Script – script based notification Script name .

The script is available to members of the user group only.3.5. The scripts are executed on Zabbix Server side even for hosts monitored by a proxy. Scripts The screen can be used to manage user-defined scripts. The script is available for hosts of the host group only.Zabbix 1. Command to be executed.8/complete 19/11/2010 . Read . Depending on permission.user must have read permission for the host to execute the script Write .zabbix.com/documentation/1. List of scripts It provides list of scripts known to Zabbix. Displayed data: Parameter Name Command User group Host group Host access Unique script name.8 Manual [Zabbix] Página 261 de 285 17. Zabbix user may execute a script from the front-end by clicking on host from certain screens. Description http://www.user must have write permission for the host to execute the script.

which will be executed on user request. Full path to a command.DNS} {IPADDRESS} For example: /bin/ping-c 3 {HOST. Description Command User group http://www. The command will run on Zabbix Server side.Zabbix 1.com/documentation/1.CONN} A special syntax for IPMI commands must be used: IPMI <ipmi control> [value] For example: IPMI power off The script is available to members of the user group only.CONN} {HOST. Configuration parameters: Parameter Name Unique script name.8/complete 19/11/2010 .8 Manual [Zabbix] Página 262 de 285 Script configuration The screen provides script details and gives control to change script attributes. The following macros are supported here: {HOST.zabbix.

6. Object. which was affected: Application Graph Host Resource http://www.8 Manual [Zabbix] Página 263 de 285 Host group Host access The script is available for hosts of the host group only.user must have write permission for the host to execute the script. Read . Audit logs Displayed data: Parameter Time User Description Time stamp when an action took place.com/documentation/1.3. User name.Zabbix 1.8/complete 19/11/2010 .user must have read permission for the host to execute the script Write . Audit The screen can be used to see front-end audit records and list of notifications sent to users. 17.zabbix.

com/documentation/1. Displayed data: Parameter Time Description Time stamp when an action took place.zabbix.Zabbix 1.8/complete 19/11/2010 . http://www. Action Details Audit actions The screen provides access to history of notifications and remote commands.8 Manual [Zabbix] Página 264 de 285 Item User Performed action: Added Login Logout Removed Updated More detailed information about action.

com/documentation/1.3.Zabbix 1. Overview For each item type the following data is displayed: http://www.zabbix.7. 17. Status Retires left Recipient(s) List of recipients.8 Manual [Zabbix] Página 265 de 285 Type Type of executed operation: Notifications Remote command Status: Not sent Sent Number of retries left. Message Error Message used in notification. Queue The Queue provides information about performance of Zabbix.8/complete 19/11/2010 . Error if the notification was not sent.

shows statistics about local server. displayed last.com/documentation/1. Data is delayed for 10-30 seconds. Data is delayed for 1-5 minutes.Zabbix 1.8/complete 19/11/2010 . Data is delayed for 5-10 minutes.zabbix. Data is delayed for 30-60 seconds. For each Proxy and local Zabbix Server the following data is displayed: Parameter Proxy Description Proxy name or Server. More than 10 minutes Data is delayed for more than 10 minutes.8 Manual [Zabbix] Página 266 de 285 Parameter Items 5 seconds 10 seconds 30 seconds 1 minute 5 minutes Item type Description Data is delayed for 5-10 seconds. http://www. Server. Overview by proxy The view gives more detailed information about performance of Zabbix Server and Proxies.

zabbix. Host Host name. The time stamps will always be in the past.8.com/documentation/1.8 Manual [Zabbix] Página 267 de 285 Details The view gives very detailed information about delayed items. Notifications This is report on number of notifications sent to each user grouped by media types. http://www. List of items is displayed with the following details: Parameter Description Next check Expected time stamp of next data retrieval. 17.8/complete 19/11/2010 .Zabbix 1. Description Item name.3.

9. 17.zabbix.3.8 Manual [Zabbix] Página 268 de 285 For each user number of notifications is displayed per each media type.Zabbix 1.8/complete 19/11/2010 .com/documentation/1. http://www. Locale selection Select locale you'd like to select for further processing. Locales Locales provides functionality for easy editing of translations of Zabbix front-end.

http://www. ignore it Leave empty – if something is not translated.8 Manual [Zabbix] Página 269 de 285 Parameters: Parameter Take for default locale The locale will be used as a base one. leave translation empty Fill with default value – if something is not translated. Do not add – if something is not translated.zabbix.com/documentation/1. Left side is filled with default language. right side consists of translated phrases. Locale to extend New entries Select language you'd like to improve.8/complete 19/11/2010 .Zabbix 1. fill translation with default value Description Translation form This form is used to translate phrases used in Zabbix front-end.

press button “Download” to have translation file.com/documentation/1. Installation The screen makes possible creation of Zabbix front-end configuration file.3.8 Manual [Zabbix] Página 270 de 285 Once translation is ready.10.8/complete 19/11/2010 .zabbix. which can be used to replace files under include/locales. 17. http://www.Zabbix 1.

com/documentation/1.5Ghz. we see that Zabbix is able to handle 600 servers (or 6000 checks). How many servers can be monitored by Zabbix on the hardware. Pentium IV 1. each server you monitor has ten parameters to watch for. one may ask? It depends on number of monitored parameters and how often Zabbix should acquire these parameters. Performance Tuning 1.0 installed (RedHat Linux 8. IDE) is able to collect more than 200 parameters per second from servers being monitored (assuming no network delays).23. Suppose.18-14. You want to update these parameters once in 30 seconds.8/complete 19/11/2010 .54a4.Zabbix 1. 256Mb.zabbix.8 Manual [Zabbix] Página 271 de 285 1 Comment 18. the hardware configuration will be able to handle 600×2=1200 servers. These calculations made http://www. Doing simple calculation. In case if these parameters need to be updated once in a minute. kernel 2. Real world configuration Server with Zabbix 1. MySQL/MyISAM 3.4.0.

Every additional instance of zabbix_server adds known overhead. Hardware General advices on hardware: ■ Use fastest processor available ■ SCSI or SAS is better than IDE (performance of IDE disks may be significantly improved by using utility hdparm) and SATA ■ 15K RPM is better than 10K RPM which is better than 7200 RPM ■ User fast RAID storage ■ Use fast Ethernet adapter ■ Having more memory is always better 18. That is the fastest and the most secure way. This value can be monitored by using internal check zabbix [queue].1. in the same time.zabbix. 18.keep value of this parameter as low as possible. contains minimum number of parameters (ideally.3.com/documentation/1. 18. then number of monitored servers can be increased even up to 5x-10x times. 18.2.2. Performance tuning It is very important to have Zabbix system properly tuned for maximum performance. parallelism is increased. Optimal number of instances is achieved when queue.8 Manual [Zabbix] Página 272 de 285 in assumption that all monitored values are retrieved as soon as required (latency is 0).2. DebugLevel Optimal value is 3.2.Zabbix 1. 0 at any given moment). It is recommended to use DBSocket for connection to the database. zabbix_server StartPollers General rule .2. If this is not a requirement.1. Zabbix configuration parameters Many parameters may be tuned to get optimal performance.2. Operating System ■ Use latest (stable!) version of OS ■ Exclude unnecessary functionality from kernel ■ Tune kernel parameters 18. DBSocket MySQL only.8/complete 19/11/2010 . http://www.3. on average.

1. General Recipes 19.1. Zabbix heavily depends on availability and performance of database engine. and 'trends' are most heavily used tables.2. Keeping small update interval may be good for nice graphs.2. 1 Comment 19.8 Manual [Zabbix] Página 273 de 285 18. For example.1. This is because of increased parallelism. 'items' 'functions'. andsystem[procload15] if system ■ avoid use of triggers with long period given as function argument. ■ for large installations. i. however.Zabbix 1. keeping of MySQL temporary files in tmpfs is recommended 18. triggers'. Example: why use system[procload].e. However. this may overload Zabbix ■ tune parameters for default templates ■ tune housekeeping parameters ■ do not monitor parameters which return same information.4. ■ use fastest database engine.com/documentation/1. 'history_str.5 times faster (comparing to MyISAM) if InnoDB is used. ■ ICMP ping (Key “icmpping”) ■ Key “status” ■ Trigger function nodata() for monitoring availability of hosts using only active checks http://www. Cookbook 19. Database Engine This is probably most important part of Zabbix tuning.5. ■ keep database tables on different hard disks ■ 'history'.system[procload5] [procload] contains all. Monitoring of server's availability At least three methods (or combination of all methods) may be used in order to monitor availability of a server.zabbix. MySQL ■ use stable release of a database engine ■ rebuild MySQL or PostgreSQL from sources to get maximum performance ■ follow performance tuning instructions taken from MySQL or PostgreSQL documentation ■ for MySQL. General advices ■ monitor required parameters only ■ tune 'Update interval' for all items.8/complete 19/11/2010 . InnoDB requires more CPU power. max (3600) will be calculated significantly slower than max(60). use InnoDB table structure ■ ZABBIX works at least 1.

ibm.mysql -V 2.1.com/Redbooks. ### Set of parameter for monitoring MySQL server (v3.1.ibm.2.mysqladmin -uroot status|cut -f9 d":" #UserParameter=version[mysql].html?Open [http://publib-b.php?msg_id=2721722].php?msg_id=2721722 [https://sourceforge. mysql[uptime] Number of seconds MySQL is running 2. 2.mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" #UserParameter=mysql[questions]. mysql[questions] Number of processed queries 2. mysql[slowqueries] Number of slow queries http://www.html?Open].net/forum/message.2. Monitoring of Specific Applications 2.2.boulder.4.boulder.com/documentation/1. 2.8/complete 19/11/2010 . Details about enabling of WinPopUps can be found at https://sourceforge.5.2.mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" #UserParameter=mysql[slowqueries].nsf/RedbookAbstracts/sg244504.2.not started 1 .zabbix.conf contains list of parameters that can be used for monitoring of MySQL.8 Manual [Zabbix] Página 274 de 285 19.mysqladmin -uroot status|cut -f5 -d”:”|cut -f1 -d"O" #UserParameter=mysql[qps].42 and later) ### Change -u and add -p if required #UserParameter=mysql[ping].23. It could be good addition for email-based alert messages. MySQL Configuration file misc/conf/zabbix_agentd. mysql[ping] Check whether MySQL is alive Result: 0 . mysql[threads] Number of MySQL threads 2. AS/400 IBM AS/400 platform can be monitored using SNMP.net/forum/message.2.1.mysqladmin -uroot ping|grep alive|wc -l #UserParameter=mysql[uptime]. Sending alerts via WinPopUps WinPopUps maybe very useful if you're running Windows OS and want to get quick notification from ZABBIX.2. More information is available at http://publib-b.com/Redbooks.nsf/RedbookAbstracts/sg244504.mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" #UserParameter=mysql[threads].alive 2.2.Zabbix 1.3.

which is part of the software. Mikrotik routers Use SNMP agent provided by Mikrotik.23. mysql[qps] Queries per second 2.6.7.txt. Tuxedo Tuxedo command line utilities tmadmin and qmadmin can be used in definition of a UserParameter in order to return per server/service/queue performance counters and availability of Tuxedo resources. Informix Standard Informix utility onstat can be used for monitoring of virtually every aspect of Informix database. Novell Use MRTG Extension Program for NetWare Server (MRTGEXT.novell.com/documentation/1.mikrotik.zabbix.com [http://www. 2.3.49. for pc-linux-gnu (i686) 2.com/modules/xfmod/project/?mrtgext]. 2. It is available from http://forge.com/modules/xfmod/project/?mrtgext [http://forge. Items have to be configured of type Zabbix Agent and must have keys according to the MRTGEXT documentation. Also.6.7. 2.2. http://www. mysql[version] Version of MySQL Example: mysql Ver 11. Zabbix can retrieve information provided by Informix SNMP agent. 2.mikrotik.com] for more information. The agent is compatible with protocol used by Zabbix. For example: UTIL1 1 minute average CPU utilization CONNMAX Max licensed connections used VFKSys bytes free on volume Sys: Full list of parameters supported by the agent can be found in readme.Zabbix 1.5.16 Distrib 3.8 Manual [Zabbix] Página 275 de 285 2.4. WIN32 Use Zabbix W32 agent included (pre-compiled) into Zabbix distribution. See http://www.NLM) agent for Novell.novell.2.8/complete 19/11/2010 .

Let's say I am interested in peak threads used by the system. I enable it by setting the following options for the jvm: 1.management.Zabbix 1.sun. See the sun docs on jconsole for details.password file.zabbix. there are two ways that I can grab the jmx attribute values (or effect a jmx operation).port=xxxxx \ 3. since I use Tomcat.com/documentation/1. Now.) Once that is done.sun.jmxremote \ 2. I click on the info tab. (You might consider enabling ssl to make the connection more secure. you can then turn that command into a zabbix userparm. and to refer to the passwords stored in the jmxremote. After selecting Threading. you can use the command line tool like this /<pathTo>/java -jar /<pathTo>/cmdline-jmxclient.jar <jmxusername>:<jmxpassword> <jvmhostname>:<jmxport> jav The difference with the command line client is you need to specify the attribute you are interested in specifically. Parse the output and grab the number of your choice.g.authenticate=true \ 5. Again. Leaving it out will give you a list of all the attributes available under Threading. The second way is I can send well formatted requests via a jmx command line tool. I can then run jconsole and see everything that is currently exposed (and to verify that I can connect properly).ssl=false \ 4. In my tomcat environment. The output from this will be all the metrics from this jmx key. you are good. Dcom.lang:type=Thread where the jmx username and password are the ones defined in the file defined in the jvm options above. Dcom. e. Dcom.jmxremote. jconsole will also provide you the information you need to query specific jmx attributes from the information tab.jmxremote. If you can connect. you need to configure your jvm to allow jmx monitoring.management.lang:type=Threading” With tomcat.sun. the qry string is the one obtained from jconsole.8 Manual [Zabbix] Página 276 de 285 2. (Don't know what jboss has). find it under java. Threading.sun. Once you can reliably grab the data you are interested in. I can do the following: curl -s -u<jmxusername>:<jmxpassword> 'http://<tomcat_hostname>/manager/jmxproxy/?qry=java.management. http://www. If you don't have a servlet that will allow you to make a http request to the jmx interface. JMX First of all. How do you know if you can do this? You can use the sun jconsole utility that comes with the jdk and point it at your machine running the jvm.sun. password” This tells the jmx server to run on port XXXXX.jmxremote.lang. to use password authentication.management. Dcom. The first way is I can use the servlet provided by Tomcat.8.jmxremote. I browse down through the jmx objects via jconsole.management. parse the output for the data of your choice. Dcom. and I can see the name of the mbean is “java.file=/path/java/jre/lib/management/jmxremote.password.8/complete 19/11/2010 .

maxthreads.org/cmdline-jmxclient/] Information on setting up jmx monitoring http://java. The user has to be linked with the media. Integration 19.html] for your jvms General Information on JMX http://java.html [http://java.maxthreads.5.com/j2se/1.com/j2se/1.0/docs.. If trigger is ON.5.html [http://java.8 Manual [Zabbix] Página 277 de 285 UserParameter=jvm..0/docs..1.sun.5. 19.archive.com/j2se/1.sun. /usr/bin/curl -s -u<jmxusername>:<jmxpassword> 'http://<tomcat_hostname>/mana or UserParameter=jvm. Configure actions to send all (or selected) trigger status changes to the user.5 jvm also supports SNMP which provides another option.5.3.verviewTOC..ment/agent.org/cmdlinejmxclient/ [http://crawler. Need a command line jmx client? I use the one from here: http://crawler. The following steps must be performed: Step 1 Define new media. The script will have the following logic. HP OpenView ZABBIX can be configured to send messages to OpenView server. The media will execute a script which will send required information to OpenView. Step 3 Configure actions.jar <jmxusername>:<jmxhostnam That's it.8/complete 19/11/2010 . then execute OpenView command opcmsg -id application=<application> msg_grp=<msg_grp> object=<object> http://www.sun..ment/agent.sun..Zabbix 1.. Step 4 Write media script.com/documentation/1..com/j2se/1.0/docs.archive.3. I prefer getting my stats from the servlet via http rather than using the java command line client as it is much “lighter” to start up and grab the information.verviewTOC.zabbix. Step 2 Define new user.0/docs. /<pathTo>/java -jar /<pathTo>/cmdline-jmxclient.html] Apparently the 1.

The command will return unique message ID which has to be stored somewhere.com/documentation/1. 20. Additional information: database name database error code database error string This should never happen. Error Message Details Zabbix daemon is unable to establish connection to the database. preferrably in a new table of ZABBIX database.1. Escalations and repeated notifications http://www. Additional information: database error code database error string Z3001 Connection to database '%s' failed: [%d] %s Cannot create database '%s': [%d] Z3002 %s Z3003 No connection to the database. Troubleshooting 20. If trigger is OFF then opcmack <message id> has to be executed with message ID retrieved from the database.8 Manual [Zabbix] Página 278 de 285 msg_text=<text>. Error and warning messages Zabbix daemons generate error and warning messages in case of any problems. The media script is not given here. Refer to OpenView official documentation for more details about opcmsg and opcmack. Additional information: database error code database error string SQL query execution failed. 1 Comment 21.8.zabbix.8/complete 19/11/2010 . Zabbix daemon is unable to close connection to the database. Additional information: database name database error code database error string Zabbix daemon is unable to create database.Zabbix 1. The table contains complete list of numbered messages with additional details. Z3004 Cannot close database: [%d] %s Z3005 Query failed: [%d] %s [%s] Z3006 Fetch failed: [%d] %s The numbered error messages are supported starting from Zabbix 1. Report to Zabbix Team. The messages are written to log files depending on configuration parameters. Some of the messages are numbered. Additional information: database error code database error string SQL query string Record fetch failed.

otherwise remedy events can become escalated as well.zabbix.8/complete 19/11/2010 . In order to alert MySQL Administrators about any issues with MySQL applications the following configuration can be used: Since we are not interested in sending multiple messages or escalating MySQL problems to other user groups. ■ Recovery message to all interested parties ■ Zabbix supports unlimited number of escalation steps 21.2.com/documentation/1.Zabbix 1. minutes. http://www. Overview Zabbix provides effective and extremely flexible functionality for escalations and repeated notifications. escalations are not enabled. Zabbix executes arbitrary scripts (remote commands) ■ Repeated notifications until problem is resolved ■ Delayed notifications and remote commands ■ Escalate problems to other user groups ■ Different escalation path for acknowledged and unacknowledged problems ■ Execute actions (both notifications and remote commands) if a problem exists for more than N hours (seconds. notifications and remote commands: ■ Immediately inform users about new problems ■ Pro-active monitoring. Simple messages Warning: before enabling recovery messages or escalations. Depending on configuration. etc). Zabbix supports the following scenarios for escalations.8 Manual [Zabbix] Página 279 de 285 21.1. make sure to add “Trigger value = PROBLEM” condition to the action. Zabbix will automatically escalate (increase escalation step) unresolved problems and execute actions assigned to each escalation step.

Note also use of macros in the messages. memory. middleware. when the problem is resolved. Complete list of macros is available here: macros Actions are defined as: A message will be sent to all members of the group MySQL Administrators. CRM) if it does not respond ■ Using IPMI 'reboot' command reboot remote server if it does not answer requests ■ Try to automatically free disk space (remove older files. Remote commands Remote commands is a powerful mechanism for smart pro-active monitoring. 21.zabbix. clean /tmp) if we are running out of disk space ■ Migrate one VM from one physical box to another depending on CPU load ■ Add new nodes to the cloud environment if we have insufficient CPU (disk. whatever) resources Configuration of action for remote commands is similar to messaging. the only difference is that Zabbix will execute a command instead of sending a message. He is the list of some of the most obvious uses of the feature: ■ Automatically restart application (WEB server. http://www. The action condition is defined so that it will be activated in case of any disaster problems with one of Apache applications.com/documentation/1. Zabbix can execute a command on a monitored host in case of any pre-defined conditions. If sending of recovery messages is not enabled. Zabbix will send only one message with information about new problem.8 Manual [Zabbix] Página 280 de 285 Zabbix will send a single message to MySQL Administrators and a recovery message when problem is resolved.e.Zabbix 1. no messages will be sent on recovery. Action conditions is defined so that it will be activated in case of any problem with any of MySQL applications. Zabbix supports wide range of macros.3. i.8/complete 19/11/2010 .

com/documentation/1.8 Manual [Zabbix] Página 281 de 285 As a reaction to the disaster problem Zabbix will try to restart Apache process: Note use of the macro {HOSTNAME} here. Repeated notifications Repeated notifications is probably one of the most common use of Zabbix escalations.zabbix. See remote command tutorial for more information.4. 21. Make sure that escalations are enabled in the action details: http://www.8/complete 19/11/2010 .Zabbix 1. Also Zabbix Agent should run on a remote host and accept incoming connections. User 'zabbix' must have enough permissions to execute this script.

so all operations of step 2 will be execute. actions operations get additional options: Step(s). As soon as we have a problem. After one hour.8 Manual [Zabbix] Página 282 de 285 The period defines how frequently Zabbix should increase escalation step. If the trigger that generated an active escalation is disabled. Suppose we would like to send 5 messages every hour.zabbix. 3600 seconds. And so on. Zabbix is at step 1. 21. Zabbix sends a message informing about this fact to persons that have already received notifications. Delayed notifications Zabbix escalations supports sending of delayed notifications. it goes to the next step every hour. By default. As soon as we enabled escalations. The escalation period will be taken from action definition unless we overwrote it for an individual operation. A recovery message will be sent only to those people who received at least one message before in scope of the escalation. i.com/documentation/1.5.Zabbix 1.8/complete 19/11/2010 .e. so we defined that the operation will be active from escalation step 1 till 5. Period and Conditions. http://www. so all operations assigned to the step will be executed. escalation period will be increased automatically (if the problem still exists obviously).

The notification delay is controlled by the escalation period. i. supposedly no one is working on it.8 Manual [Zabbix] Página 283 de 285 Suppose we would like to be notified about long-standing MySQL problems only.com/documentation/1.Zabbix 1. The administrators will get four messages before the problem will be escalated to the Database manager.e. Note that the escalation period was changed to 10 hours and we use a custom default message: The operation is assigned only to step 2. 21.8/complete 19/11/2010 . Problem is not being fixed by MySQL admins? Escalate to their BOSS! Now we configured periodical sending of messages to MySQL administrators. Note that the manager will get a message only in case if the problem is not acknowledged yet.zabbix. It means it will be executed once after one escalation period.6. 10 hours: Therefore user 'Alexei' will get a message only in case if a problem exists for more than 10 hours. Escalate to Boss Zabbix escalations can be used to escalate problem to other users and user groups. http://www.

MySQL administrators.Zabbix 1. after another hour Zabbix will reboot server with the MySQL database (second remote command) using IPMI commands.7. Zabbix will try to restart the MySQL database. If the problems still exists. after another 30 minutes Zabbix will send a message to all users in Japan.HISTORY} macros in the message. If this does help. Complex scenario Look at this set of actions. http://www. After multiple messages to MySQL administrators and escalation to the manager. It will happen if problem exists for 2:30 hours and it hasn't been acknowledged. The macro will contain information about all previously executed steps.com/documentation/1.8/complete 19/11/2010 . beware! 21. The manager will get information about all email and all action executed before.8 Manual [Zabbix] Página 284 de 285 Note use of the {ESC.zabbix.

8 Manual [Zabbix] Página 285 de 285 Discussion marcel.0/] http://www.Zabbix 1. as I am not able to fully test this.txt · Last modified: 2009/12/17 16:44 by richlv Except where otherwise noted.8/complete 19/11/2010 . content on this wiki is licensed under the following license:CC Attribution-Noncommercial-No Derivative Works 3.0 Unported [http://creativecommons.org/licenses/by-nc-nd/3. I believe the key vm. however I am not filling this out as a bug.size[shared] vm.size[buffers] vm.com/documentation/1. 2010/10/26 18:52 I believe there is a mistake in documentation.8/complete.memory.memory.memory.zabbix.size[cached] Are NOT supported on HP-UX 1.

Sign up to vote on this title
UsefulNot useful