mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* EDS support * EDS support * EDS support * EDS support * EDS support (tests) * EDS support * EDS support * Adding DS18B20 sensors * Adding DS18B20 sensors * read tables separatly in precache instead
20 lines
477 B
PHP
20 lines
477 B
PHP
<?php
|
|
|
|
//EDS-MIB::eCompanyName.0 = STRING: "Embedded Data Systems"
|
|
//EDS-MIB::eProductName.0 = STRING: "Ethernet to 1-wire Interface"
|
|
//EDS-MIB::eFirmwareVersion.0 = STRING: "2.10"
|
|
//EDS-MIB::eFirmwareDate.0 = STRING: "May 17 2017"
|
|
|
|
$oids = array (
|
|
'version' => 'eFirmwareVersion.0',
|
|
'hardware' => 'eProductName.0'
|
|
);
|
|
|
|
$data = snmp_get_multi_oid($device, $oids, '-OUQs', 'EDS-MIB');
|
|
|
|
foreach ($oids as $var => $oid) {
|
|
$$var = $data[$oid];
|
|
}
|
|
|
|
unset($data, $oids);
|