1<?php 2/* 3 * LibreNMS 4 * 5 * Copyright (c) 2017 Martin Zatloukal <slezi2@pvfree.net> 6 * This program is free software: you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation, either version 3 of the License, or (at your 9 * option) any later version. Please see LICENSE.txt at the top level of 10 * the source code distribution for details. 11 */ 12 13d_echo('RAY'); 14$oid = '.1.3.6.1.4.1.33555.1.1.4.2'; 15$index = 0; 16$sensor_type = ' temperatureRadio'; 17$descr = 'Internal Temp'; 18$divisor = 100; 19$temperature = (snmp_get($device, $oid, '-Oqv', 'RAY-MIB') / $divisor); 20if (is_numeric($temperature)) { 21 discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, $sensor_type, $descr, $divisor, null, null, null, null, null, $temperature); 22} 23