mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #942 from laf/issue-925
Added basic netgear detection
This commit is contained in:
@ -434,6 +434,15 @@ $config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['icon'] = "supermicro";
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
|
||||
// Netgear ProSafe switches
|
||||
$os = "netgear";
|
||||
$config['os'][$os]['text'] = "Netgear ProSafe";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
$config['os'][$os]['bad_if'][] = "cpu";
|
||||
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||
|
||||
# Juniper
|
||||
|
||||
$os = "junos";
|
||||
|
5
includes/discovery/os/netgear.inc.php
Normal file
5
includes/discovery/os/netgear.inc.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (stristr($sysDescr, "ProSafe")) { $os = "netgear"; }
|
||||
}
|
7
includes/polling/os/netgear.inc.php
Normal file
7
includes/polling/os/netgear.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// sysDescr.0 = XS712T ProSafe 12-Port 10 Gigabit Ethernet (10GbE) Smart Switch, 6.1.0.12, B6.1.0.1
|
||||
|
||||
list($hardware, ) = explode(" ", $poll_device['sysDescr']);
|
||||
list(,$version, ) = explode(",", $poll_device['sysDescr']);
|
||||
|
Reference in New Issue
Block a user