mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
device: Added support for ArbOS (#8055)
This commit is contained in:
committed by
Neil Lathwood
parent
9a0b06e4de
commit
77e192208a
20
includes/polling/os/arbos.inc.php
Normal file
20
includes/polling/os/arbos.inc.php
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user