Hi!
I am trying to collect a few data over Modbus and I have to get them from input registers (function code 4):
However, when I do it with zabbix agent, it shows me a function error
Is it a bug?
I am trying to collect a few data over Modbus and I have to get them from input registers (function code 4):
[root@veles tmp]# mbpoll -0 -1 -a 201 -r 76 -t 4:int 10.161.0.25
mbpoll 1.4-25 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: Modbus TCP
Slave configuration...: address = [201]
start reference = 76, count = 1
Communication.........: 10.161.0.25, port 502, t/o 1.00 s, poll rate 1000 ms
Data type.............: 32-bit integer (little endian), output (holding) register table
-- Polling slave 201...
[76]: 226610
mbpoll 1.4-25 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: Modbus TCP
Slave configuration...: address = [201]
start reference = 76, count = 1
Communication.........: 10.161.0.25, port 502, t/o 1.00 s, poll rate 1000 ms
Data type.............: 32-bit integer (little endian), output (holding) register table
-- Polling slave 201...
[76]: 226610
[root@veles tmp]# /usr/sbin/zabbix_agent2 --test "modbus.get[tcp://10.161.0.25:502,201,4,76,1,int32,le,0]"
modbus.get[tcp://10.161.0.25:502,201,4,76,1,int32,le,0][m|ZBX_NOTSUPPORTED] [Unable to read: modbus: exception '1' (illegal function), function '132']
modbus.get[tcp://10.161.0.25:502,201,4,76,1,int32,le,0][m|ZBX_NOTSUPPORTED] [Unable to read: modbus: exception '1' (illegal function), function '132']