Ad Widget

Collapse

Modbus TCP problem - illegal data value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deagle
    Junior Member
    • Apr 2023
    • 3

    #1

    Modbus TCP problem - illegal data value

    Hello,
    I have Zabbix version:

    Code:
    # zabbix_server -V
    zabbix_server (Zabbix) 6.0.15
    Revision 287da69c170 31 March 2023, compilation time: Mar 31 2023 11:54:32

    I need to add modbus TCP device to Zabbix.

    When I using mbpoll, I get correct data:

    Code:
    # mbpoll -m tcp 10.10.11.110 -a 255 -t 4:float -r 2018 -1 -B
    mbpoll 1.0-0 - 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 = [255]
                            start reference = 2018, count = 1
    Communication.........: 10.10.11.110, port 502, t/o 1.00 s, poll rate 1000 ms
    Data type.............: 32-bit float (big endian), output (holding) register table
    
    -- Polling slave 255...
    [2018]:         230
    But if I try to do the same with Zabbix I get:
    Code:
    # zabbix_agent2 --test "modbus.get[tcp://10.10.11.110:502,255,3,2018,2,float,be,0]"
    modbus.get[tcp://10.10.11.110:502,255,3,2018,2,float,be,0][m|ZBX_NOTSUPPORTED] [Unable to read: modbus: exception '3' (illegal data value), function '131']
    Does anyone know what the issue is and how to fix it?​
  • deagle
    Junior Member
    • Apr 2023
    • 3

    #2
    I did update Zabbix to version 6.0.16 but nothing changed.

    Comment

    • deagle
      Junior Member
      • Apr 2023
      • 3

      #3
      Also tried with Zabbix version 6.4 but the result is the same.
      Last edited by deagle; 14-04-2023, 09:22.

      Comment

      • buoemis
        Junior Member
        • May 2024
        • 1

        #4
        Escribe lo siguiente:

        write this:

        zabbix_agent2 --test "modbus.get[tcp://10.10.11.110:502,255,3,2018,2,,,0]"

        Comment

        • nczaw
          Member
          • Sep 2023
          • 31

          #5
          hi all anyone can fix this issue ?

          Comment

          Working...