Skip to content

vtacquet/agent_modbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

agent_modbus

agent_modbus is a plugin for checkmk to poll a tcp modbus system, this is an update to my 1.0 version from 2013 (now adding modbus slave as a third parameter)

Dependencies

apt install g++-multilib pkg-config libmodbus-dev

Build

g++ -Wall -I/usr/include/modbus -L/usr/lib/x86_64-linux-gnu agent_modbus.cpp -lmodbus -o agent_modbus

Usage

agent_modbus - Vincent Tacquet - 2024 - [email protected]
version 2.1

usage:   agent_modbus <host ip> <host port> <slave> <address:#words(1 or 2):counter|gauge:name> (<address:#words(1 or 2):counter|gauge:name>) ...
example: agent_modbus 192.168.0.1 502 3 856:2:counter:active_energy 790:2:gauge:active_power

Example

./agent_modbus 192.168.1.74 502 3 30813:2:gauge:watt 30783:2:gauge:voltage
<<<modbus_value>>>
30813 1031 gauge watt
30783 22871 gauge voltage

About

modbus agent for check_mk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages