mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
Added/Updated collectd information (#9089)
Added more information on how to setup collectd. Noted that the rrd location set in config.php needs to match /etc/collectd.conf and /etc/collectd.d/rrdtool.conf. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
parent
90a0bd656a
commit
fb16560552
@ -448,7 +448,28 @@ Setting `rancid_ignorecomments` will disable showing lines that start with #
|
||||
```php
|
||||
$config['collectd_dir'] = '/var/lib/collectd/rrd';
|
||||
```
|
||||
Specify the location of the collectd rrd files.
|
||||
Specify the location of the collectd rrd files. Note that the location in config.php should be consistent with the location set in /etc/collectd.conf and etc/collectd.d/rrdtool.conf
|
||||
|
||||
```php
|
||||
<Plugin rrdtool>
|
||||
DataDir "/var/lib/collectd/rrd"
|
||||
CreateFilesAsync false
|
||||
CacheTimeout 120
|
||||
CacheFlush 900
|
||||
WritesPerSecond 50
|
||||
</Plugin>
|
||||
```
|
||||
/etc/collectd.conf
|
||||
|
||||
```php
|
||||
LoadPlugin rrdtool
|
||||
<Plugin rrdtool>
|
||||
DataDir "/var/lib/collectd/rrd"
|
||||
CacheTimeout 120
|
||||
CacheFlush 900
|
||||
</Plugin>
|
||||
```
|
||||
/etc/collectd.d/rrdtool.conf
|
||||
|
||||
```php
|
||||
$config['collectd_sock'] = 'unix:///var/run/collectd.sock';
|
||||
|
Loading…
Reference in New Issue
Block a user