mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@ -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']))
|
||||
|
8
includes/discovery/os/hp.inc.php
Normal file
8
includes/discovery/os/hp.inc.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$string)) { $os = "hp"; }
|
||||
}
|
||||
|
||||
?>
|
6
includes/polling/os/hp.inc.php
Normal file
6
includes/polling/os/hp.inc.php
Normal 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));
|
||||
|
||||
?>
|
Reference in New Issue
Block a user