Difference between revisions of "Plugin:Modbus"

From collectd Wiki
Jump to: navigation, search
(Update license.)
(Dependencies: Update URL.)
Line 48: Line 48:
== Dependencies ==
== Dependencies ==
* [https://launchpad.net/libmodbus libmodbus]
* [http://libmodbus.org/ libmodbus]

Revision as of 13:16, 6 January 2011

Modbus plugin
Type: read
Callbacks: config, read, shutdown
Status: supported
First version: 4.10
Copyright: 2010 noris network AG
License: GPLv2 (v4.10)
LGPLv2.1 (since v5.0)
Manpage: collectd.conf(5)
List of Plugins

The Modbus plugin connects to a Modbus "slave" via Modbus/TCP and reads register values. It supports reading single registers (unsigned 16 bit values), large integer values (unsigned 32 bit values) and floating point values (two registers interpreted as IEEE floats in big endian notation).

This plugin is a generic plugin, i.e. it cannot work without configuration, because there is no reasonable default behavior. Please read the Plugin modbus section of the collectd.conf(5) manual page for an in-depth description of the plugin's configuration.


<Plugin modbus>
   RegisterBase 0
   RegisterType float
   Type voltage
   Instance "input-1"
   RegisterBase 2
   RegisterType float
   Type voltage
   Instance "input-2"
 <Host "modbus.example.com">
   Address ""
   Port    "502"
   Interval 60
   <Slave 1>
     Instance "power-supply"
     Collect  "voltage-input-1"
     Collect  "voltage-input-2"

Example Graphs

None yet. Add one now!