{"id":18831,"date":"2021-05-07T11:08:00","date_gmt":"2021-05-07T09:08:00","guid":{"rendered":"https:\/\/www.sysbus.eu\/?p=18831"},"modified":"2021-05-03T11:12:44","modified_gmt":"2021-05-03T09:12:44","slug":"amazon-cloudwatch-agent-tutorial-zur-installation-auf-on-premises-servern","status":"publish","type":"post","link":"https:\/\/www.sysbus.eu\/?p=18831","title":{"rendered":"Amazon CloudWatch Agent: Tutorial zur Installation auf On-Premises-Servern"},"content":{"rendered":"\n<p>Zur Sammlung von Metriken und Log-Eintr\u00e4gen wird \u00fcblicherweise der Amazon CloudWatch Agent verwendet. Mit ihm lassen sich Informationen in hybriden Umgebungen erfassen, selbst wenn diese nicht auf AWS-verwalteten Servern liegen. Hier erkl\u00e4ren wir Ihnen Schritt f\u00fcr Schritt, wie Sie das Tool auf Linux- oder Windows-basierten On-Premises-Servern installieren k\u00f6nnen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1-1024x576.png\" alt=\"\" class=\"wp-image-18832\" srcset=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1-1024x576.png 1024w, https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1-300x169.png 300w, https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1-768x432.png 768w, https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_1.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Bild 1 (Screenshot: AWS)<\/figcaption><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p>Im Folgenden wird der Profilname AmazonCloudWatchAgent verwendet. Sie k\u00f6nnen jedoch auch dem Profil einen anderen Namen zuweisen und ihn als Wert f\u00fcr shared_credential_profile&nbsp;in der Datei&nbsp;common-config.toml festlegen.<\/p>\n\n\n\n<p><strong>Schritt 1: <\/strong>Laden Sie das CloudWatch Agent Paket herunter.<\/p>\n\n\n\n<p><strong>Download mithilfe des SSM Agent<br><\/strong>Hierf\u00fcr m\u00fcssen Sie Ihren On-Premises-Server mit dem Amazon EC2 Systems Manager registrieren. Ist er bereits registriert, aktualisieren Sie den SSM Agent.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>\u00d6ffnen Sie die Systems-Manager-Konsole unter <a href=\"https:\/\/signin.aws.amazon.com\/signin?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fsystems-manager%2Fhome%3Fstate%3DhashArgs%2523%26isauthcode%3Dtrue&amp;client_id=arn%3Aaws%3Aiam%3A%3A015428540659%3Auser%2Fssm&amp;forceMobileApp=0&amp;code_challenge=nGCwuggmW3K3VnBA5cMSyF_eWb3GY4ciRgPB6J8JzP0&amp;code_challenge_method=SHA-256\">https:\/\/console.aws.amazon.com\/systems-manager\/.<\/a><br><br><\/li><li>Verwenden Sie im Navigationsbereich den Befehl <strong>Run Command<\/strong> oder scrollen Sie im AWS Systems Manager nach unten und w\u00e4hlen <strong>Explore Run Command<\/strong>.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"3\"><li>Benutzen Sie <strong>Run Command<\/strong> (Siehe Bild 1).<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"4\"><li>W\u00e4hlen Sie in der <strong>Command-Document<\/strong>-Liste die Schaltfl\u00e4che neben dem <strong>AWS-ConfigureAWSPackage<\/strong>.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Bestimmen Sie unter <strong>Targets<\/strong> den Server, auf dem der CloudWatch-Agent installiert werden soll. Wenn Sie bestimmte Server nicht sehen, sind sie m\u00f6glicherweise nicht f\u00fcr Run Command konfiguriert.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"6\"><li>In der <strong>Action<\/strong>-Liste verwenden sie die Option <strong>Install<\/strong>.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"7\"><li>Geben Sie unter <strong>Name<\/strong> AmazonCloudWatchAgent ein.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"8\"><li>Lassen Sie das Feld <strong>Version<\/strong> leer, um die neueste Version des Agenten zu installieren.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"300\" src=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_2.png\" alt=\"\" class=\"wp-image-18834\" srcset=\"https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_2.png 606w, https:\/\/www.sysbus.eu\/wp-content\/uploads\/2021\/05\/AWS_CloudWatch_2-300x149.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a><figcaption>Bild 2 (Screenshot: AWS)<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"9\"><li>W\u00e4hlen Sie <strong>Run<\/strong>.<\/li><\/ol>\n\n\n\n<p>Der Download beginnt. Im Anschluss wird der Agent konfiguriert und gestartet.<\/p>\n\n\n\n<p><strong>Schritt 2: Konfiguration der AWS-Anmeldeinformation und Region<\/strong><\/p>\n\n\n\n<p>Damit der CloudWatch-Agent Daten vom On-Premises-Server senden kann, m\u00fcssen Sie den Zugriffsschl\u00fcssel und den geheimen Schl\u00fcssel des IAM-Benutzers angeben, den Sie zuvor generieren.<\/p>\n\n\n\n<p>F\u00fchren Sie den Befehl <em>aws configure<\/em>aus, um ein benanntes Profil f\u00fcr den CloudWatch Agenten zu erstellen.<\/p>\n\n\n\n<p><strong>F\u00fcr Linux-Server:<\/strong> Geben Sie den folgenden Befehl ein und folgen Sie den Anweisungen:<\/p>\n\n\n\n<p>sudo aws configure <em>&#8211;profile AmazonCloudWatchAgent<\/em><\/p>\n\n\n\n<p><strong>F\u00fcr Windows Server:<\/strong> \u00d6ffnen Sie PowerShell als Administrator, geben Sie den folgenden Befehl ein und folgen Sie den Anweisungen:<\/p>\n\n\n\n<p>aws configure <em>&#8211;profile AmazonCloudWatchAgent<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zur Sammlung von Metriken und Log-Eintr\u00e4gen wird \u00fcblicherweise der Amazon CloudWatch Agent verwendet. Mit ihm lassen sich Informationen in hybriden Umgebungen erfassen, selbst wenn diese nicht auf AWS-verwalteten Servern liegen. Hier erkl\u00e4ren wir Ihnen Schritt f\u00fcr Schritt, wie Sie das Tool auf Linux- oder Windows-basierten On-Premises-Servern installieren k\u00f6nnen.<\/p>\n","protected":false},"author":1,"featured_media":18832,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[22,6],"tags":[4135,14846,2251,181,2806,344],"class_list":["post-18831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-tipps","tag-aws","tag-cloudwatch-agent","tag-installation","tag-linux","tag-on-premise","tag-windows"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/posts\/18831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18831"}],"version-history":[{"count":1,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/posts\/18831\/revisions"}],"predecessor-version":[{"id":18836,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/posts\/18831\/revisions\/18836"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=\/wp\/v2\/media\/18832"}],"wp:attachment":[{"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysbus.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}