{"id":249,"date":"2023-11-08T19:15:13","date_gmt":"2023-11-08T13:15:13","guid":{"rendered":"https:\/\/bytegeeks.net\/blog\/?p=249"},"modified":"2023-11-08T19:15:16","modified_gmt":"2023-11-08T13:15:16","slug":"mikrotik-cacti-plugin-error","status":"publish","type":"post","link":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/","title":{"rendered":"Mikrotik Cacti plugin error"},"content":{"rendered":"\n<p>After installing and doing everything accordingly, the mikrotik cacti plugin didn&#8217;t work? Follow along to resolve the mikrotik cacti plugin error &#8211; <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ERROR PHP ERROR: Uncaught ValueError: Missing format specifier at end of string in \/var\/www\/html\/cacti\/include\/global_languages.php:523 Stack trace: #0 \/var\/www\/html\/cacti\/include\/global_languages.php(523): sprintf() #1 \/var\/www\/html\/cacti\/plugins\/mikrotik\/mikrotik.php(1765): __() #2 \/var\/www\/html\/cacti\/plugins\/mikrotik\/mikrotik.php(50): mikrotik_devices() #3 {main} thrown in file: \/var\/www\/html\/cacti\/include\/global_languages.php on line: 523\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Cause<\/h4>\n\n\n\n<p>You found this error in your cacti log but there is nothing wrong with anything. Sometimes the simplest of things gets overlooked by us because it is just that simple. The reason why you are getting this error is because you forgot to change the ownership of your plugin directory &#8220;mikrotik&#8221; to &#8220;www-data&#8221;. If you know how to change the ownership of directory then go ahead and change it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Solution<\/h4>\n\n\n\n<p>Copy the following commands and paste it in the terminal. However; first you should check whether the directory ownership is actually set to something other than <strong>www-data<\/strong>, to find this out type <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">ls -al<\/mark><\/code> once you cd to the plugins directory<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd \/var\/www\/html\/cacti\/plugins\/\nchown www-data:www-data mikrotik<\/code><\/pre><\/div>\n\n\n\n<p>That is it, now go to your Mikrotik tab in cacti; you should see all the mikrotik devices listed, if not please wait a few minutes for the devices list to populate.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69e88f424e1f3&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full is-style-default wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1909\" height=\"258\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png\" alt=\"\" class=\"wp-image-254\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>After installing and doing everything accordingly, the mikrotik cacti plugin didn&#8217;t work? Follow along to resolve the mikrotik cacti plugin error &#8211; Cause You found this error in your cacti log but there is nothing wrong with anything. Sometimes the simplest of things gets overlooked by us because it is just that simple. The reason [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,18],"tags":[14],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-mikrotik","category-troubleshoot","tag-how-to"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mikrotik Cacti plugin error - ByteGeeks<\/title>\n<meta name=\"description\" content=\"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mikrotik Cacti plugin error - ByteGeeks\" \/>\n<meta property=\"og:description\" content=\"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/\" \/>\n<meta property=\"og:site_name\" content=\"ByteGeeks\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-08T13:15:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-08T13:15:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png\" \/>\n<meta name=\"author\" content=\"Redwan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Redwan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/\",\"url\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/\",\"name\":\"Mikrotik Cacti plugin error - ByteGeeks\",\"isPartOf\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png\",\"datePublished\":\"2023-11-08T13:15:13+00:00\",\"dateModified\":\"2023-11-08T13:15:16+00:00\",\"author\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792\"},\"description\":\"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.\",\"breadcrumb\":{\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage\",\"url\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png\",\"contentUrl\":\"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png\",\"width\":1909,\"height\":258},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bytegeeks.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mikrotik Cacti plugin error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#website\",\"url\":\"https:\/\/bytegeeks.net\/blog\/\",\"name\":\"ByteGeeks\",\"description\":\"Your one-stop shop for everything IT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bytegeeks.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792\",\"name\":\"Redwan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g\",\"caption\":\"Redwan\"},\"description\":\"Just your average IT guy talking about IT stuff.\",\"sameAs\":[\"https:\/\/bytegeeks.net\/blog\"],\"url\":\"https:\/\/bytegeeks.net\/blog\/author\/redmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mikrotik Cacti plugin error - ByteGeeks","description":"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/","og_locale":"en_US","og_type":"article","og_title":"Mikrotik Cacti plugin error - ByteGeeks","og_description":"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.","og_url":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/","og_site_name":"ByteGeeks","article_published_time":"2023-11-08T13:15:13+00:00","article_modified_time":"2023-11-08T13:15:16+00:00","og_image":[{"url":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png","type":"","width":"","height":""}],"author":"Redwan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Redwan","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/","url":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/","name":"Mikrotik Cacti plugin error - ByteGeeks","isPartOf":{"@id":"https:\/\/bytegeeks.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage"},"image":{"@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage"},"thumbnailUrl":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png","datePublished":"2023-11-08T13:15:13+00:00","dateModified":"2023-11-08T13:15:16+00:00","author":{"@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792"},"description":"Mikrotik cacti plugin error solution in two minutes. Follow along or just read the cause and implement the solution youself.","breadcrumb":{"@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#primaryimage","url":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png","contentUrl":"https:\/\/bytegeeks.net\/blog\/wp-content\/uploads\/2023\/11\/Mirotik-Cacti-Plugin-Devices-Tab-e1699443286207.png","width":1909,"height":258},{"@type":"BreadcrumbList","@id":"https:\/\/bytegeeks.net\/blog\/mikrotik-cacti-plugin-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bytegeeks.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Mikrotik Cacti plugin error"}]},{"@type":"WebSite","@id":"https:\/\/bytegeeks.net\/blog\/#website","url":"https:\/\/bytegeeks.net\/blog\/","name":"ByteGeeks","description":"Your one-stop shop for everything IT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bytegeeks.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/419ede240aa968b3bf8202cf9e94e792","name":"Redwan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bytegeeks.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/785ee4165b07a924d3e8538e8fd845bbd1d22e2680c18ebb16aa54890455e008?s=96&d=mm&r=g","caption":"Redwan"},"description":"Just your average IT guy talking about IT stuff.","sameAs":["https:\/\/bytegeeks.net\/blog"],"url":"https:\/\/bytegeeks.net\/blog\/author\/redmin\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":6,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bytegeeks.net\/blog\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}