<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Marco Gabriel - Linux</title>
    <link>http://www.marcogabriel.com/blog/</link>
    <description>Linux and Life</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 2.0.1 - http://www.s9y.org/</generator>
    
    <image>
    <url>http://www.marcogabriel.com/blog/templates/default/img/s9y_banner_small.png</url>
    <title>RSS: Marco Gabriel - Linux - Linux and Life</title>
    <link>http://www.marcogabriel.com/blog/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Warum varnish für normale Webserver nichts bringt</title>
    <link>http://www.marcogabriel.com/blog/archives/644-Warum-varnish-fuer-normale-Webserver-nichts-bringt.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/644-Warum-varnish-fuer-normale-Webserver-nichts-bringt.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=644</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=644</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;&lt;a href=&quot;https://www.varnish-cache.org/&quot;&gt;Varnish&lt;/a&gt; ist ein extrem schneller caching reverse Proxy, der einem normalen Webserver vorgeschaltet wird. In der Regel beantwortet Varnish dann die Anfragen der Benutzer, entscheidet, ob er aus seinem eigenen Cache liefern kann und den Webserver dahinter nicht mehr fragen muss. Da Varnish den Proxy im Speicher h&amp;auml;lt, bedient er Anfragen extrem schnell. Was er nicht selbst bedienen kann, z.B. weil die Seiten aktive Inhalte haben oder nicht gecached werden d&amp;uuml;rfen, gibt er an den dahinter liegenden Webserver weiter. Dar&amp;uuml;ber hinaus &amp;uuml;berwacht er die Webserver und verteilt Anfragen an mehrere Webserver. F&amp;auml;llt einer der Webserver aus, leitet Varnish dort einfach keine Anfragen mehr hin. Benutzer bekommen davon &amp;uuml;berhaupt nichts mit. Varnish ist &amp;uuml;brigens auch v&amp;ouml;llig anpassbar &amp;uuml;ber eine eigene Konfigurationssprache. Damit lassen sich extrem tolle Dinge relativ einfach realisieren.&lt;/p&gt;

&lt;p&gt;Ich kam irgendwann auf die Idee, auch normale, einzelne Webserver mit einem Varnish auszustatten, um die Auslieferung von Web Inhalten zu beschleunigen. Zun&amp;auml;chst klang das f&amp;uuml;r mich bei allen oben genannten Vorteilen wie eine Verbesserung. Zumal der Varnish auf dem gleichen Host lief und &amp;uuml;ber eine iptables Regel eingebunden wurde, d.h. mein Varnish war jederzeit im Betrieb transparent ein- und abschaltbar. Nicht mal die Webserver Konfiguration musste ich &amp;auml;ndern.&lt;/p&gt;

&lt;p&gt;Als ich mir die Statistiken des Varnish ansah, war dort allerdings kaum ein positiver Effekt zu erkennen. Die Cache Hit Rate war oft unter 1%, so dass sich kein erkennbarer Gewinn daraus erzielen liess. Varnishhist zeigt ein &amp;auml;hnliches Ergebnis, aber etwas sch&amp;ouml;ner als Varnishstat:&lt;/p&gt;

&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 647px&quot;&gt;
&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;!-- s9ymdb:138 --&gt;&lt;img alt=&quot;&quot; class=&quot;serendipity_image_center&quot; height=&quot;298&quot; src=&quot;http://www.marcogabriel.com/blog/uploads/2014/varnishhist-webserver.png&quot; width=&quot;647&quot; /&gt;&lt;/div&gt;

&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;Ausgabe von varnishhist: Unter (1) sieht man die Hits, unter (2) die an den Webserver weitergeleiteten Requests. Von links nach rechts erh&amp;ouml;ht sich die Antwortzeit.&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Der Grund daf&amp;uuml;r ist recht schnell ausgemacht. Sobald Cookies existieren, geht Varnish von einer Session aus und leitet einfach alle Anfragen an den Webserver weiter. Da heute die meisten Websites Content Management Systeme f&amp;uuml;r alles einsetzen, l&amp;auml;uft bereits beim ersten Besuch ein Cookie auf und eine Session startet. Damit ist Varnish au&amp;szlig;en vor.&lt;/p&gt;

&lt;p&gt;Varnish handelt an dieser Stelle v&amp;ouml;llig korrekt, um die Stabilit&amp;auml;t der Webanwendungen vor die Performance zu stellen.&lt;/p&gt;

&lt;p&gt;Bei kleinen Webservern, die verschiedene Websites ausliefern und alle nicht auf Varnish optimiert sind, ergibt der Einsatz von Varnish deshalb (leider) auch keinen Sinn. Man kann mittels der Scriptsprache Varnish beibringen, dass er trotzdem statische Dateien wie Bilder, CSS, etc. cached, der Aufwand lohnt sich aus meiner Erfahrung heraus trotzdem nicht.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 30 Nov 2014 15:00:46 +0100</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/644-guid.html</guid>
    <category>cache</category>
<category>performance</category>
<category>proxy</category>
<category>reverse</category>
<category>varnish</category>
<category>webserver</category>
<category>website</category>

</item>
<item>
    <title>Laufzeit eines Scripts unter Linux messen</title>
    <link>http://www.marcogabriel.com/blog/archives/643-Laufzeit-eines-Scripts-unter-Linux-messen.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/643-Laufzeit-eines-Scripts-unter-Linux-messen.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=643</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=643</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Neulich hatte ich eine Unterhaltung dar&amp;uuml;ber, wie man die Laufzeit eines Programms m&amp;ouml;glichst einfach misst. Im konkreten Fall wollten wir wissen, wie lange ein mysqldump ben&amp;ouml;tigt hat. Dazu gibts unter Linux den Befehl time, den man dem zu messenden Programm einfach voranstellt.&lt;/p&gt;

&lt;pre&gt;
time &amp;lt;Programm und Parameter&amp;gt;
[...Ausgabe des Programms...]

real&amp;#160;&amp;#160; &amp;#160;0m56.754s
user&amp;#160;&amp;#160; &amp;#160;0m0.784s
sys&amp;#160;&amp;#160; &amp;#160;0m4.004s
&lt;/pre&gt;

&lt;p&gt;Der Wert hinter real zeigt an, wie lange das Programm gelaufen ist, im obigen Beispiel 0 Minuten, 56 Sekunden und 754 Millisekunden.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 30 Nov 2014 13:56:48 +0100</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/643-guid.html</guid>
    <category>command</category>
<category>laufzeit</category>
<category>linux</category>
<category>script</category>
<category>shell</category>
<category>time</category>

</item>
<item>
    <title>Stadtverwaltung München erwägt Rückkehr von Linux zu Windows</title>
    <link>http://www.marcogabriel.com/blog/archives/639-Stadtverwaltung-Muenchen-erwaegt-Rueckkehr-von-Linux-zu-Windows.html</link>
            <category>Linux</category>
            <category>Zarafa</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/639-Stadtverwaltung-Muenchen-erwaegt-Rueckkehr-von-Linux-zu-Windows.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=639</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=639</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Sicherlich ist es nicht nur legitim, sondern auch sinnvoll, die irgendwann einmal getroffenen Entscheidungen neu zu bewerten und zu pr&amp;uuml;fen, ob man richtig entschieden hat. So tut es die Stadtverwaltung M&amp;uuml;nchen im Moment. Diese m&amp;ouml;chte erneut pr&amp;uuml;fen, ob man nicht zur&amp;uuml;ck zu Windows wechseln m&amp;ouml;chte. M&amp;uuml;nchen hatte vor Jahren f&amp;uuml;r Aufsehen gesorgt als es entschied, die Stadtverwaltung auf Open Source Software umzustellen um damit langfristig kosten zu sparen und unabh&amp;auml;ngig von einzelnen Herstellern zu werden.&lt;/p&gt;

&lt;p&gt;Wie ich nun in einem &lt;a href=&quot;http://www.golem.de/news/limux-rueckkehr-zu-windows-wird-geprueft-1408-108644.html&quot;&gt;Golem Artikel&lt;/a&gt; gelesen habe, ist eine fehlende oder nicht ausreichende Groupware. Ich frage mich dabei, ob die Stadt M&amp;uuml;nchen schon mal etwas von Zarafa geh&amp;ouml;rt hat und ob ein Umstieg auf &lt;a href=&quot;http://www.inett.de/produkte/zarafa/&quot; title=&quot;Zarafa&quot;&gt;Zarafa&lt;/a&gt;&amp;#160;f&amp;uuml;r die gemeinsame Nutzung von E-Mail, Kalendern und Kontakten&amp;#160;in Betracht gezogen wurde. Die vom &amp;#160;Oberb&amp;uuml;rgermeister angesprochenen Probleme erscheinen damit auch meiner eigenen&amp;#160;Erfahrung nach jedenfalls sehr, sehr l&amp;ouml;sbar zu sein.&lt;/p&gt;

&lt;p&gt;Nat&amp;uuml;rlich halten sich auch Ger&amp;uuml;chte, dass der pl&amp;ouml;tzliche Wechsel vielleicht auch etwas mit dem neuerlich angek&amp;uuml;ndigten &lt;a href=&quot;http://www.zdnet.de/88175440/microsoft-plant-neue-deutschland-zentrale-in-muenchen-schwabing/&quot;&gt;Umzug&lt;/a&gt; der Microsoft Deutschland Zentrale nach M&amp;uuml;nchen zu tun hat.&lt;/p&gt;

&lt;p&gt;Was leider viel zu oft nicht bedacht wird, ist der &lt;a href=&quot;http://de.wikipedia.org/wiki/Lock-in-Effekt&quot;&gt;Lock-In-Effekt&lt;/a&gt; bei der Verwendung propriet&amp;auml;rer Software. Dieser sorgt vor allem beim Beenden einer Gesch&amp;auml;ftsbeziehung und dem Umstieg auf eine andere L&amp;ouml;sung f&amp;uuml;r Kosten. So sollte man auch betrachten, welche Kosten bei der Umstellung auf Linux entstanden sind, die eigentlich auf die vorher eingesetzte Software verbucht werden m&amp;uuml;ssten - allerdings kommt diese Betrachtung meist zu kurz oder wird gar nicht erst gemacht.&lt;/p&gt;

&lt;p&gt;Meiner Meinung nach macht die Stadt M&amp;uuml;nchen einen gewaltigen Fehler, wenn sie nicht ergebnisoffen an diesen R&amp;uuml;ckblick geht und sich Microsoft an den Hals wirft. Gerade die &amp;ouml;ffentliche Hand sollte hier Vorreiter sein und auf offen verf&amp;uuml;gbare Standards setzen statt einem Hersteller die T&amp;uuml;r zu &amp;ouml;ffnen, der sie dann auf Jahre in der Hand hat. Gerade jetzt, wo M&amp;uuml;nchen die Umstellung quasi geschafft hat und nur noch die Verbesserung der Infrastruktur vorantreiben m&amp;uuml;sste.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 07 Oct 2014 14:52:44 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/639-guid.html</guid>
    <category>2014</category>
<category>exchange</category>
<category>groupware</category>
<category>limux</category>
<category>mail</category>
<category>microsoft</category>
<category>münchen</category>
<category>open</category>
<category>opensource</category>
<category>politik</category>
<category>source</category>
<category>stadt</category>
<category>zarafa</category>

</item>
<item>
    <title>vi lernen in 30 Minuten</title>
    <link>http://www.marcogabriel.com/blog/archives/636-vi-lernen-in-30-Minuten.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/636-vi-lernen-in-30-Minuten.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=636</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=636</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Geht nicht? Geht doch.&amp;#160;&lt;/p&gt;

&lt;p&gt;Und das Beste daran ist: &amp;quot;vimtutor&amp;quot; ist sehr wahrscheinlich schon installiert.&lt;/p&gt;

&lt;p&gt;Einfach auf der Shell starten und den Anweisungen folgen:&lt;/p&gt;

&lt;pre&gt;
vimtutor&lt;/pre&gt;

&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 94px&quot;&gt;
&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;a  class=&quot;serendipity_image_link&quot;  rel=&quot;lightbox&quot; href=&quot;http://www.marcogabriel.com/blog/uploads/2013/vimtutor.png&quot; onclick=&quot;F1 = window.open(&#039;/blog/uploads/2013/vimtutor.png&#039;,&#039;Zoom&#039;,&#039;height=674,width=577,top=120.5,left=439,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot; title=&quot;vimtutor Screenshot&quot;&gt;&lt;!-- s9ymdb:136 --&gt;&lt;img alt=&quot;vimtutor&quot; class=&quot;serendipity_image_center&quot; height=&quot;110&quot; src=&quot;http://www.marcogabriel.com/blog/uploads/2013/vimtutor.serendipityThumb.png&quot; title=&quot;vimtutor Screenshot&quot; width=&quot;94&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;vimtutor Screenshot&lt;/div&gt;
&lt;/div&gt;
 
    </content:encoded>

    <pubDate>Sun, 22 Dec 2013 02:02:32 +0100</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/636-guid.html</guid>
    <category>anleitung</category>
<category>editor</category>
<category>lernen</category>
<category>linux</category>
<category>vi</category>
<category>vim</category>
<category>vimtutor</category>

</item>
<item>
    <title>fileListReceive failed bei backuppc rsync Sicherung</title>
    <link>http://www.marcogabriel.com/blog/archives/634-fileListReceive-failed-bei-backuppc-rsync-Sicherung.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/634-fileListReceive-failed-bei-backuppc-rsync-Sicherung.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=634</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=634</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;...k&amp;ouml;nnte darauf hindeuten, dass rsync noch gar nicht installiert ist.&amp;#160;&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;
apt-get install rsync&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;behebt das Problem.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 09 Oct 2013 17:03:07 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/634-guid.html</guid>
    <category>backuppc</category>
<category>failed</category>
<category>filelistreceive</category>
<category>rsync</category>

</item>
<item>
    <title>Linux diff im Detail</title>
    <link>http://www.marcogabriel.com/blog/archives/633-Linux-diff-im-Detail.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/633-Linux-diff-im-Detail.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=633</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=633</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Eben habe ich einen sch&amp;ouml;nen &lt;a href=&quot;http://www.antusblog.de/2009/05/13/dateien-vergleichen-mit-diff-kompare-und-meld/&quot;&gt;Artikel&lt;/a&gt; gefunden, der diff, kompare und meld mal im Detail beschreibt. Ich nutze diff beispielsweise immer um bei Upgrades zu sehen, welche Optionen bei einer neuen Konfigurationsdaten dazu gekommen sind.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 29 Sep 2013 17:26:20 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/633-guid.html</guid>
    <category>diff</category>
<category>kompare</category>
<category>linux</category>
<category>meld</category>
<category>vergleichen</category>

</item>
<item>
    <title>mdadm Linux Software RAID Monitoring mit Zabbix</title>
    <link>http://www.marcogabriel.com/blog/archives/632-mdadm-Linux-Software-RAID-Monitoring-mit-Zabbix.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/632-mdadm-Linux-Software-RAID-Monitoring-mit-Zabbix.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=632</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=632</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Sehr sch&amp;ouml;ne L&amp;ouml;sung:&amp;#160;&lt;a href=&quot;https://www.zabbix.com/forum/showpost.php?p=91083&amp;amp;postcount=18&quot;&gt;https://www.zabbix.com/forum/showpost.php?p=91083&amp;amp;postcount=18&lt;/a&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 19 Sep 2013 00:18:31 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/632-guid.html</guid>
    <category>monitoring</category>
<category>raid</category>
<category>software</category>
<category>zabbix</category>

</item>
<item>
    <title>Mails eines bestimmten Absenders aus der Postfix Queue löschen</title>
    <link>http://www.marcogabriel.com/blog/archives/631-Mails-eines-bestimmten-Absenders-aus-der-Postfix-Queue-loeschen.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/631-Mails-eines-bestimmten-Absenders-aus-der-Postfix-Queue-loeschen.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=631</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=631</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Zabbix hat uns heute unseren Mailserver zugespammt mit berechtigten Fehlermeldungen. Eine einfache M&amp;ouml;glichkeit, Mails eines bestimmten Absenders aus einer Postfix Queue zu l&amp;ouml;schen, bevor diese zugestellt werden, zeige ich hier (alles in einer Zeile):&lt;/p&gt;

&lt;pre&gt;
mailq|grep absender@example.com|awk &amp;#39;{print $1}&amp;#39; &amp;gt; /tmp/zmails.tmp &amp;amp;&amp;amp; while read LINE; do postsuper -d $LINE; done &amp;lt; /tmp/zmails.tmp &amp;amp;&amp;amp; rm /tmp/zmails.tmp&lt;/pre&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 12 Sep 2013 21:44:26 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/631-guid.html</guid>
    <category>absender</category>
<category>löschen</category>
<category>mail</category>
<category>postfix</category>
<category>postsuper</category>
<category>queue</category>
<category>zabbix</category>

</item>
<item>
    <title>Zabbix Queue voll?</title>
    <link>http://www.marcogabriel.com/blog/archives/630-Zabbix-Queue-voll.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/630-Zabbix-Queue-voll.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=630</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=630</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Merke: Zeit richtig einstellen auf dem Zabbix Server hilft.&amp;#160;&lt;/p&gt;

&lt;p&gt;Der besagte Zabbix Server hatte die falsche Zeitzone und ging damit zwei Stunden nach. Damit kamen bestimmte Pakete von anderen Agents nicht &amp;quot;rechtzeitig&amp;quot; und wurden verworfen.&amp;#160;&lt;/p&gt;

&lt;p&gt;Nach Anpassung der Zeitzone mit&lt;/p&gt;

&lt;pre&gt;
dpkg-reconfigure tzdata&lt;/pre&gt;

&lt;p&gt;lief die Queue auch sch&amp;ouml;n leer.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 11 Sep 2013 22:26:27 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/630-guid.html</guid>
    <category>monitoring</category>
<category>server</category>
<category>timezone</category>
<category>tzdata</category>
<category>zabbix</category>
<category>zeitzone</category>

</item>
<item>
    <title>Zabbix SNMP - Error building asn.1 representation</title>
    <link>http://www.marcogabriel.com/blog/archives/627-Zabbix-SNMP-Error-building-asn.1-representation.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/627-Zabbix-SNMP-Error-building-asn.1-representation.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=627</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=627</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Fragt man mit Zabbix per SNMP Hosts ab und erh&amp;auml;lt die Meldung&lt;/p&gt;

&lt;pre&gt;
Error building asn.1 representation&lt;/pre&gt;

&lt;p&gt;liegt es vermutlich an den fehlenden (und vermutlich noch nicht installierten) MIBs. Um unter Debian/Ubuntu diese MIBs zu installieren, gen&amp;uuml;gt ein&lt;/p&gt;

&lt;pre&gt;
apt-get install snmp-mibs-downloader&lt;/pre&gt;

&lt;p&gt;Danach sollte Zabbix noch mal durchgestartet werden und die SNMP Fehlermeldung sollte weg sein.&lt;/p&gt;

&lt;p&gt;Testen kann man dies beispielsweise mit&lt;/p&gt;

&lt;pre&gt;
snmpget -v2c -c public &amp;lt;serveradresse&amp;gt; &lt;server.adresse&gt;SNMPv2-MIB::sysUpTime.0&lt;/server.adresse&gt;&lt;/pre&gt;

&lt;p&gt;Erh&amp;auml;lt man wie erwartet die aktuelle Uptime als Antwort, werden die MIBs aufgel&amp;ouml;st und es funktioniert.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 28 Aug 2013 22:29:49 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/627-guid.html</guid>
    <category>debian</category>
<category>mibs</category>
<category>snmp</category>
<category>zabbix</category>

</item>
<item>
    <title>GlusterFS zu OCFS2 mit DRBD migrieren</title>
    <link>http://www.marcogabriel.com/blog/archives/623-GlusterFS-zu-OCFS2-mit-DRBD-migrieren.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/623-GlusterFS-zu-OCFS2-mit-DRBD-migrieren.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=623</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=623</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Mit Cluster Filesystemen kann man schon ziemlich viel Zeit verbringen. Nicht nur beim Einrichten, sondern auch beim Warten auf Daten, die von eben jenen Filesystemen angefordert werden.&amp;#160;&lt;/p&gt;

&lt;p&gt;Major Hayden &lt;a href=&quot;http://major.io/2010/11/10/switching-from-glusterfs-to-drbd-and-ocfs2/&quot;&gt;beschreibt&lt;/a&gt; in seinem Blog, was ihn dazu bewogen hat, von GlusterFS auf ein OCFS2/DRBD Konstrukt zur&amp;uuml;ck zu wechseln. Der Post ist schon von 2010, d&amp;uuml;rfte aber grunds&amp;auml;tzlich noch immer relevant sein.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Mon, 26 Aug 2013 11:50:35 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/623-guid.html</guid>
    <category>drbd</category>
<category>glusterfs</category>
<category>migration</category>
<category>ocfs2</category>

</item>
<item>
    <title>Webserver, simpel</title>
    <link>http://www.marcogabriel.com/blog/archives/621-Webserver,-simpel.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/621-Webserver,-simpel.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=621</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=621</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;pre&gt;
python -m SimpleHTTPServer&lt;/pre&gt;

&lt;p&gt;Der Befehl startet einen Webserver, der das aktuelle Verzeichnis &amp;uuml;ber&amp;#160;Port 8000 freigibt.&lt;/p&gt;

&lt;pre&gt;
~# python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...&lt;/pre&gt;

&lt;p&gt;Man kann also nun &amp;uuml;ber http://&amp;lt;adresse&amp;gt;:8000/ auf das Verzeichnis zugreifen.&amp;#160;Da Python quasi &amp;uuml;berall vorhanden ist, werden keine weiteren Freigaben oder Software ben&amp;ouml;tigt. Nicht einmal root Rechte braucht man daf&amp;uuml;r.&lt;/p&gt;

&lt;p&gt;Wer einen anderen Port bevorzugt, kann diesen noch dahinter angeben:&lt;/p&gt;

&lt;pre&gt;
python -m SimpleHTTPServer [port]&lt;/pre&gt;

&lt;p&gt;So etwas &amp;auml;hnliches gibt&amp;#39;s auch &lt;a href=&quot;http://www.razvantudorica.com/08/web-server-in-one-line-of-bash/&quot;&gt;in Bash&lt;/a&gt;, die obige L&amp;ouml;sung finde ich aber einfacher.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 25 Aug 2013 12:08:42 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/621-guid.html</guid>
    <category>linux</category>
<category>python</category>
<category>server</category>
<category>simpel</category>
<category>web</category>
<category>webserver</category>

</item>
<item>
    <title>Rsync Logical Volumes / LVM</title>
    <link>http://www.marcogabriel.com/blog/archives/619-Rsync-Logical-Volumes-LVM.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/619-Rsync-Logical-Volumes-LVM.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=619</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=619</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Wenn man regelmäßig Daten transferieren oder abgleichen möchte, dann ist Rsync in der Regel das beste Mittel der Wahl. Rsync überträgt nur geänderte Dateien, tut dies sehr effizient, komprimiert dabei noch und verschlüsselt die Daten während des Transfers. Rsync funktioniert für regelmäßige Dateitransfers also extrem gut. &lt;/p&gt; 
&lt;p&gt;Schön wäre es nun, wenn man so etwas wie Rsync auch für sehr große Dateien oder Logical Volumes eines LVM verwenden könnte. Ein typischer Anwendungsfall ist die Sicherung von virtuellen Maschinen, bei denen diese Images auch schon mal mehrere hundert GB groß sind.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;http://www.marcogabriel.com/blog/archives/619-Rsync-Logical-Volumes-LVM.html#extended&quot;&gt;&quot;Rsync Logical Volumes / LVM&quot; vollständig lesen&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 05 May 2013 17:20:03 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/619-guid.html</guid>
    <category>backup</category>
<category>linux</category>
<category>logical volume</category>
<category>lvm</category>
<category>lvs</category>
<category>proxmox</category>
<category>rsync</category>
<category>snapshot</category>
<category>transfer</category>

</item>
<item>
    <title>Wenn's mal wieder länger dauert: MySQL Tuning Scripts</title>
    <link>http://www.marcogabriel.com/blog/archives/618-Wenns-mal-wieder-laenger-dauert-MySQL-Tuning-Scripts.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/618-Wenns-mal-wieder-laenger-dauert-MySQL-Tuning-Scripts.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=618</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=618</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Wer hat schon zu viel Zeit? Und irgendwas zu optimieren gibt&#039;s doch immer:&lt;/p&gt; 
&lt;p&gt; &lt;/p&gt; 
&lt;ul&gt; 
&lt;li&gt;&lt;a href=&quot;https://launchpad.net/mysql-tuning-primer&quot;&gt;MySQL Tuning Primer Script in Launchpad&lt;/a&gt;&lt;/li&gt; 
&lt;li&gt;&lt;a href=&quot;http://mysqltuner.pl/&quot;&gt;MySQL Tuner&lt;/a&gt; (Unter Debian/Ubuntu auch über apt-get install mysqltuner installierbar)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Das Denken übernehmen die Scripte nicht, aber sie sind dabei sehr behilflich.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 20 Apr 2013 17:01:46 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/618-guid.html</guid>
    <category>mysql</category>
<category>scripts</category>
<category>tuning</category>

</item>
<item>
    <title>Bash: Zeile für Zeile</title>
    <link>http://www.marcogabriel.com/blog/archives/617-Bash-Zeile-fuer-Zeile.html</link>
            <category>Linux</category>
    
    <comments>http://www.marcogabriel.com/blog/archives/617-Bash-Zeile-fuer-Zeile.html#comments</comments>
    <wfw:comment>http://www.marcogabriel.com/blog/wfwcomment.php?cid=617</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.marcogabriel.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=617</wfw:commentRss>
    

    <author>nospam@example.com (Marco Gabriel)</author>
    <content:encoded>
    &lt;p&gt;Neulich musste ich f&amp;uuml;r die Umstellung eines Mailsystems ca. 3.300 Aliase umschreiben. Da diese Aliase aus mehreren Quellen stammen sollte das ganze auch automatisch und jederzeit wiederholbar sein. Ich kam irgendwann an den Punkt, an dem ich eine Datei lesen und mit jeder Zeile etwas tun musste.&amp;#160;&lt;/p&gt;

&lt;p&gt;Der Klassiker in Bash ist einfach:&lt;/p&gt;

&lt;pre&gt;
for LINE in $(cat /pfad/zur/datei)
do
    echo $LINE
done&lt;/pre&gt;

&lt;p&gt;Dazu gibt es jedoch eine meist bessere Alternative:&lt;/p&gt;

&lt;pre&gt;
while read LINE
do
    echo $LINE
done &amp;lt; /pfad/zur/datei&lt;/pre&gt;

&lt;p&gt;Variante 2 nutzt das read Kommando unter Linux und liest die Datei wirkich zeilenweise, wogegen Version 1 wortweise liest.&lt;/p&gt;

&lt;p&gt;Beispiel:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quelldatei&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;
zeile eins
zeile zwei&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Ergebnis der Variante 1:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;
zeile
eins
zeile
zwei&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Ergebnis der Variante 2:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;
zeile eins
zeile zwei&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;Mir gef&amp;auml;llt mir die erste Variante durchaus besser von der Form, aber sie verh&amp;auml;lt sich eventuell nicht, wie man es erwarten w&amp;uuml;rde.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 20 Apr 2013 13:39:45 +0200</pubDate>
    <guid isPermaLink="false">http://www.marcogabriel.com/blog/archives/617-guid.html</guid>
    <category>bash</category>
<category>for</category>
<category>linux</category>
<category>read</category>
<category>while</category>
<category>zeilenweise</category>

</item>

</channel>
</rss>
