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.
This commit is contained in:
jonasblomq
2020-05-20 16:09:23 +03:00
committed by GitHub
parent 7aeb3f619c
commit caf1cd3707

View File

@@ -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.