initial commit

master
Ariel Antigua 2018-08-23 11:25:23 -04:00
parent 51eb012777
commit b3745c45d0
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
use LibreNMS\RRD\RrdDefinition;
$requests = snmp_get($device, 'atswatts');
if (is_numeric($requests)) {
$rrd_def = RrdDefinition::make()->addDataset('requests', 'GAUGE', 0);
$fields = array(
'requests' => $requests,
);
$tags = compact('rrd_def');
data_update($device, 'atswatts', $tags, $fields);
$graphs['atswatts'] = true;
}