From caf1cd37078616668de7f5a76a437bdabb29a4da Mon Sep 17 00:00:00 2001 From: jonasblomq Date: Wed, 20 May 2020 16:09:23 +0300 Subject: [PATCH] Update Fast-Ping-Check.md (#11645) Added stopping and starting RRDCached during the change of the rrd files step. This will prevent data loss and corruption of the rrd files. --- doc/Extensions/Fast-Ping-Check.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/Extensions/Fast-Ping-Check.md b/doc/Extensions/Fast-Ping-Check.md index d91a3283a0..852c4763e7 100644 --- a/doc/Extensions/Fast-Ping-Check.md +++ b/doc/Extensions/Fast-Ping-Check.md @@ -20,26 +20,33 @@ Collection](../Alerting/Rules.md#alert-rules-collection). ## Setting the ping check to 1 minute -1: Change the ping_rrd_step setting in config.php +1: If you are using [RRDCached](http://docs.librenms.org/Extensions/RRDCached/), stop the service. + + - This will flush all pending writes so that the rrdstep.php script can change the steps. + +2: Change the ping_rrd_step setting in config.php ``` $config['ping_rrd_step'] = 60; ``` -2: Update the rrd files to change the step (step is hardcoded at file +3: Update the rrd files to change the step (step is hardcoded at file creation in rrd files) ``` ./scripts/rrdstep.php -h all ``` -3: Add the following line to /etc/cron.d/librenms to allow 1 minute +4: Add the following line to /etc/cron.d/librenms to allow 1 minute ping checks ``` * * * * * librenms /opt/librenms/ping.php >> /dev/null 2>&1 ``` +5: If applicable: Start the [RRDCached](http://docs.librenms.org/Extensions/RRDCached/) service + + **NOTE**: If you are using distributed pollers you can restrict a poller to a group by appending `-g` to the cron entry. Alternatively, you should only run ping.php on a single node.