<style type="text/css">a[data-mtli~="mtli_filesize585MB"]:after {content:" (5.85 MB)"}</style><style type="text/css">a[data-mtli~="mtli_filesize585MB"]:after {content:" (5.85 MB)"}</style>{"id":1761,"date":"2017-12-18T12:25:01","date_gmt":"2017-12-18T12:25:01","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1761"},"modified":"2024-03-05T17:10:17","modified_gmt":"2024-03-05T16:10:17","slug":"amazon-ec2-monitoring-plugin","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/amazon-ec2-monitoring-plugin\/","title":{"rendered":"Amazon EC2 monitoring 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>This specific monitoring uses CloudWatch API to monitor your instances in Amazon EC2 service. You need to have activated the cloudwatch enabled in your instance.\u00a0This remote server plugin is used to get information from your instances using the network plugin server, that means you will need to register the plugin in the server, and make different modules to grab the information of your EC2 servers.<\/p>\n<p>This is an example of the execution:<\/p>\n<pre>.\/ec2_plugin.sh -A AKIAILTVJ3S26GTKAAA -S CgmQ6Dx6f634ed464ca64b4989abf \r\n -i i-9d0b4abf1 -n AWS\/EC2 -m CPUUtilization\r\n<\/pre>\n<p>It will return a % un numeric value of the metric &#8220;CPUUtilization&#8221; in the instance i-9d0b4abf1<\/p>\n<h2>Installation<\/h2>\n<p>To install you will need:<\/p>\n<p>1. To have a running JAVA setup, and now its JAVA home directory. In the Pandora FMS Appliance (Vmware\/Image) is set in \/usr\/<\/p>\n<p>2. Copy this plugin to a path, and set the permissions to 755, and set the base path on the AWS_CLOUDWATCH_HOME variable present in the first lines of the plugin. You need to edit the plugin first lines.<\/p>\n<p>The plugin has several files:<\/p>\n<p>\/ec2_plugin.sh &#8211; Plugin itself<br \/>\n\/bin\/* &#8211; Components of Amazon CloudWatch (Monitoring) Command Line Tools, included in this bundle. This scripts are distributed under the Apache Licence.<\/p>\n<p>Put the whole package on a dir in the server, for example:<\/p>\n<pre>\/usr\/share\/pandora_server\/plugin\/ec2<\/pre>\n<p>And set the AWS_CLOUDWATCH_HOME to \/usr\/share\/pandora_server\/plugin\/ec2<\/p>\n<p>If you have doubts about if it&#8217;s correctly installed, execute directly this command:<\/p>\n<pre>\/usr\/share\/pandora_server\/plugin\/ec2\/mon-cmd --version<\/pre>\n<p>Should returl something like:<\/p>\n<pre>Amazon CloudWatch CLI version 1.0.9.5 (API 2010-08-01)<\/pre>\n<p>If you get the same string, you&#8217;re ready to use the plugin.<\/p>\n<h2>Files<\/h2>\n<p><a href=\"https:\/\/pandorafms.com\/library\/wp-content\/uploads\/2017\/12\/pandora_amazon_ec2_pluginm.tar.gz\" class=\"mtli_attachment mtli_gz\" data-mtli=\"mtli_filesize585MB\">pandora_amazon_ec2_pluginm.tar<\/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 specific monitoring uses CloudWatch API to monitor your instances in Amazon EC2 service. You need to have activated the cloudwatch enabled in your instance.\u00a0This remote [&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\nThis specific monitoring uses CloudWatch API to monitor your instances in Amazon EC2 service. You need to have activated the cloudwatch enabled in your instance.\u00a0This remote server plugin is used to get information from your instances using the network plugin server, that means you will need to register the plugin in the server, and make different modules to grab the information of your EC2 servers.\r\n\r\nThis is an example of the execution:\r\n<pre>.\/ec2_plugin.sh -A AKIAILTVJ3S26GTKAAA -S CgmQ6Dx6f634ed464ca64b4989abf \r\n -i i-9d0b4abf1 -n AWS\/EC2 -m CPUUtilization\r\n<\/pre>\r\nIt will return a % un numeric value of the metric \"CPUUtilization\" in the instance i-9d0b4abf1\r\n<h2>Installation<\/h2>\r\nTo install you will need:\r\n\r\n1. To have a running JAVA setup, and now its JAVA home directory. In the Pandora FMS Appliance (Vmware\/Image) is set in \/usr\/\r\n\r\n2. Copy this plugin to a path, and set the permissions to 755, and set the base path on the AWS_CLOUDWATCH_HOME variable present in the first lines of the plugin. You need to edit the plugin first lines.\r\n\r\nThe plugin has several files:\r\n\r\n\/ec2_plugin.sh - Plugin itself\r\n\/bin\/* - Components of Amazon CloudWatch (Monitoring) Command Line Tools, included in this bundle. This scripts are distributed under the Apache Licence.\r\n\r\nPut the whole package on a dir in the server, for example:\r\n<pre>\/usr\/share\/pandora_server\/plugin\/ec2<\/pre>\r\nAnd set the AWS_CLOUDWATCH_HOME to \/usr\/share\/pandora_server\/plugin\/ec2\r\n\r\nIf you have doubts about if it's correctly installed, execute directly this command:\r\n<pre>\/usr\/share\/pandora_server\/plugin\/ec2\/mon-cmd --version<\/pre>\r\nShould returl something like:\r\n<pre>Amazon CloudWatch CLI version 1.0.9.5 (API 2010-08-01)<\/pre>\r\nIf you get the same string, you're ready to use the plugin.\r\n<h2>Files<\/h2>\r\n<a href=\"https:\/\/pandorafms.com\/library\/wp-content\/uploads\/2017\/12\/pandora_amazon_ec2_pluginm.tar.gz\">pandora_amazon_ec2_pluginm.tar<\/a>","_et_gb_content_width":"","footnotes":""},"categories":[20],"tags":[593,594,592],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1761"}],"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=1761"}],"version-history":[{"count":2,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1761\/revisions"}],"predecessor-version":[{"id":8477,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1761\/revisions\/8477"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}