Ad Widget

Collapse

I need help implementing libzbxmodbus module

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • laslo
    Junior Member
    • Nov 2018
    • 1

    #1

    I need help implementing libzbxmodbus module

    Good Day,

    My zabbix version is 3.0.4 and is running on a linux server.
    I have a circuit analyzer that communicates using modbus and I want to retrieve the data using zabbix (I use a USB adapter to communicate the Modbus signal to the linux server). I installed libzbxmodbus according to the guide in https://github.com/v-zhuravlev/libzbxmodbus .
    The information in my circuit analyzer is stored in blocks of 2 registers, so if a I want (for example) to know the tension in L1 line I have to check the register 00 to 01 and I should receive 220.

    In order to try this I execute zabbix_get -s 127.0.0.1 -k'modbus_read["/dev/ttyUSB0 N 8 1",1,0,4,I,0]' and i get 3850577681549426688

    I think that my problem is that I'm checking from the register 0 to the last.
    My question is:
    How do i establish a block to read?



Working...