{"id":2484,"date":"2016-05-14T10:37:58","date_gmt":"2016-05-14T08:37:58","guid":{"rendered":"http:\/\/vrealize.it\/?p=2484"},"modified":"2016-05-30T10:59:11","modified_gmt":"2016-05-30T08:59:11","slug":"linux-performance-monitoring-fuer-puristen","status":"publish","type":"post","link":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/","title":{"rendered":"Linux Performance Monitoring f\u00fcr Puristen"},"content":{"rendered":"<p><em>English version:<a href=\"http:\/\/blogs.vmware.com\/management\/2016\/05\/minimalistic-os-monitoring-with-log-insight.html\">\u00a0http:\/\/blogs.vmware.com\/management\/2016\/05\/minimalistic-os-monitoring-with-log-insight.html<\/a><\/em><\/p>\n<p>Wenn man wissen will, ob ein Kind krank ist, misst man Fieber. Klar ist das keine perfekte Methode, aber eine verschnupfte Nase und die Temperatur reichen meist f\u00fcr eine Diagnose aus. Im Normalfall verzichtet man (noch)\u00a0auf die Blutbildanalyse, Magen- und Darmspiegelung, Computertomografie und mikrobiologische Untersuchungen. Nicht dass mancher Arzt oder Mutter es nicht gerne t\u00e4te.<\/p>\n<p>\u00c4hnlich pragmatisch kann man auch im ersten Schritt das Monitoring von Linux beschr\u00e4nken. Erst ein mal, will man die Auslastung \u00a0des Systems kennen. Eventuell noch das Swap-Verhalten. Dann vielleicht noch ein Paar IO-Werte. Vorausgesetzt Log Insight ist installiert und das System angebunden (eine kontinuierliche Ausscheidungsanalyse findet statt) &#8211; mit wenigen Griffen l\u00e4sst sich Performancemonitoring einrichten. Wir fangen mal mit Fieber an:<\/p>\n<h3>Load-Werte in Log Insight visualisieren<\/h3>\n<p>Mit &#8220;sudo crontab -e&#8221; w\u00e4hlen wir einen Editor und f\u00fcgen folgende Zeile zum Crontab hinzu:<\/p>\n<pre class=\"lang:sh decode:true\">*\/1 * * * * \/usr\/bin\/uptime | logger<\/pre>\n<p>Jede Minute wird das Kommando &#8220;uptime&#8221; ausgef\u00fchrt und die Ausgabe wird in das syslog umgeleitet. Die Ausgabe sieht \u00fcbrigens so aus:<\/p>\n<pre class=\"lang:sh decode:true \">May 13 12:27:01 ugurke root:\u00a0 12:27:01 up 1 day, 21:12,\u00a0 4 users,\u00a0 load average: 0.00, 0.06, 0.06<\/pre>\n<p>Sind die Systeme \u00fcber syslog oder Log Insight Agent angebunden, werden wir in K\u00fcrze diese Zeilen auch dort sehen.<\/p>\n<p>Nun brauchen wir nur noch die interessanten Felder zu markieren (users, load 1, load 5 und load 15) und zu extrahieren. Mit ein bisschen Gef\u00fchl und Null-Ahnung von regex bekommt man es auch hin: denn Log Insight zeigt ja an, ob das richtige Feld getroffen wurde. Da es in diesem Fall nicht vollautomatisch geschieht, anbei die Screenshots:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2486 size-thumbnail alignnone\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-200x131.png\" alt=\"tb_sc_2016-05-13_01-51-14_PM\" width=\"200\" height=\"131\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-200x131.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-600x392.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-768x501.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-300x196.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM-660x431.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_01-51-14_PM.png 1011w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p>Nun brauchen wir &#8220;extracted fields&#8221; aus den Uptime-Ausgaben. Da es sich nicht gerade um \u00fcbliche Meldungen handelt, m\u00fcssen die Felder etwas per Hand optimiert werden, bis sie sowohl bei Linux als auch bei Mac greifen. Anbei die Beispiele zur \u00dcbung, aber wer faul ist, kann auch einfach weiter lesen und das Content Pack importieren.<\/p>\n<p>Load1 :<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2519 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-600x146.png\" alt=\"tb_sc_2016-05-17_11-12-27_AM\" width=\"600\" height=\"146\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-600x146.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-200x49.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-768x187.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-1024x249.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-300x73.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM-660x161.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-12-27_AM.png 1778w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Load5<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2520 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-600x145.png\" alt=\"tb_sc_2016-05-17_11-13-47_AM\" width=\"600\" height=\"145\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-600x145.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-200x48.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-768x185.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-1024x247.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-300x72.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM-660x159.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-13-47_AM.png 1777w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Load15<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2521 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-600x135.png\" alt=\"tb_sc_2016-05-17_11-14-42_AM\" width=\"600\" height=\"135\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-600x135.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-200x45.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-768x173.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-1024x230.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-300x67.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM-660x148.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-14-42_AM.png 1776w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Users:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2522 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-600x114.png\" alt=\"tb_sc_2016-05-17_11-15-45_AM\" width=\"600\" height=\"114\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-600x114.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-200x38.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-768x146.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-1024x195.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-300x57.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM-660x126.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-15-45_AM.png 1779w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Uptime \/ Days<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2523 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-600x127.png\" alt=\"tb_sc_2016-05-17_11-16-34_AM\" width=\"600\" height=\"127\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-600x127.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-200x42.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-768x163.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-1024x217.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-300x63.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM-660x140.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-16-34_AM.png 1786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>In ein Paar Minuten\u00a0k\u00f6nnen wir nun Dashboards zusammeklicken. Zum Beispiel das Maximum von Load1 in der Zeit visualisieren. Ob man nun runde (spline) oder spitze Kurven mag ist Geschmackssache:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2491 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-600x278.png\" alt=\"tb_sc_2016-05-13_02-08-31_PM\" width=\"600\" height=\"278\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-600x278.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-200x93.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-768x356.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-1024x475.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-300x139.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM-660x306.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-08-31_PM.png 1264w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Interessanter wird es, wenn die Load1 Kurve mit der Anzahl der User korreliert:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2492 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-600x468.png\" alt=\"tb_sc_2016-05-13_02-19-45_PM\" width=\"600\" height=\"468\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-600x468.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-200x156.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-768x599.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-1024x799.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-300x234.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM-660x515.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-19-45_PM.png 1271w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>in diesem Beispiel sehe ich, dass ein neuer User eingeloggt (Schnupfen) ist und gleichzeitig die Load1-Kurve steigt (Fieber). Nun k\u00f6nnen wir schnell durch &#8220;View Event in Context&#8221; erforschen, woran es liegt.<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2493 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-600x315.png\" alt=\"tb_sc_2016-05-13_02-23-34_PM\" width=\"600\" height=\"315\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-600x315.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-200x105.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-768x403.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-1024x537.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-300x157.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM-660x346.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-23-34_PM.png 1246w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Nun sind so einsame Kurven zwar sch\u00f6n, aber es geht noch viel bunter: der crontab-Eintrag, der die uptime-Ausgabe zum Logger schickt, k\u00f6nnte ja bei mehreren Linux-Systemen stehen. Damit h\u00e4tten wir die Last von vielen Systemen auf einmal im Blick:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2496 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-600x359.png\" alt=\"tb_sc_2016-05-13_02-52-51_PM\" width=\"600\" height=\"359\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-600x359.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-200x120.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-768x460.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-1024x613.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-300x180.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1-660x395.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_02-52-51_PM-1.png 1275w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Importieren des Content-Packs:<\/h3>\n<p>Nun da wir die Felder haben und diese auch noch Dezimal sind, kann das Fiebermessen beginnen. Wenn Sie sich die Arbeit mit den Feldern ersparen wollen, k\u00f6nnen Sie auch gerne diese zusammen mit einem Beispiel-Dashboard importieren<a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/Uptime-Output-v1.2.vlcp_.zip\">\u00a0Uptime-Output-v1.2.vlcp_.zip<\/a>.<\/p>\n<ul>\n<li>Zip-Datei herunterladen und Entpacken<\/li>\n<li>Oben Rechts Men\u00fc -&gt; Content Packs ausw\u00e4hlen<\/li>\n<li>Unten Links -&gt; Content Packs importieren<\/li>\n<li>Option &#8220;Import in to my content&#8221; w\u00e4hlen (damit sind die Felder und die Dashboards direkt anpassbar.<\/li>\n<\/ul>\n<p>Hier ist das fertige Beispieldashboard mit mehreren Linux und Mac\u00a0Systemen:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2524\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-600x334.png\" alt=\"tb_sc_2016-05-17_11-26-02_AM\" width=\"600\" height=\"334\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-600x334.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-200x111.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-768x427.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-1024x569.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-300x167.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM-660x367.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png 1408w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>OS-Monitoring mit einem kleinen Skript:<\/h3>\n<p>Nun das &#8220;uptime&#8221; Kommando ist ja nur ein Beispiel. Andere Metriken k\u00f6nnen nach dem gleichen Prinzip in Log Insight visualisiert werden. Ein Erweiterung ist dieses kleine Skript:<\/p>\n<pre class=\"lang:sh decode:true \">CPU=`grep 'cpu ' \/proc\/stat | awk '{usage=($2+$4)*100\/($2+$4+$5)} END {print usage}'`\r\nLOAD_5=`cat \/proc\/loadavg| awk -F\" \" '{print $2}'`\r\nMEM=`free | grep Mem | awk '{print $3\/$2 * 100.0}'`\r\nDISK=`df -lh | awk '{if ($6 == \"\/\") { print $5 }}' | head -1 | cut -d'%' -f1`\r\n\/usr\/bin\/logger OS-Monitoring-tb:$HOSTNAME CPUINPERCENT=$CPU CPU5=$LOAD_5 MEMORYINPERCENT=$MEM ROOTFSINPERCENT=$DISK\r\n#\/bin\/logger - f\u00fcr SUSE Linux<\/pre>\n<p>&nbsp;<\/p>\n<p>Die Ergebnisse sehen dann in Log Insight wie folgt aus:<\/p>\n<p><a href=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2497 size-medium\" src=\"http:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-600x416.png\" alt=\"tb_sc_2016-05-13_07-26-07_PM\" width=\"600\" height=\"416\" srcset=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-600x416.png 600w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-200x140.png 200w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-768x533.png 768w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-1024x710.png 1024w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-300x208.png 300w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM-660x458.png 660w, https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-13_07-26-07_PM.png 1459w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>English version:\u00a0http:\/\/blogs.vmware.com\/management\/2016\/05\/minimalistic-os-monitoring-with-log-insight.html Wenn man wissen will, ob ein Kind krank ist, misst man Fieber. Klar ist das keine perfekte Methode, aber eine verschnupfte Nase und die Temperatur reichen meist f\u00fcr eine Diagnose aus. Im Normalfall verzichtet man (noch)\u00a0auf die Blutbildanalyse, Magen- und Darmspiegelung, Computertomografie und mikrobiologische Untersuchungen. Nicht dass mancher Arzt oder Mutter es nicht\u2026 <span class=\"read-more\"><a href=\"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/\">Weiterlesen &raquo;<\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":2524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[42],"tags":[192,193,156,191],"class_list":["post-2484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-loginsight","tag-linux","tag-load5","tag-monitoring","tag-uptime"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC\" \/>\n<meta property=\"og:description\" content=\"English version:\u00a0http:\/\/blogs.vmware.com\/management\/2016\/05\/minimalistic-os-monitoring-with-log-insight.html Wenn man wissen will, ob ein Kind krank ist, misst man Fieber. Klar ist das keine perfekte Methode, aber eine verschnupfte Nase und die Temperatur reichen meist f\u00fcr eine Diagnose aus. Im Normalfall verzichtet man (noch)\u00a0auf die Blutbildanalyse, Magen- und Darmspiegelung, Computertomografie und mikrobiologische Untersuchungen. Nicht dass mancher Arzt oder Mutter es nicht\u2026 Weiterlesen &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/\" \/>\n<meta property=\"og:site_name\" content=\"vrealize.it - TechBlog VMware SDDC\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-14T08:37:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-30T08:59:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"783\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tomas Baublys\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Baublys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/\"},\"author\":{\"name\":\"Tomas Baublys\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/#\\\/schema\\\/person\\\/f8910a5a0c7f1d547783171cd2b40bdb\"},\"headline\":\"Linux Performance Monitoring f\u00fcr Puristen\",\"datePublished\":\"2016-05-14T08:37:58+00:00\",\"dateModified\":\"2016-05-30T08:59:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/\"},\"wordCount\":573,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vrealize.it\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/tb_sc_2016-05-17_11-26-02_AM.png\",\"keywords\":[\"linux\",\"load5\",\"Monitoring\",\"uptime\"],\"articleSection\":[\"Aria Operations for Logs\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/\",\"url\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/\",\"name\":\"Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vrealize.it\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/tb_sc_2016-05-17_11-26-02_AM.png\",\"datePublished\":\"2016-05-14T08:37:58+00:00\",\"dateModified\":\"2016-05-30T08:59:11+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/#\\\/schema\\\/person\\\/f8910a5a0c7f1d547783171cd2b40bdb\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vrealize.it\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/tb_sc_2016-05-17_11-26-02_AM.png\",\"contentUrl\":\"https:\\\/\\\/vrealize.it\\\/wp-content\\\/uploads\\\/2016\\\/05\\\/tb_sc_2016-05-17_11-26-02_AM.png\",\"width\":1408,\"height\":783},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/2016\\\/05\\\/14\\\/linux-performance-monitoring-fuer-puristen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/vrealize.it\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Performance Monitoring f\u00fcr Puristen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/vrealize.it\\\/de\\\/\",\"name\":\"vrealize.it - TechBlog VMware SDDC\",\"description\":\"Information zu sicherem Hybrid und Multi-Cloud Computing - dispruptive Technologien im IT- Umfeld\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vrealize.it\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vrealize.it\\\/de\\\/#\\\/schema\\\/person\\\/f8910a5a0c7f1d547783171cd2b40bdb\",\"name\":\"Tomas Baublys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g\",\"caption\":\"Tomas Baublys\"},\"url\":\"https:\\\/\\\/vrealize.it\\\/de\\\/author\\\/tbaublys\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC","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:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/","og_locale":"de_DE","og_type":"article","og_title":"Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC","og_description":"English version:\u00a0http:\/\/blogs.vmware.com\/management\/2016\/05\/minimalistic-os-monitoring-with-log-insight.html Wenn man wissen will, ob ein Kind krank ist, misst man Fieber. Klar ist das keine perfekte Methode, aber eine verschnupfte Nase und die Temperatur reichen meist f\u00fcr eine Diagnose aus. Im Normalfall verzichtet man (noch)\u00a0auf die Blutbildanalyse, Magen- und Darmspiegelung, Computertomografie und mikrobiologische Untersuchungen. Nicht dass mancher Arzt oder Mutter es nicht\u2026 Weiterlesen &raquo;","og_url":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/","og_site_name":"vrealize.it - TechBlog VMware SDDC","article_published_time":"2016-05-14T08:37:58+00:00","article_modified_time":"2016-05-30T08:59:11+00:00","og_image":[{"width":1408,"height":783,"url":"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png","type":"image\/png"}],"author":"Tomas Baublys","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Tomas Baublys","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#article","isPartOf":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/"},"author":{"name":"Tomas Baublys","@id":"https:\/\/vrealize.it\/de\/#\/schema\/person\/f8910a5a0c7f1d547783171cd2b40bdb"},"headline":"Linux Performance Monitoring f\u00fcr Puristen","datePublished":"2016-05-14T08:37:58+00:00","dateModified":"2016-05-30T08:59:11+00:00","mainEntityOfPage":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/"},"wordCount":573,"commentCount":1,"image":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#primaryimage"},"thumbnailUrl":"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png","keywords":["linux","load5","Monitoring","uptime"],"articleSection":["Aria Operations for Logs"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/","url":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/","name":"Linux Performance Monitoring f\u00fcr Puristen &#187; vrealize.it - TechBlog VMware SDDC","isPartOf":{"@id":"https:\/\/vrealize.it\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#primaryimage"},"image":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#primaryimage"},"thumbnailUrl":"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png","datePublished":"2016-05-14T08:37:58+00:00","dateModified":"2016-05-30T08:59:11+00:00","author":{"@id":"https:\/\/vrealize.it\/de\/#\/schema\/person\/f8910a5a0c7f1d547783171cd2b40bdb"},"breadcrumb":{"@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#primaryimage","url":"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png","contentUrl":"https:\/\/vrealize.it\/wp-content\/uploads\/2016\/05\/tb_sc_2016-05-17_11-26-02_AM.png","width":1408,"height":783},{"@type":"BreadcrumbList","@id":"https:\/\/vrealize.it\/de\/2016\/05\/14\/linux-performance-monitoring-fuer-puristen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/vrealize.it\/de\/"},{"@type":"ListItem","position":2,"name":"Linux Performance Monitoring f\u00fcr Puristen"}]},{"@type":"WebSite","@id":"https:\/\/vrealize.it\/de\/#website","url":"https:\/\/vrealize.it\/de\/","name":"vrealize.it - TechBlog VMware SDDC","description":"Information zu sicherem Hybrid und Multi-Cloud Computing - dispruptive Technologien im IT- Umfeld","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vrealize.it\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/vrealize.it\/de\/#\/schema\/person\/f8910a5a0c7f1d547783171cd2b40bdb","name":"Tomas Baublys","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2126b2d052bf7dbb1a19e7d27f15879e8f3bcb3d54ffaf21e00ac8f84c554c0?s=96&d=mm&r=g","caption":"Tomas Baublys"},"url":"https:\/\/vrealize.it\/de\/author\/tbaublys\/"}]}},"_links":{"self":[{"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/posts\/2484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/comments?post=2484"}],"version-history":[{"count":20,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/posts\/2484\/revisions"}],"predecessor-version":[{"id":2528,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/posts\/2484\/revisions\/2528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/media\/2524"}],"wp:attachment":[{"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/media?parent=2484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/categories?post=2484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vrealize.it\/de\/wp-json\/wp\/v2\/tags?post=2484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}