Commit version 24.12.13800
This commit is contained in:
26
includes/polling/os/privatetech.inc.php
Normal file
26
includes/polling/os/privatetech.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if ($data = snmp_get_oid($device, 'entPhysicalSoftwareRev.1', 'ENTITY-MIB')) {
|
||||
// OP-MEN99216BC (standalone) v7.10.2297
|
||||
$data = explode(' ', $data);
|
||||
|
||||
$hardware = array_shift($data);
|
||||
$version = array_pop($data);
|
||||
$version = ltrim($version, 'v');
|
||||
|
||||
if (!$vendor && str_starts($hardware, ['OP-', 'OL-'])) {
|
||||
$vendor = 'Optilink';
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user