Testing EdgeOS support

This commit is contained in:
Paul Gear
2014-11-22 20:23:02 +10:00
parent 5196e0c6a4
commit 06780f1003
4 changed files with 28 additions and 0 deletions

View File

@@ -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";

View File

@@ -0,0 +1,9 @@
<?php
if (!$os) {
if (preg_match("/^EdgeOS/", $sysDescr)) {
$os = "edgeos";
}
}
?>

View File

@@ -0,0 +1,8 @@
<?php
# Version is second word in sysDescr
list(,$version) = explode(" ", $device['sysDescr']);
$features = "";
?>