{"id":5601,"date":"2024-02-05T11:32:42","date_gmt":"2024-02-05T17:32:42","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5601"},"modified":"2024-02-28T10:24:25","modified_gmt":"2024-02-28T16:24:25","slug":"librenms-error-sock-rrd_fetch_r-failed","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-error-sock-rrd_fetch_r-failed\/","title":{"rendered":"LibreNMS Error &#8220;.sock: rrd_fetch_r failed:&#8221;"},"content":{"rendered":"\n<p>The following error showed up after adding a new device to LibreNMS.  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.sock:rrd_fetch_r failed: <\/pre>\n\n\n\n<p>It was not displaying any graph data, but the device was up and connected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"487\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image.png\" alt=\"\" class=\"wp-image-5602\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image.png 818w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image-300x179.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image-768x457.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2024\/02\/image-500x298.png 500w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/a><\/figure>\n\n\n\n<p>Looks like the error is SELinux related.  You can fix the error by resetting the security context with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo restorecon -RFv \/opt\/librenms<\/pre>\n\n\n\n<p>If that does not work, try running all the following<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Running the following commands will fix the issue most of the time:\n\nsudo chown -R librenms:librenms '\/opt\/librenms'\n\nsudo setfacl -d -m g::rwx \/opt\/librenms\/bootstrap\/cache \/opt\/librenms\/storage \/opt\/librenms\/logs \/opt\/librenms\/rrd\n\nsudo chmod -R ug=rwX \/opt\/librenms\/bootstrap\/cache \/opt\/librenms\/storage \/opt\/librenms\/logs \/opt\/librenms\/rrd\n\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/opt\/librenms\/bootstrap\/cache(\/.*)?'\n\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/opt\/librenms\/storage(\/.*)?'\n\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/opt\/librenms\/logs(\/.*)?'\n\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/opt\/librenms\/rrd(\/.*)?'\n\nsudo restorecon -RFv \/opt\/librenms<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following error showed up after adding a new device to LibreNMS. .sock:rrd_fetch_r failed: It was not displaying any graph data, but the device was up and connected. Looks like the error is SELinux related. You can fix the error &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-error-sock-rrd_fetch_r-failed\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352],"tags":[655,353,389,1638,719,207],"class_list":["post-5601","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-error","tag-librenms","tag-nms","tag-restorecon","tag-rrd","tag-selinux"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5601","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=5601"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5601\/revisions"}],"predecessor-version":[{"id":5733,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5601\/revisions\/5733"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}