mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add detection of HP V1910 switches
This commit is contained in:
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 (strstr($sysDescr, "HP V1910-")) { $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
|
||||
$version = substr($poll_device['sysDescr'], strrpos($poll_device['sysDescr'], ' ') + 1);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user