Added basic netgear detection

This commit is contained in:
laf
2015-05-08 19:34:24 +01:00
parent bed7c08ae2
commit 606c81d023
3 changed files with 25 additions and 0 deletions

View File

@ -434,6 +434,19 @@ $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";
$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";
# 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']);