mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add netspire os support * Update netspire.yaml * Change from numerical oid to regular oid and readd poller/discovery modules * Remove mib_dir and change os polling
15 lines
278 B
PHP
15 lines
278 B
PHP
<?php
|
|
|
|
$oids = array (
|
|
'hardware' => 'netspireDeviceModelName.0',
|
|
'serial' => 'netSpireDeviceDeviceSerialNo.0'
|
|
);
|
|
|
|
$data = snmp_get_multi_oid($device, $oids, '-OUQs', 'OACOMMON-MIB');
|
|
|
|
foreach ($oids as $var => $oid) {
|
|
$$var = $data[$oid];
|
|
}
|
|
|
|
unset($data, $oids);
|