Ad Widget

Collapse

Zabbix 5.4 agent2 + modbus gives unsupported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vomus
    Junior Member
    • Aug 2021
    • 4

    #1

    Zabbix 5.4 agent2 + modbus gives unsupported

    Hi!
    I just compiled agent 2 from sources and tried to pull some modbus data but it says that Modbus is unsupported. Pulling data with mbpoll works fine:

    Code:
    [serge@veles Мониторинг_СЭС]$ mbpoll -q -0 -1 -a 10 -r 122 -t 4:int16 10.161.0.25
    -- Polling slave 10...
    [122]:  1034
    
    [root@veles Мониторинг_СЭС]# zabbix_agent2 --test "modbus.get[Safianovo,,,122,1,int16,le,0]"
    modbus.get[Safianovo,,,122,1,int16,le,0]      [m|ZBX_NOTSUPPORTED] [Unsupported endpoint format]
    
    [root@veles Мониторинг_СЭС]# cat /usr/local/etc/zabbix_agentd.conf.d/modbus_safianovo.conf  
    Plugins.Modbus.Sessions.Safianovo.Endpoint=tcp://10.161.0.25:502
    Plugins.Modbus.Sessions.Safianovo.SlaveID=10
    Plugins.Modbus.Sessions.Safianovo.Timeout=10
    Is there any error in my setup?
  • vomus
    Junior Member
    • Aug 2021
    • 4

    #2
    Found a solution myself. The config has to go to zabbix_agent2.conf and polling has to explicitly include reading holding register command:
    Code:
    # zabbix_agent2 --test "modbus.get[Safianovo,,3,122,1,int16,be,0]"
    modbus.get[Safianovo,,3,122,1,int16,be,0] [s|1034]

    Comment

    Working...