{"id":2319,"date":"2019-02-26T23:18:38","date_gmt":"2019-02-26T23:18:38","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2319"},"modified":"2019-02-26T23:21:19","modified_gmt":"2019-02-26T23:21:19","slug":"librenms-enable-rrdcached-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-enable-rrdcached-on-centos-7\/","title":{"rendered":"LibreNMS enable RRDCached on CentOS 7"},"content":{"rendered":"\n<p>Commands from https:\/\/docs.librenms.org\/Extensions\/RRDCached\/<\/p>\n\n\n\n<p><strong>Create System Service<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo vi \/etc\/systemd\/system\/rrdcached.service<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[Unit]<br> Description=Data caching daemon for rrdtool<br> After=network.service<br> [Service]<br> Type=forking<br> PIDFile=\/run\/rrdcached.pid<br> ExecStart=\/usr\/bin\/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j \/var\/tmp -l unix:\/run\/rrdcached.sock -t 4 -F -b \/opt\/librenms\/rrd\/<br> [Install]<br> WantedBy=default.target<br><\/pre>\n\n\n\n<p>Save with esc + :wq<\/p>\n\n\n\n<p><strong>Enable rrdcached service on boot up and start the service now<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl enable --now rrdcached.service<\/pre>\n\n\n\n<p><strong>Enable RRDcached in librenms config<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vi \/opt\/librenms\/config.php<\/code><\/pre>\n\n\n\n<p>add\/edit the following line.  If it is commented out, uncomment it<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$config['rrdcached'] = \"unix:\/run\/rrdcached.sock\";<\/pre>\n\n\n\n<p> Save with esc + :wq <\/p>\n\n\n\n<p>Check the disk IO after a little bit to see if it went down.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Commands from https:\/\/docs.librenms.org\/Extensions\/RRDCached\/ Create System Service sudo vi \/etc\/systemd\/system\/rrdcached.service [Unit] Description=Data caching daemon for rrdtool After=network.service [Service] Type=forking PIDFile=\/run\/rrdcached.pid ExecStart=\/usr\/bin\/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j \/var\/tmp -l unix:\/run\/rrdcached.sock -t 4 &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-enable-rrdcached-on-centos-7\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,352,3],"tags":[17,353,134,389],"class_list":["post-2319","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-librenms","category-linux","tag-centos","tag-librenms","tag-monitoring","tag-nms"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":2325,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2319\/revisions\/2325"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}