mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changed sysDescr SNMP request to built in one.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
echo 'Scanning Avaya IP Office...';
|
||||
|
||||
$sysObjectID = snmp_get($device, 'sysObjectID.0', '-Oqvn');
|
||||
$physDevice = snmp_get($device, 'ENTITY-MIB::entPhysicalDescr.1', '-Oqvn');
|
||||
|
||||
$version = snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Oqvn');
|
||||
$hardware = snmp_get($device, 'ENTITY-MIB::entPhysicalDescr.1', '-Oqvn');
|
||||
if (strstr($physDevice, 'Avaya IP Office')) {
|
||||
$hardware = $physDevice;
|
||||
}
|
||||
|
||||
$version = $poll_device['sysDescr'];
|
||||
|
Reference in New Issue
Block a user