Removing spikes - Script not working

So I got this temp sensor that went to about 4 million celcius the other day. And it’s suppose to be around 0 degree celcius. So I need to fix the spikes.

So I have tried to run the script provided with librenms, but it does not seem to do anything. Been running it like 50 times now.

./scripts/removespikes.php --rrdfile=/opt/librenms/rrd/192.168.1.50/sensor-temperature-lmsensors-2.rrd
PHP Warning:  Undefined variable $config in /opt/librenms/scripts/removespikes.php on line 197
PHP Warning:  Trying to access array offset on value of type null in /opt/librenms/scripts/removespikes.php on line 197
NOTE: Creating XML file '/tmp/sensor-temperature-lmsensors-2.dump.504641971' from '/opt/librenms/rrd/192.168.1.50/sensor-temperature-lmsensors-2.rrd'
NOTE: Searching for Spikes in XML file '/tmp/sensor-temperature-lmsensors-2.dump.504641971'
NOTE: Backing Up '/opt/librenms/rrd/192.168.1.50/sensor-temperature-lmsensors-2.rrd' to '/tmp/sensor-temperature-lmsensors-2.rrd.504641971'
NOTE: Re-Importing '/tmp/sensor-temperature-lmsensors-2.dump.504641971' to '/opt/librenms/rrd/192.168.1.50/sensor-temperature-lmsensors-2.rrd'

I’m willing to delete the rrd-files and start all over, but I don’t even know how to do this the correct way. Can I just delete the sensor-temperature-lmsensors-2.rrd-file and re-discover the host?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.