2017-11-26 11:37:02 -06:00
|
|
|
source: Support/Cleanup-options.md
|
2018-10-27 23:04:34 +01:00
|
|
|
path: blob/master/doc/
|
2017-11-26 11:37:02 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
# Cleanup Options
|
|
|
|
|
|
|
|
As the number of devices starts to grow in your LibreNMS install, so
|
|
|
|
will things such as the RRD files, MySQL database containing
|
|
|
|
eventlogs, Syslogs and performance data etc. Your LibreNMS install
|
|
|
|
could become quite large so it becomes necessary to clean up those
|
2019-08-07 11:11:36 +02:00
|
|
|
entries. With Cleanup Options, you can stay in control.
|
2017-11-26 11:37:02 -06:00
|
|
|
|
|
|
|
These options rely on ```daily.sh``` running from cron as per the installation instructions.
|
|
|
|
|
|
|
|
Cleanup Options are set in ```config.php```
|
|
|
|
|
|
|
|
```php
|
2019-07-18 21:25:53 -05:00
|
|
|
$config['syslog_purge'] = 30;
|
|
|
|
$config['eventlog_purge'] = 30;
|
|
|
|
$config['authlog_purge'] = 30;
|
|
|
|
$config['perf_times_purge'] = 30;
|
|
|
|
$config['device_perf_purge'] = 7;
|
|
|
|
$config['rrd_purge'] = 90;// Not set by default
|
|
|
|
$config['ports_purge'] = true;// Set to false by default
|
2017-11-26 11:37:02 -06:00
|
|
|
```
|
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
These options will ensure data within LibreNMS over X days old is
|
|
|
|
automatically purged. You can alter these individually, values are in
|
|
|
|
days.
|
2017-12-29 06:04:42 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
**NOTE**: Please be aware that ```$config['rrd_purge']``` is NOT set
|
2019-08-07 11:11:36 +02:00
|
|
|
by default. This option will remove any RRD files that have not been
|
2019-07-18 21:25:53 -05:00
|
|
|
updated for the set amount of days automatically - only enable this if
|
2019-08-07 11:11:36 +02:00
|
|
|
you are comfortable with that happening. (All active RRD files are
|
|
|
|
updated every polling period.)
|
2017-12-29 06:04:42 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
# Ports Purge
|
2017-12-29 06:04:42 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
Over time as you add devices some interfaces will need to be purged as
|
|
|
|
they are set to be ignored or bad interfaces or marked as deleted.
|
2017-12-29 06:04:42 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
You can purge all deleted ports from the WebUI (see below) or by
|
|
|
|
setting `$config['ports_purge'] = true;` in `config.php`
|
2017-12-29 06:04:42 -06:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
In the Web UI Under the Ports Tab in the Nav Bar, Click on "Deleted"
|
|
|
|
then click on "Purge all deleted". This will purge all the ports.
|