Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: build new Cleanup Options doc #7798

Merged
merged 3 commits into from Nov 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions doc/Support/Cleanup-options.md
@@ -0,0 +1,20 @@
source: Support/Cleanup-options.md

# Cleanup Options
As the number of devices starts to grow in your LibreNMS install, such as the database RRD files, event log, Syslog, system performance and timing logs etc. Your LibreNMS install could become quite large so it becomes necessary to clean up those entries. With Cleanup Options, you can keep in crontrol.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This first sentence doesn't make sense. Did you mean:

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.


These options rely on ```daily.sh``` running from cron as per the installation instructions.

Cleanup Options are set in ```config.php```

```php
$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
```
These options will ensure data within LibreNMS over X days old is automatically purged. You can alter these individually, values are in days.

**NOTE**: Please be aware that ```$config['rrd_purge']``` is NOT set by default. This option will remove any old data within the rrd directory automatically - only enable this if you are comfortable with that happening.
1 change: 1 addition & 0 deletions mkdocs.yml
Expand Up @@ -68,6 +68,7 @@ pages:
- Extensions/IRC-Bot-Extensions.md
- Extensions/SNMP-Proxy.md
- Extensions/SNMP-Trap-Handler.md
- Support/Cleanup-options.md
- 6. 3rd Party Integration:
- Extensions/Graylog.md
- Nagios Plugins: Extensions/Services.md
Expand Down