mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Testing EdgeOS support
This commit is contained in:
@@ -46,6 +46,17 @@ $config['os'][$os]['over'][1]['text'] = "Processor Usage";
|
||||
$config['os'][$os]['over'][2]['graph'] = "device_ucd_memory";
|
||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||
|
||||
$os = "edgeos";
|
||||
$config['os'][$os]['text'] = "EdgeOS";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||
$config['os'][$os]['over'][1]['graph'] = "device_processor";
|
||||
$config['os'][$os]['over'][1]['text'] = "Processor Usage";
|
||||
$config['os'][$os]['over'][2]['graph'] = "device_ucd_memory";
|
||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||
|
||||
// Linux-based OSes here please.
|
||||
|
||||
$os = "linux";
|
||||
|
||||
9
includes/discovery/os/edgeos.inc.php
Normal file
9
includes/discovery/os/edgeos.inc.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (preg_match("/^EdgeOS/", $sysDescr)) {
|
||||
$os = "edgeos";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
8
includes/polling/os/edgeos.inc.php
Normal file
8
includes/polling/os/edgeos.inc.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
# Version is second word in sysDescr
|
||||
list(,$version) = explode(" ", $device['sysDescr']);
|
||||
|
||||
$features = "";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user