From 48e46c1ea23b8188053b98196f9f3a627e9e0afb Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 12 Aug 2012 16:53:00 +0200 Subject: plugin: add snmp plugin This is a very basic SNMP plugin. --- plugin/snmp.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugin/snmp.php (limited to 'plugin') diff --git a/plugin/snmp.php b/plugin/snmp.php new file mode 100644 index 0000000..8f3260d --- /dev/null +++ b/plugin/snmp.php @@ -0,0 +1,19 @@ +width = $width; +$obj->heigth = $heigth; + +$obj->rrd_title = sprintf('SNMP: %s (%s)', $obj->args['type'], $obj->args['tinstance']); +$obj->rrd_format = '%5.1lf%s'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); + -- cgit v1.1