{"id":1316,"date":"2017-12-15T09:55:55","date_gmt":"2017-12-15T09:55:55","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1316"},"modified":"2024-03-05T12:07:50","modified_gmt":"2024-03-05T11:07:50","slug":"mysql-performance-plugin","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/mysql-performance-plugin\/","title":{"rendered":"MySQL performance plugin"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div class=\"maint-error\">\n  <img decoding=\"async\" src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\"><\/p>\n<p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<\/p>\n<\/div>\n<p><\/p>\n<p class=\"description_pui\">This plugin uses mysql to fetch the performance metrics from a mysql 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;mysql_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\/mysql_plugin<\/li>\n<\/ol>\n<p>To use it you need a mysql user, for that I create a user with only select privileges:<\/p>\n<pre>mysql&gt; GRANT SELECT ON *.* 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>Then just call it from the config file of your agent with the following line:<\/p>\n<pre>\"module_plugin memory_plugin (user) (password)\"<\/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\/1363701408.magulinb.mysql_plugin\" rel=\"nofollow\">mysql_plugin<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important Notice: This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support. This plugin uses mysql to fetch the performance metrics from a mysql server. To install it: Verify that your system has mysql installed: $ mysql -V [&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":"on","_et_pb_old_content":"<div class=\"maint-error\">\r\n  <img src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\">\r\n  <p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<p>\r\n<\/div>\r\n\r\n<br>\r\n\r\n<p class=\"description_pui\">This plugin uses mysql to fetch the performance metrics from a mysql server.<\/p>\r\nTo install it:\r\n<ol>\r\n \t<li>Verify that your system has mysql installed: $ mysql -V<\/li>\r\n \t<li>Download the file \"mysql_plugin\".<\/li>\r\n \t<li>Copy it to your agent plugins directory. F.ex. on my system in \"\/etc\/pandora\/plugins\".<\/li>\r\n \t<li>Make it executable: $ chmod +x \/etc\/pandora\/plugins\/mysql_plugin<\/li>\r\n<\/ol>\r\nTo use it you need a mysql user, for that I create a user with only select privileges:\r\n<pre>mysql> GRANT SELECT ON *.* to (user)@localhost identified by '(password)';<\/pre>\r\nNOTE: Maybe less privileges are needed, but NEVER user the mysql root account.\r\n\r\nThen just call it from the config file of your agent with the following line:\r\n<pre>\"module_plugin memory_plugin (user) (password)\"<\/pre>\r\nFor more plugin options or change warning and critical levels see its code.\r\n<h2>Module data<\/h2>\r\nDepends on: mysql\r\n<h2>Files:<\/h2>\r\n<a href=\"\/library\/files_repository\/1363701408.magulinb.mysql_plugin\" rel=\"nofollow\">mysql_plugin<\/a>","_et_gb_content_width":"","footnotes":""},"categories":[15],"tags":[196,92,432],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1316"}],"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=1316"}],"version-history":[{"count":2,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1316\/revisions"}],"predecessor-version":[{"id":8393,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1316\/revisions\/8393"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}