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