Difference between revisions of "Plugin:Modbus"

From collectd Wiki
Jump to: navigation, search
(in development → supported.)
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
   | FirstVersion={{Version|4.10}}
 
   | FirstVersion={{Version|4.10}}
 
   | Copyright=''2010'' noris network AG
 
   | Copyright=''2010'' noris network AG
   | License={{GPLv2}}
+
   | License={{GPLv2}} ([[version 4.10|v4.10]])<br />{{LGPLv21}} (since [[version 5.0|v5.0]])
 
   | Manpage={{Manpage|collectd.conf|5|plugin_modbus}}
 
   | Manpage={{Manpage|collectd.conf|5|plugin_modbus}}
 
}}
 
}}
Line 48: Line 48:
 
== Dependencies ==
 
== Dependencies ==
  
* [https://launchpad.net/libmodbus libmodbus]
+
* [http://libmodbus.org/ libmodbus]
 +
 
 +
[[Category:Plugins]]
 +
{{DEFAULTSORT:Modbus}}

Latest revision as of 01:31, 12 March 2020

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.

Synopsis

<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 "192.168.0.42"
   Port    "502"
   Interval 60
   
   <Slave 1>
     Instance "power-supply"
     Collect  "voltage-input-1"
     Collect  "voltage-input-2"
   </Slave>
 </Host>
</Plugin>

Example Graphs

None yet. Add one now!

Dependencies