ATS-Watts/includes/polling/os/atswatts.inc.php

18 lines
378 B
PHP
Raw Normal View History

2018-08-23 11:25:23 -04:00
<?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;
}