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:
| 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=20Note 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: