Zabbix Templates for NetPing Server Room Environmental Monitoring Units and Power Distribution Units

  • Published In: Tutorial
  • Created Date: 2018-04-16
  • Hits: 891

«... A template is a set of objects that may be applied to several nodes of the network.

These objects may be:

  • data elements;
  • triggers;
  • graphs;
  • groups of data elements;
  • complex screens (starting from Zabbix 2.0);
  • low-level detection rules (starting from Zabbix 2.0);
  • web scenarios (starting from Zabbix 2.2)

As soon as many nodes are identical in a real life or more or less similar, the sets of objects (data elements, triggers, graphs,…), created by you for a network node, may be useful for many nodes. Certainly, you may copy them to each new network node, but it would require many manual work. Instead, you may copy these objects to one template by using templates and then apply this template to any number of required network nodes.

When a template is connected to the network node, all objects (data elements, triggers, graphs,…) from a template are added to this network node. Templates are connected directly to each node (not to a group of network nodes).

Templates are usually used to group objects of certain services or applications (such as Apache, MySQL, PostgreSQL, Postfix…) and then are applied to the network nodes, where these services are launched.

One more advantage of using templates is when there is a need to change something in all network nodes, changing something on a level of a template is spread to all network nodes that are connected to all network nodes connected to this template.

Therefore, using templates is a great way to decrease the personal load and rationalize Zabbix configuration (section «6 Templates» of the official documentation Zabbix 2.2) …»

This article describes the way to configure monitoring of NetPing devices in the system Zabbix 2.2 using ready (predesigned) templates.

Requirements

To implement this solution, there is a need to have:

Configuring Zabbix Templates

A detailed process of creating templates in the monitoring system Zabbix 2.2 is described in the official documentation:

Ready Zabbix Templates for NetPing Server Room Environmental Monitoring Units and Power Distribution Units

Monitoring unit or PDUDescriptionUseDownload Template

UniPing server solution v4/SMS

Automatic detection of necessary parameters:

  • temperature sensors;
  • humidity sensors;
  • IO lines;
  • relay;
  • smoke sensor (current sensor);
  • GSM modem

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensors;
  • IO lines;
  • relays;
  • smoke sensor (current sensor)

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensors;
  • smoke sensor (current sensor);
  • GSM modem
Zabbix template

Zabbix_2.x_Template_UniPing_server_solution_v3SMS.xml

Zabbix_3.x_Template_UniPing_server_solution_v3SMS.xml

UniPing server solution v3

Automatic detection of necessary parameters:

  • temperature sensors;
  • humidity sensors;
  • IO lines;
  • relay;
  • smoke sensor (current sensor)

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensors;
  • IO lines;
  • relay;
  • smoke sensor (current sensor)

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensors;
  • smoke sensor (current sensor)
Zabbix template

Zabbix_2.x_Template_UniPing_server_solution_v3.xml

Zabbix_3.x_Template_UniPing_server_solution_v3.xml

UniPing v3

Automatic detection of necessary parameters:

  • temperature sensors;
  • humdity sensors;
  • IO lines;
  • relay;
  • smoke sensor (current sensor)

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensors;
  • IO lines;
  • relay;
  • smoke sensor (current sensor)

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensor;
  • smoke sensor (current sensor)
Zabbix template

Zabbix_2.x_Template_UniPing_v3.xml

Zabbix_3.x_Template_UniPing_v3.xml

NetPing SMS

Automatic detection of necessary parameters:

  • GSM modem

Automatic creation of triggers for changing statuses:

  • GSM modem
Zabbix template

Zabbix_2.x_Template_NetPing_SMS.xml

Zabbix_3.x_Template_NetPing_SMS.xml

NetPing IO v2

Automatic detection of necessary parameters:

  • IO lines (logic level, input pulse counter)

Automatic creation of graphs:

  • IO lines (logic level, input pulse counter)
Zabbix template

Zabbix_2.x_Template_NetPing_IO_v2.xml

Zabbix_3.x_Template_NetPing_IO_v2.xml

NetPing 8/PWR-220 v4/SMS

Automatic detection of necessary parameters:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay;
  • GSM modem

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensor;
  • relay;
  • GSM modem
Zabbix template

Zabbix_2.x_Template_NetPing_8PWR-220_v3SMS.xml

Zabbix_3.x_Template_NetPing_8PWR-220_v3SMS.xml

NetPing 4/PWR-220 v4/SMS

Automatic detection of necessary parameters:

  • temperature sensors;
  • humidity sensors;
  • relay;
  • GSM modem;
  • power supply source

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensors;
  • relay;
  • power supply source

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensors;
  • relay;
  • GSM modem;
  • power supply source
Zabbix template

Zabbix_2.x_Template_NetPing_4PWR-220_v3SMS.xml

Zabbix_3.x_Template_NetPing_4PWR-220_v3SMS.xml

NetPing 2/PWR-220 v4/SMS

Automatic detection of necesary parameters:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay;
  • GSM modem;
  • power supply source

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay;
  • power supply source

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensor;
  • relay;
  • GSM modem;
  • power supply source
Zabbix template

Zabbix_2.x_Template_NetPing_2PWR-220_v2SMS.xml

Zabbix_3.x_Template_NetPing_2PWR-220_v2SMS.xml

NetPing 2/PWR-220 v3/ETH

Automatic detection of all necessary parameters:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay

Automatic creation of graphs:

  • temperature sensors;
  • humidity sensor;
  • IO lines;
  • relay

Automatic creation of triggers for changing statuses:

  • temperature sensors;
  • humidity sensor;
  • relay
Zabbix template

Zabbix_2.x_Template_NetPing_2PWR-220_v3ETH.xml

Zabbix_3.x_Template_NetPing_2PWR-220_v3ETH.xml

Importing and Linking a Ready NetPing Template to Zabbix

Before importing templates!

To display statuses from sensors, relays, a GSM modem, and other objects of NetPing devices in Zabbix, in the understandable for a human text format, there is a need to configure converting numeric values. To do this, there is a need to go to the window for configuring the conversion of numeric values using the path «Administration» → «General» → «Value mapping» → «Create value map».

Zabbix - Converting values

And configure conversion of numeric values according to the picture represented below:

Converting numeric values in Zabbix

Otherwise, it is possible to download a ready file Zabbix_3.0_Value_mapping_NetPing_devices.xml (for Zabbix 3.x) and import it using a corresponding parameters in a Zabbix web interface.

If necessary, there is a need to indicate each created conversion of numeric values in the settings of a corresponding data element in a template configuration.

Linking a conversion of values in a Zabbix data element

After downloading ready templates, there is a need to import them to the Zabbix monitoring system. To do this, there is a need to go to the menu «Configuration» → «Templates» and click the button «Import».

Importing a template to Zabbix

In a window of importing, there is a need to click a button «Choose File» and choose a template in the format .XML from PC for uploading. Afterwards, there is a need to check checkboxes of the template elements that are necessary when importing to Zabbix (see a screenshot below) and click the button «Import».

Configuring the import of Zabbix template

In this way, it is possible to import all ready NetPing templates. Imported templates, the same as other Zabbix templates can be browsed in a window of templates «Configuration» → «Templates».

List of templates in Zabbix

Now, there is a need to link a necessary template to a required NetPing device. To do this, there is a need to create a network node in a configuration window «Configuration» → «Hosts» → «Create host».

Network nodes in Zabbix

In window of a node configuration, there is a need to specify a desired name of a device, and IP address with a port in the settings of SNMP interface on the tab «Host».

Adding a NetPing device to Zabbix

In a window of a node configuration there is a need to link a necesary template from the list «Select» → «Add»on the tab «Templates»: 

Linking a template to a network node in Zabbix

In a window of a configuration node, there is a need to add a macros {$SNMP_COMMUNIY_UNIPING} = %COMMUNITY% или {$SNMP_COMMUNIY_NETPING} = %COMMUNITY% on the tab «Macros»:

A name of a macros depends on settings of a ready NetPing template. In templates for devices with a name «UniPing» a macros name «{$SNMP_COMMUNIY_UNIPING}» is used. In templates for deices with a name «NetPing», a macros name «{$SNMP_COMMUNIY_NETPING}» is used.

where:

%COMMUNITY% – is a password specified on the page «SETTINGS» of a web interface of a web interface of a NetPing device.

Adding a macros to a node in a Zabbix network

After the implementation of the settings decribed above, there is a need to save a configuration of a network node by clicking a button «Save».

Result

As a result of configurations described above, it is possible to add any NetPing server room environmental monitoring unit and power distribution unit to a Zabbix monitoring system on the basis of templates that automatically create data elements, triggers, graphs, and have detection rules for all sensors, IO lines and relays.

NetPing devices in Zabbix

Operating of triggers from NetPing server room environmental monitoring units and power distribution units

Operating of triggers from NetPing devices

Graphs from NetPing server room environmental monitoring units and power distribution units

Temperature graph from a NetPing device in Zabbix

A relative humidity graph from a NetPing device in Zabbix

A logic level graph of an IO line from a NetPing device in Zabbix

A graph for counting input pulses of an IO line from a NetPing device in Zabbix

A graph of a relay status from a NetPing device in Zabbix


Tags: All devices
comments powered by Disqus