initial commit
parent
51eb012777
commit
b3745c45d0
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue