Skip to content

Commit

Permalink
Merge pull request #352 from paulgear/master
Browse files Browse the repository at this point in the history
Basic recognition of EdgeOS
  • Loading branch information
laf committed Nov 23, 2014
2 parents c96b9f5 + 1f9e199 commit ab2b1e2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Binary file added html/images/os/edgeos.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions includes/definitions.inc.php
Expand Up @@ -46,6 +46,17 @@
$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";
Expand Down
9 changes: 9 additions & 0 deletions includes/discovery/os/edgeos.inc.php
@@ -0,0 +1,9 @@
<?php

if (!$os) {
if (preg_match("/^EdgeOS/", $sysDescr)) {
$os = "edgeos";
}
}

?>
8 changes: 8 additions & 0 deletions includes/polling/os/edgeos.inc.php
@@ -0,0 +1,8 @@
<?php

# Version is second word in sysDescr
list(,$version) = explode(" ", $device['sysDescr']);

$features = "";

?>

0 comments on commit ab2b1e2

Please sign in to comment.