You are viewing documentation for the development version, it may be incomplete.
Join our translation project and help translate Zabbix documentation into your native language.
Table of Contents

5 Modbus plugin

Overview

The configuration file of Zabbix agent 2 is used to configure plugins. These Zabbix agent 2 configuration parameters are supported for operating the Modbus plugin.

It is recommended to specify them in their own configuration file (e.g. modbus.conf) and then use the Include directive for adding this file to the Zabbix agent 2 configuration.

Note that:

  • The default values reflect process defaults, not the values in the shipped configuration files;
  • Values support environment variables;
  • Zabbix supports configuration files only in UTF-8 encoding without BOM;
  • Comments starting with "#" are only supported at the beginning of the line.

Parameters

Parameter Mandatory Range Default Description
Plugins.Modbus.Sessions.<SessionName>.Endpoint no Endpoint is a connection string consisting of a protocol scheme, a host address and a port or serial port name and attributes.
<SessionName> - define name of a session for using in item keys.
Plugins.Modbus.Sessions.<SessionName>.SlaveID no Slave ID of a named session.
<SessionName> - define name of a session for using in item keys.
Example: Plugins.Modbus.Sessions.MB1.SlaveID=20
Note that this named session parameter is checked only if the value provided in the item key slave ID parameter is empty.
Plugins.Modbus.Sessions.<SessionName>.Timeout no Timeout of a named session in seconds.
<SessionName> - define name of a session for using in item keys.
Example: Plugins.Modbus.Sessions.MB1.Timeout=2

If you need to set the request execution timeout (how long to wait for a request to complete before shutting it down), use the item configuration form.

See also: