Merge pull request #942 from laf/issue-925

Added basic netgear detection
This commit is contained in:
Paul Gear
2015-05-09 07:41:04 +10:00
3 changed files with 21 additions and 0 deletions

View File

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

View File

@ -0,0 +1,5 @@
<?php
if (!$os) {
if (stristr($sysDescr, "ProSafe")) { $os = "netgear"; }
}

View 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']);