Error when running removespikes.php

Hello, I tried to run the removespikes.php script in my librenms.
There are several errors when running this script. Am I using the parameters falsely? Please help me, I really need to get rid of those spikes in my graphs.

[email protected]:/opt/librenms/scripts# php removespikes.php -R=/opt/librenms/rrd/switch03 -M=‘variance’ -A=‘avg’ -S=‘100000’ -P=‘200’
PHP Notice: Undefined variable: config in /opt/librenms/scripts/removespikes.php on line 197
PHP Notice: Trying to access array offset on value of type null in /opt/librenms/scripts/removespikes.php on line 197
NOTE: Creating XML file ‘/tmp/switch03.dump.501940134’ from ‘/opt/librenms/rrd/switch03’
ERROR: mmaping file ‘/opt/librenms/rrd/switch03’: No such device
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /opt/librenms/scripts/removespikes.php on line 292
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /opt/librenms/scripts/removespikes.php on line 470
NOTE: Searching for Spikes in XML file ‘/tmp/switch03.dump.501940134’
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /opt/librenms/scripts/removespikes.php on line 723
[email protected]:/opt/librenms/scripts#

Thankful for any type of help!!

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