mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Testing EdgeOS support
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -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]['graph'] = "device_ucd_memory";
|
||||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
$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.
|
// Linux-based OSes here please.
|
||||||
|
|
||||||
$os = "linux";
|
$os = "linux";
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!$os) {
|
||||||
|
if (preg_match("/^EdgeOS/", $sysDescr)) {
|
||||||
|
$os = "edgeos";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Version is second word in sysDescr
|
||||||
|
list(,$version) = explode(" ", $device['sysDescr']);
|
||||||
|
|
||||||
|
$features = "";
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user