Zabbix Integration Guide Application Note 20211015 - 2
Zabbix Integration Guide Application Note 20211015 - 2
Guide
APPLICATION NOTE
Zabbix Integration Guide
Used symbols
Danger – Information regarding user safety or potential damage to the router.
The manufacturer of the device hereby grants the right to use debugging techniques (e.g.
decompilation) and making customer modifications of any executable linked with a LGPL li-
brary for own purposes. Note these rights are limited to the customer’s own usage. No further
distribution of such modified executables and no transmission of the information obtained dur-
ing these actions may be done.
Advantech Czech s.r.o., Sokolska 71, 562 04 Usti nad Orlici, Czech Republic.
Document No. APP-0089-EN, revision from October 15, 2021. Released in the Czech Republic.
i
Zabbix Integration Guide
Contents
1 Zabbix Server 1
1.1 Monitoring Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Server Installation and Configuration . . . . . . . . . . . . . . . . . . . . . . . . 3
4 Licenses 17
5 Related Documents 18
ii
Zabbix Integration Guide
List of Figures
1 Logical Schema of a Zabbix Configuration . . . . . . . . . . . . . . . . . . . . . 2
2 Zabbix Agent Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Zabbix Server Host Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Zabbix Server Encryption Configuration . . . . . . . . . . . . . . . . . . . . . . 10
5 Zabbix Agent Configuration, Custom Keys . . . . . . . . . . . . . . . . . . . . . 12
6 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
iii
Zabbix Integration Guide
List of Tables
1 Template Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Defined Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Zabbix Agent Configuration, Connectivity Fields . . . . . . . . . . . . . . . . . . 9
4 Agent Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Zabbix Agent Configuration, Custom Keys . . . . . . . . . . . . . . . . . . . . . 12
6 Agent Items Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7 Specific Items Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
iv
Zabbix Integration Guide
1. Zabbix Server
Remote monitoring is the process of supervising IT systems from a central management
server. In general, monitoring improves reliability and security of your network because it
facilitates early detection of erroneous conditions.
For an introduction of remote monitoring and a list of other monitoring tools, please see the
Remote Monitoring Application Note [1]. This document describes monitoring of Advantech
cellular routers using Zabbix 5.0 LTS.
Individual status checks are defined as Items. Each Item represents a specific Type of
information (numeric or character), obtained via a specific check type (SNMP, SSH, passive
or active agent) with a specific update period and storage interval. Each item has a unique
Key, e.g. “system.cpu.load”.
A set of Items (and other entities such as Triggers, Graphs, or Discovery Rules) can be
grouped together into a Template to speed up the deployment of monitoring tasks on a host.
Templates are linked to Hosts or to other Templates.
Items are logically grouped into Applications (e.g. Info, Status, Interfaces). Some Items
also auto-populate host Inventory fields (e.g. Name, OS, Serial Number).
1
https://www.zabbix.com
2
https://icr.advantech.cz/products/software/user-modules#zabbix-agent
1
Zabbix Integration Guide
3. Set Interfaces that should be used (SNMP or Agent), possibly including Encryption keys,
4. Link templates that define the Items to be monitored (see the following sections for a list
of compatible templates).
Every item has a defied refresh rate, so some items may populated later than others. If you
want to request an immediate update of specific (or all) items, open the Host Configuration,
click Items on the top bar, then check the items you want to update and click the Execute now
button.
2
Zabbix Integration Guide
Once installed, connect from your Web browser to the admin Web page at http://<ip_
address> and login as „Admin“ with a password „zabbix“.
If you want to use Advantech Templates, download zbx_conel_templates.xml from the Ad-
vantech Engineering Portal, then enter the Zabbix Configuration section and click Templates,
or enter http://<ip_address>/templates.php and then import the zbx_conel_templates.xml
file.
3
https://www.zabbix.com/download_appliance
4
https://www.zabbix.com/documentation/current/manual/appliance
5
https://www.virtualbox.org
3
2. Zabbix SNMP Templates
To monitor an Advantech cellular router via the standard SNMP:
The Zabbix User Module is not required for the SNMP monitoring. The following SNMP Tem-
plates can be used with Advantech cellular routers (indentation shows nested templates):
5
Zabbix Integration Guide
We recommend you create a template specific to your router (e.g. “ICR-3211”) and then
include (or not) the individual template modules depending on the router functions and your
monitoring needs. For example, you should include the “Conel GPS SNMP” only if the GPS
position is available.
Advantech custom templates, denoted by [3], are not included in the default installation;
they need to be downloaded and installed manually. The name “Conel” is used for con-
sistency with the SNMP OID [3].
The strength thresholds A and B are auto-calculated items that depend on the used mobile
technology. They are used by the signal strength triggers.
From the Mobile-2 OIDs [3] only the MobileYesterday table is represented in the Template
Module Conel Mobile Data SNMP. The MobileToday table contains incomplete interim values
only and the other table such as MobileThisWeek are not needed because Zabbix maintains
its own statistics of past data.
6
Zabbix Integration Guide
7
Zabbix Integration Guide
Item Description
Enable Agent Whether the agent will be started.
Allow Remote Commands Whether remote commands from Zabbix server are al-
lowed. When disabled, the „system.run“ checks will be re-
jected.
Listen Port Agent (passive mode) will listen on this port for connections
from the server. Default is 10050.
Accept Server Incoming (passive mode) connections will be accepted only
from the hosts listed here. Enter an IP address of your Zab-
bix server. When empty, passive mode is disabled.
Accept unencrypted Accept (passive) connections without encryption. Not rec-
ommended! The following „Accept xxx“ checks shall match
the „Connections to host“ field in the Zabbix Encryption con-
fig, see Figure X.
Accept Pre-Shared Key Accept (passive) connections with TLS and a pre-shared
(PSK) key (PSK). When enabled, the PSK and its identity must be
configured.
Accept certificate Accept (passive) connections with TLS and a certificate.
When enabled, the CA and Local Certificate and Local Pri-
vate Key must be configured.
Connect Servers IP:port (or hostname:port) of Zabbix server for active
checks. Multiple comma-delimited addresses can be pro-
vided to use several independent Zabbix servers in parallel.
When empty, active checks will be disabled.
Encrypt Connection How the agent should connect to Zabbix server. Shall
match the „Connections from host“ field in the Zabbix En-
cryption config, Figure X.
Hostname Unique hostname. Shall match the „Host name“ field in the
Zabbix Host config, Figure Y.
Refresh Checks Each How often does the Agent retrieve the list of active checks
from the Server, in seconds. Default is 10 s.
Send Buffer Each How many check results (items) shall the Agent buffer be-
fore establishing a connection and syncing values from this
buffer to Zabbix server. Default is 5 s.
Max Buffer Size Defines maximum size of the buffer. When this buffer size
is reached, the Agent will sync buffered values immediately.
Default is 100 B.
Continued on next page
8
Zabbix Integration Guide
Item Description
PSK Identity Pre-shared key identity string. Shall match the „PSK iden-
tity“ field in the Zabbix Encryption config, Figure X. The
same PSK is used for both passive and active checks.
Pre-Shared Key (PSK) Pre-shared key to be used. Shall match the „PSK“ field in
the Zabbix Encryption config, Figure X.
CA Certificate CA certificate chain for the authority that issued the Zabbix
server certificates.
Local Certificate Certificate of the router, corresponding to the private key.
The purpose must include „client autentication“. When gen-
erated by OpenSSL, the „extendedKeyUsage = clientAuth“
must be set. The CA certificate of the authority that issued
this certificate must be included in the TLSCAFile in the
server configuration.
Local Private Key Private key of the router. The same private key and certifi-
cates are used for both passive and active checks.
Accept Cert Issuer Allowed server certificate issuer. When specified, shall
match the server certificate.
Accept Cert Subject Allowed server certificate subject. When specified, shall
match the server certificate.
Table 3: Zabbix Agent Configuration, Connectivity Fields
• The „Host name“ in the server config shall match the „Hostname“ in the Agent configu-
ration.
• The monitoring interfaces (protocols) need to be explicitly listed and the router IP address
or DNS name shall be specified.
The Encryption tab shall match the Agent configuration described above.
• The „Connections to host“ in the server config shall match the Accept unencrypted,
Accept Pre-Shared Key (PSK) and Accept certificate fields.
• The „Connection from host“ in the server config shall match the Encrypt Connection in
the Agent config.
• The PSK and its identity (if used) shall also match.
9
Zabbix Integration Guide
To use the TLS certificates, the Zabbix server needs its own certificates (TLSCAFile, TLSCert-
File and TLSKeyFile) as described in the Zabbix Manual. See https://www.zabbix.com/
documentation/current/manual/encryption/using_certificates
The purpose of the certificate must include „server autentication“. When generated by
OpenSSL, the „extendedKeyUsage = serverAuth“ must be set.
10
Zabbix Integration Guide
Please don’t create unnecessary load on the router and avoid using too many metrics.
The following (passive) Agent templates can be used with Advantech cellular routers (in-
dentation shows nested templates):
11
Zabbix Integration Guide
Item Description
Custom Key Key of a Zabbix item.
Command Command to execute, with optional arguments. This must
be a single command on a single line. The command will
be executed and a first line of the textual output (stdout) will
be used as a value.
Timeout Limits computation time of one check. Default 3 s.
Table 5: Zabbix Agent Configuration, Custom Keys
The Command field supports only a limited set of characters: double-quotes (“) are not
allowed and dollar signs “$” have to be prefixed with a backslash “\$”. If you need to
build a more complex check, please create a shell script and use the Command field to
trigger it.
12
Zabbix Integration Guide
Zabbix documentation also indicates which of the items are supported on various plat-
forms: https://www.zabbix.com/documentation/current/manual/appendix/items/supported_
by_platform
The following table complements that information and explains which of the standard agent
items are supported on Advantech cellular routers.
13
Zabbix Integration Guide
14
Zabbix Integration Guide
15
Zabbix Integration Guide
In addition to the above, the following Advantech specific items are supported:
16
Zabbix Integration Guide
4. Licenses
Summarizes Open-Source Software (OSS) licenses used by this module.
Figure 6: Licenses
17
Zabbix Integration Guide
5. Related Documents
[1] Advantech Czech: Remote Monitoring Application Note
[2] Advantech Czech: Configuration Manuals
[3] Advantech Czech: SNMP OID Application Note
18