Hello everyone!
So I installed a DS18B20 tempsensor on my RPi a few monts ago. And every now and then the sensor gets deleted from LibreNMS, without me doing anything. The sensor is working when I run a python script:
python tempsensor.py
29/03/23@11:09:13 - 4.3 C
29/03/23@11:09:16 - 4.3 C
29/03/23@11:09:19 - 4.3 C
29/03/23@11:09:22 - 4.4 C
29/03/23@11:09:25 - 4.4 C
But today when I look at the RPi on LibreNMS I noticed this message:
2023-03-29 06:33:11 Sensor Deleted: temperature lmsensors 2 w1_slave_virtual-0:temp1
what causes the deletion?
To re-add the sensor I run this cronjob every hour:
0 * * * * /opt/librenms/scripts/github-apply 9740
0 * * * * /opt/librenms/discovery.php -h 6
And this will work only now and then as well.
PS: I have posted about this in the past I know, but did not get any traction.