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
@@ -519,6 +519,11 @@ $config['graph_types']['device']['secureplatform_sessions']['section'] = 'firewa
|
||||
$config['graph_types']['device']['secureplatform_sessions']['order'] = 0;
|
||||
$config['graph_types']['device']['secureplatform_sessions']['descr'] = 'Active connections';
|
||||
|
||||
//arbos specific graphs
|
||||
$config['graph_types']['device']['arbos_flows']['section'] = 'graphs';
|
||||
$config['graph_types']['device']['arbos_flows']['order'] = '0';
|
||||
$config['graph_types']['device']['arbos_flows']['descr'] = 'Accumulative flow count per SP device';
|
||||
|
||||
// Device Types
|
||||
$i = 0;
|
||||
$config['device_types'][$i]['text'] = 'Servers';
|
||||
|
14
includes/definitions/arbos.yaml
Normal file
14
includes/definitions/arbos.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
os: arbos
|
||||
text: 'ArbOS'
|
||||
type: network
|
||||
icon: arbor
|
||||
group: arbor
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.9694.1.4
|
||||
mib_dir:
|
||||
- arbornet
|
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