From 51eb0127775fa4738d14599f575b0f086ad5750d Mon Sep 17 00:00:00 2001 From: Ariel Antigua Date: Thu, 23 Aug 2018 11:24:29 -0400 Subject: [PATCH] Initial commit --- .../polling/applications/ats-watts.inc.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 includes/polling/applications/ats-watts.inc.php diff --git a/includes/polling/applications/ats-watts.inc.php b/includes/polling/applications/ats-watts.inc.php new file mode 100644 index 0000000..16e5d1e --- /dev/null +++ b/includes/polling/applications/ats-watts.inc.php @@ -0,0 +1,18 @@ +addDataset('Watts', 'GAUGE', 0); + +$atswatts = snmp_get($device, $oid, $options, $mib); + +$fields = array('Watts' => $atswatts,); + +$tags = array('name' => $name, 'app_id' => $app_id, 'rrd_def' => $rrd_def, 'rrd_name' => $rrd_name); +data_update($device, 'app', $tags, $fields); +update_application($app, $atswatts, $fields, $atswatts); \ No newline at end of file