From 932581d0332a365b0cc2c331d6d301c31871c668 Mon Sep 17 00:00:00 2001 From: tslytsly Date: Tue, 3 Jan 2017 19:45:33 +0000 Subject: [PATCH] docs: Added section on smokeping and rrdcached use --- doc/Extensions/Smokeping.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/Extensions/Smokeping.md b/doc/Extensions/Smokeping.md index d99188f5d6..4809c8fd03 100644 --- a/doc/Extensions/Smokeping.md +++ b/doc/Extensions/Smokeping.md @@ -141,6 +141,34 @@ Add the following line at the end: Exit and save. +### Smokeping and RRDCached ### + +If you are using the standard smokeping data dir (/opt/smokeping/data) then you may need to alter the rrdcached config slightly. + +In the standard configuration the -B argument may have been used to restrict rrdcached to read only from a single base dir. + + +If this is true, when you try an open one of the smokeping graphs from within LibreNMS you will see something like this error at the end of the rrdcached command: + +```bash +ERROR: rrdcached: /var/lib/smokeping/.rrd: Permission denied +``` + +So you will need to either change the dir in which smokeping saves its rrd files to be the same as the main librenms dir or you can remove the -B argument from the rrdcached config to allow it to read from more than one dir. + +To remove the -B switch: + +```bash +sudo nano /etc/default/rrdcached +``` +then find: + +```bash +BASE_OPTIONS= +``` + +If -B is in the list of arguments delete it. + ### Configure LibreNMS ### ```bash