{"id":519,"date":"2021-07-23T12:31:58","date_gmt":"2021-07-23T12:31:58","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/munin-update-failures\/"},"modified":"2021-07-23T12:31:58","modified_gmt":"2021-07-23T12:31:58","slug":"munin-update-failures","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/munin-update-failures\/","title":{"rendered":"Munin Update Failures"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>The Munin cPanel plugin displays information about CPU, Exim, Apache\u00ae, MySQL\u00ae usage, and other information with the <code>rrdtool<\/code> logging system. If Munin fails to update, this document provides the steps to resolve the issue.<\/p>\n<h2 id=\"troubleshooting-munin\">Troubleshooting Munin<\/h2>\n<p>To troubleshoot this problem, perform the following steps:<\/p>\n<h3 id=\"does-munin-run-during-maintenance\">Does Munin run during maintenance<\/h3>\n<p>Confirm that the nightly cron maintenance runs and that a crontab entry for Munin exists.<\/p>\n<p>The <code>crontab -u munin -l<\/code> command should return output that resembles the following: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\"><span style=\"color:#f92672\">*<\/span><span style=\"color:#e6db74\">\/5 * * * * \/<\/span>usr<span style=\"color:#e6db74\">\/local\/c<\/span>panel<span style=\"color:#e6db74\">\/3rdparty\/<\/span>perl<span style=\"color:#e6db74\">\/526\/<\/span>bin<span style=\"color:#f92672\">\/<\/span>munin<span style=\"color:#f92672\">-<\/span>cron<\/code><\/pre>\n<\/div>\n<h3 id=\"confirm-munin-owns-the-files\">Confirm Munin owns the files<\/h3>\n<p>Confirm that <code>munin:munin<\/code> owns the files in the <code>\/var\/lib\/munin<\/code> and <code>\/var\/log\/munin<\/code> directories.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n        If <code>munin:munin<\/code> does <strong>not<\/strong> own the files in the <code>\/var\/log\/munin<\/code> directory, the service will update the log files, but it will <strong>not<\/strong> update the graphs that Munin displays.\n    <\/div>\n<\/div>\n<p>To set the correct ownership, run the following commands:\n<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">chown<\/span> <span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">R<\/span> <span style=\"color:#a6e22e\">munin<\/span>:<span style=\"color:#a6e22e\">munin<\/span> <span style=\"color:#f92672\">\/<\/span><span style=\"color:#66d9ef\">var<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">log<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">munin<\/span>\n<span style=\"color:#a6e22e\">chown<\/span> <span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">R<\/span> <span style=\"color:#a6e22e\">munin<\/span>:<span style=\"color:#a6e22e\">munin<\/span> <span style=\"color:#f92672\">\/<\/span><span style=\"color:#66d9ef\">var<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">lib<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">munin<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<h3 id=\"run-munin-manually\">Run Munin manually<\/h3>\n<p>To run Munin manually, run the <code>sudo -u munin munin-cron<\/code> command.<\/p>\n<h3 id=\"check-the-results\">Check the results<\/h3>\n<p>New entries will appear in the <code>\/var\/log\/munin\/munin-update<\/code> log file with no errors. To update the daily graphs, refresh the Munin interface.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        Munin\u2019s weekly graphs will display updates after the time that you configured in the crontab entry for Munin.\n    <\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview The Munin cPanel plugin displays information about CPU, Exim, Apache\u00ae, MySQL\u00ae usage, and other information with the rrdtool logging system. If Munin fails to update, this document provides the steps to resolve the issue. Troubleshooting Munin To troubleshoot this problem, perform the following steps: Does Munin run during maintenance Confirm that the nightly cron &hellip;<\/p>\n","protected":false},"author":1,"featured_media":520,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/519"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=519"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/520"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}