mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added Basic OS support for Benu * Benu OS take 2 * Benu OS take 3 * Benu round 4 - this time for real * added benu sensors * reamed to benuos, renamed mibs, sensor rewrite pending * upated sensors to use snmp_get_multi * rename yaml * rename yaml * updated mempool discover to use multi get, fixed whitepaces, removed old commented out code from polling * changed detection from sysDescr to sysObjectId * Update benuos.yaml * Update benuos.inc.php * Update benuos.inc.php * Update benuos.inc.php * Update benuos.inc.php
17 lines
709 B
PHP
17 lines
709 B
PHP
<?php
|
|
|
|
// Adapated from Bluecoat sgos discovery
|
|
|
|
echo 'Benu Sensors ';
|
|
|
|
$data = snmp_get_multi($device, 'benuSensorName.1.1 benuSensorName.1.2 benuSensorName.1.3 benuSensorValue.1.1 benuSensorValue.1.2 benuSensorValue.1.3', '-OQUs', 'BENU-CHASSIS-MIB');
|
|
|
|
$sensor_index = 0;
|
|
for ($index = 1; $index <= 3; $index++) { //Benu Temp Sensors are index 1 thru 3
|
|
$sensor_oid = ".1.3.6.1.4.1.39406.1.1.1.4.1.1.5.1.$index";
|
|
$descr = $data["1.$index"]['benuSensorName'];
|
|
$current = $data["1.$index"]['benuSensorValue'];
|
|
discover_sensor($valid['sensor'], 'temparature', $device, $sensor_oid, $sensor_index, 'benuos', $descr, '1', '1', null, null, null, null, $current);
|
|
$sensor_index++;
|
|
}//end loop
|