device: Added support for ArbOS (#8055)

This commit is contained in:
Adam Bishop
2018-01-12 09:02:24 +00:00
committed by Neil Lathwood
parent 9a0b06e4de
commit 77e192208a
11 changed files with 4034 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
use LibreNMS\RRD\RrdDefinition;
$oids = snmp_get_multi($device, 'deviceTotalFlows.0', '-OQUs', 'PEAKFLOW-SP-MIB');
$flows = $oids[0]['deviceTotalFlows'];
if (is_numeric($flows)) {
$rrd_def = RrdDefinition::make()->addDataset('flows', 'GAUGE', 0, 3000000);
$fields = array(
'flows' => $flows,
);
$tags = compact('rrd_def');
data_update($device, 'arbos_flows', $tags, $fields);
$graphs['arbos_flows'] = true;
}