These modifications are completely unsupported by LibreNMS
--- a/includes/definitions/discovery/geist-watchdog.yaml
+++ b/includes/definitions/discovery/geist-watchdog.yaml
@@ -1,4 +1,4 @@
-mib: GEIST-V4-MIB:GEIST-MIB-V3
+mib: GEIST-V4-MIB
modules:
sensors:
temperature:
@@ -10,11 +10,13 @@ modules:
value: internalTemp
num_oid: '.1.3.6.1.4.1.21239.5.1.2.1.5.{{ $index }}'
descr: internalName
+ index: 'internal.{{ $index }}'
-
oid: tempSensorTable
value: tempSensorTemp
num_oid: '.1.3.6.1.4.1.21239.5.1.4.1.5.{{ $index }}'
descr: tempSensorName
+ index: 'remote.{{ $index }}'
This process will need to be executed on any LibreNMS server that polls devices.
Open the functions.inc.php
file at /opt/librenms/includes/polling/functions.inc.php
vim /opt/librenms/includes/polling/functions.inc.php
Modify the temperature if
statement to do the conversion
From this:
if ($class == 'temperature') {
preg_match('/[\d\.\-]+/', $sensor_value, $temp_response);
if (! empty($temp_response[0])) {
$sensor_value = $temp_response[0];
}
To this:
if ($class == 'temperature') {
preg_match('/[\d\.\-]+/', $sensor_value, $temp_response);
if (! empty($temp_response[0])) {
$sensor_value = ($temp_response[0] * 1.8) + 32;
}
This will cause any future values of $sensor_value
to be the value of $temp_response[0]
multiplied by 1.8, plus 32