mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
zte zxr10 support from devolish
git-svn-id: http://www.observium.org/svn/observer/trunk@2750 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
BIN
html/images/os/zte.png
Normal file
BIN
html/images/os/zte.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 848 B |
8
includes/discovery/os/zxr10.inc.php
Normal file
8
includes/discovery/os/zxr10.inc.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^ZXR10/", $sysDescr)) { $os = "zxr10"; }
|
||||
}
|
||||
|
||||
?>
|
9
includes/polling/os/zxr10.inc.php
Normal file
9
includes/polling/os/zxr10.inc.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
list($version) = explode(',', $poll_device['sysDescr']);
|
||||
|
||||
preg_match('/Version V(\S+) (.+) Software,/', $poll_device['sysDescr'], $matches);
|
||||
|
||||
$hardware = $matches[2];
|
||||
|
||||
?>
|
@ -268,6 +268,14 @@ $config['os'][$os]['text'] = "Huawei VRP";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['icon'] = "huawei";
|
||||
|
||||
## ZTE
|
||||
|
||||
$os = "zxr10";
|
||||
$config['os'][$os]['group'] = "zxr10";
|
||||
$config['os'][$os]['text'] = "ZTE ZXR10";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['icon'] = "zte";
|
||||
|
||||
# Juniper
|
||||
|
||||
$os = "junos";
|
||||
|
Reference in New Issue
Block a user