$entry) { // Get the disk temperature full oid $disk_oid = $disk_temperature_oid.$disk_number; // Get the temperature for the disk $disk_temperature = $entry['HdTemperature']; // Getting the disk information (Number and model) $disk_information = $entry['HdDescr'].' '.$entry['HdModel']; // Save the temperature for the disk discover_sensor($valid['sensor'], 'temperature', $device, $disk_oid, $disk_number, 'snmp', $disk_information, '1', '1', null, null, null, null, $disk_temperature); } } }