Merge pull request #570 from KFleshman/issue-569

Issue 569
This commit is contained in:
Neil Lathwood
2015-03-09 19:28:50 +00:00
3 changed files with 20 additions and 0 deletions

View File

@ -982,6 +982,12 @@ $config['os'][$os]['text'] = "Hikvision";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "hikvision";
$os = "hp";
$config['os'][$os]['text'] = "HP";
$config['os'][$os]['over'][0]['graph'] = "device_bits";
$config['os'][$os]['over'][0]['text'] = "Traffic";
$config['os'][$os]['type'] = "network";
foreach ($config['os'] as $this_os => $blah)
{
if (isset($config['os'][$this_os]['group']))

View File

@ -0,0 +1,8 @@
<?php
if (!$os)
{
if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$string)) { $os = "hp"; }
}
?>

View File

@ -0,0 +1,6 @@
<?php
# Version is the last word in the sysDescr's first line
list($version) = explode("\r", substr($poll_device['sysDescr'], strpos($poll_device['sysDescr'], "Release")+8));
?>