{"id":756,"date":"2017-12-14T10:28:15","date_gmt":"2017-12-14T10:28:15","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=756"},"modified":"2017-12-14T10:33:04","modified_gmt":"2017-12-14T10:33:04","slug":"bacula-plugin","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/bacula-plugin\/","title":{"rendered":"Bacula plugin"},"content":{"rendered":"<p>This plugin uses mysql to fetch the performance metrics from a Bacula server.<\/p>\n<p>To install it:<\/p>\n<ol>\n<li>Verify that your system has mysql installed: $ mysql -V<\/li>\n<li>Download the file &#8220;bacula_plugin&#8221;.<\/li>\n<li>Copy it to your agent plugins directory. F.ex. on my system in &#8220;\/etc\/pandora\/plugins&#8221;.<\/li>\n<li>Make it executable: $ chmod +x \/etc\/pandora\/plugins\/bacula_plugin<\/li>\n<\/ol>\n<p>To use it you need a mysql user, for that I create a user with only select privileges on the bacula catalog database:<\/p>\n<pre>mysql&gt; GRANT SELECT ON (bacula_catalog).* to (user)@localhost identified by '(password)';<\/pre>\n<p>NOTE: Maybe less privileges are needed, but NEVER user the mysql root account.<\/p>\n<p>&nbsp;<br \/>\nThen just call it from the config file of your agent with the following line:<\/p>\n<pre>\"module_plugin bacula_plugin (user) (password) (bacula_catalog)\"<\/pre>\n<p>For more plugin options or change warning and critical levels see its code.<\/p>\n<h2>Module data<\/h2>\n<p>Depends on: mysql<\/p>\n<h2>Files:<\/h2>\n<p><a href=\"\/library\/files_repository\/1363696472.magulinb.baculadir_plugin\">magulinb.baculadir_plugin<\/a>\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin uses mysql to fetch the performance metrics from a Bacula server. To install it: Verify that your system has mysql installed: $ mysql -V Download the file &#8220;bacula_plugin&#8221;. Copy it to your agent plugins directory. F.ex. on my system in &#8220;\/etc\/pandora\/plugins&#8221;. Make it executable: $ chmod +x \/etc\/pandora\/plugins\/bacula_plugin To use it you need [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[41,8],"tags":[171],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/756"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}