Merge pull request #1145 from vitalisator/issue-1140

Added PBN OS Logo
This commit is contained in:
Neil Lathwood
2015-05-29 11:10:44 +01:00
4 changed files with 26 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

+9
View File
@@ -1114,6 +1114,15 @@ $config['os'][$os]['text'] = "Fiberhome";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "fiberhome";
// PBN, Pacific Broadband Networks
$os = "pbn";
$config['os'][$os]['text'] = "PBN";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['ifXmcbc'] = 1;
$config['os'][$os]['over'][0]['graph'] = "device_bits";
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
$config['os'][$os]['icon'] = "pbn";
foreach ($config['os'] as $this_os => $blah)
{
if (isset($config['os'][$this_os]['group']))
+9
View File
@@ -0,0 +1,9 @@
<?php
if (!$os) {
if (preg_match("/^Pacific Broadband Networks/", $sysDescr)) {
$os = "pbn";
}
}
?>
+8
View File
@@ -0,0 +1,8 @@
<?php
if (preg_match('/^Pacific Broadband Networks .+\n.+ Version ([^,]+), .+\n.+\n.+\nSerial num:([^,]+), .+/', $poll_device['sysDescr'], $regexp_result)) {
$version = $regexp_result[1];
$serial = $regexp_result[2];
}
?>