<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/var/bergercity/</title>
	<atom:link href="http://www.bergercity.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bergercity.de</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 20:22:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>OpenNMS: Memcached mit SNMP überwachen</title>
		<link>http://www.bergercity.de/linux/opennms-memcached-mit-snmp-uberwachen/</link>
		<comments>http://www.bergercity.de/linux/opennms-memcached-mit-snmp-uberwachen/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 20:22:04 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Memcached]]></category>
		<category><![CDATA[OpenNMS]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1645</guid>
		<description><![CDATA[In OpenNMS gibt es zwar auch einen &#8220;nativen&#8221; Memcached-Monitor &#8211; aber dieser funktioniert nur wenn der Memcached direkt über das Netz vom Monitorserver aus erreichbar ist. Mit der bekannten SNMP-extend Methode lässt sich der Memcached Daemon auch gut via SNMP mit OpenNMS überwachen. Hier nur kurz die wichtigsten Scripte und Schritte: Service überwachen Das geht [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bergercity.de/wp-content/uploads/2009/11/opennms.png" alt="opennms" title="opennms" width="197" height="54" class="alignright size-full wp-image-1114" />In OpenNMS gibt es zwar auch einen &#8220;nativen&#8221; <a href="http://www.opennms.org/wiki/Memcached_Monitor">Memcached-Monitor</a> &#8211; aber dieser funktioniert nur wenn der Memcached direkt über das Netz vom Monitorserver aus erreichbar ist.</p>
<p>Mit der bekannten SNMP-extend Methode lässt sich der Memcached Daemon auch gut via SNMP mit OpenNMS überwachen. Hier nur kurz die wichtigsten Scripte und Schritte:</p>
<h4>Service überwachen</h4>
<p>Das geht am einfachsten über das &#8220;HostResourceSwRunPlugin&#8221; Plugin welches die laufenden Prozesse via SNMP überwacht. Zunächst muss der Service überhaupt erkannt werden:</p>
<p><em>/etc/opennms/capsd-configuration.xml</em></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;protocol-plugin</span> <span style="color: #000066;">protocol</span>=<span style="color: #ff0000;">&quot;Process-memcached&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000066;">class-name</span>=<span style="color: #ff0000;">&quot;org.opennms.netmgt.capsd.plugins.HostResourceSwRunPlugin&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000066;">scan</span>=<span style="color: #ff0000;">&quot;on&quot;</span> <span style="color: #000066;">user-defined</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;timeout&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;2000&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;retry&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;service-name&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;memcached&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/protocol-plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Dann wird die Überwachung definiert:<br />
<em>/etc/opennms/poller-configuration.xml</em></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">   ...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;service</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Process-memcached&quot;</span> <span style="color: #000066;">interval</span>=<span style="color: #ff0000;">&quot;300000&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">user-defined</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">status</span>=<span style="color: #ff0000;">&quot;on&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;retry&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;5&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;timeout&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;10000&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;service-name&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;memcached&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;run-level&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;match-all&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/service<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 ...
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;monitor</span> <span style="color: #000066;">service</span>=<span style="color: #ff0000;">&quot;Process-memcached&quot;</span> <span style="color: #000066;">class-name</span>=<span style="color: #ff0000;">&quot;org.opennms.netmgt.poller.monitors.HostResourceSwRunMonitor&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<h4>Statistiken</h4>
<p>Um noch ein paar Graphen zu generieren werden per SNMP noch die Statusdetails des Memcached Daemons übertragen&#8230;</p>
<p><span id="more-1645"></span></p>
<p>Zunächst brauchen wir ein Script um die Statusdaten vom Memcached zu bekommen:<br />
<em>/etc/snmp/check_memcached.sh</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;stats<span style="color: #000099; font-weight: bold;">\n</span>quit&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> nc 127.0.0.1 <span style="color: #000000;">11211</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span>  <span style="color: #660033;">-d</span> $<span style="color: #ff0000;">'\r'</span> <span style="color: #c20cb9; font-weight: bold;">stat</span> name value;
        <span style="color: #000000; font-weight: bold;">do</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$value</span>
        <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Das Script &#8220;check_memcached.sh&#8221; verwendet dann der SNMP-Daemon um die Daten auszulesen und zu übertragen:<br />
<em>/etc/snmp/snmpd.conf</em></p>

<div class="wp_syntax"><div class="code"><pre class="snmp" style="font-family:monospace;">extend memcached /etc/snmp/check_memcached</pre></div></div>

<p>OpenNMS wird jetzt erweitert um diese Daten zu sammeln:<br />
<em>/etc/opennms/datacollection-config.xml</em></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;group</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;memcached-status&quot;</span> <span style="color: #000066;">ifType</span>=<span style="color: #ff0000;">&quot;ignore&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-uptime&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-pointerSize&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;6&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-rusageUser&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;7&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-rusageSystem&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-currItems&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-totalItems&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-bytes&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;11&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-currConnections&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;12&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-totalConnections&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;13&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-connectionStructures&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;14&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-cmdGet&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;15&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-cmdSet&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-getHits&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;counter&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;17&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-getMisses&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;counter&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;18&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-evictions&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;gauge&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;19&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-bytesRead&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;counter&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;20&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-bytesWritten&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;counter&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;21&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-limitMaxbytes&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mibObj</span> <span style="color: #000066;">oid</span>=<span style="color: #ff0000;">&quot;.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.109.101.109.99.97.99.104.101.100&quot;</span> <span style="color: #000066;">instance</span>=<span style="color: #ff0000;">&quot;22&quot;</span> <span style="color: #000066;">alias</span>=<span style="color: #ff0000;">&quot;mcd-threads&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;integer&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/group<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;systemDef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Net-SNMP&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
...
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;collect<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;includeGroup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>memcached-status<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/includeGroup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/collect<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/systemDef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Jetzt müssen noch die Graphen definiert werden:</p>
<p><em>/etc/opennms/snmp-graph.properties</em></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">report.netsnmp.memcached.hits.name=Memcached hits
report.netsnmp.memcached.hits.columns=mcd-getHits,mcd-getMisses
report.netsnmp.memcached.hits.type=nodeSnmp
report.netsnmp.memcached.hits.command=--title=&quot;Memcached hits&quot; \
 DEF:hits={rrd1}:mcd-getHits:AVERAGE \
 DEF:misses={rrd2}:mcd-getMisses:AVERAGE \
 AREA:hits#71A336:&quot;Hits   &quot; \
 GPRINT:hits:AVERAGE:&quot;Avg  \\: %8.2lf &quot; \
 GPRINT:hits:MIN:&quot;Min  \\: %8.2lf &quot; \
 GPRINT:hits:MAX:&quot;Max  \\: %8.2lf \\n&quot; \
 LINE1:misses#F7AA29:&quot;Misses &quot; \
 GPRINT:misses:AVERAGE:&quot;Avg  \\: %8.2lf &quot; \
 GPRINT:misses:MIN:&quot;Min  \\: %8.2lf &quot; \
 GPRINT:misses:MAX:&quot;Max  \\: %8.2lf \\n&quot;
&nbsp;
report.netsnmp.memcached.memoryUsage.name=Memcached Memory Usage
report.netsnmp.memcached.memoryUsage.columns=mcd-bytes,mcd-limitMaxbytes
report.netsnmp.memcached.memoryUsage.type=nodeSnmp
report.netsnmp.memcached.memoryUsage.command=--title=&quot;Memcached Memory Usage&quot; \
 --vertical-label=&quot;Bytes&quot; \
 DEF:used={rrd1}:mcd-bytes:AVERAGE \
 DEF:max={rrd2}:mcd-limitMaxbytes:AVERAGE \
 CDEF:free=max,used,- \
 AREA:used#1A37EC:&quot;Used &quot; \
 GPRINT:used:AVERAGE:&quot;Avg  \\: %8.2lf %s &quot; \
 GPRINT:used:MIN:&quot;Min  \\: %8.2lf %s &quot; \
 GPRINT:used:MAX:&quot;Max  \\: %8.2lf %s \\n&quot; \
 STACK:free#00CF00:&quot;Free &quot; \
 GPRINT:free:AVERAGE:&quot;Avg  \\: %8.2lf %s &quot; \
 GPRINT:free:MIN:&quot;Min  \\: %8.2lf %s &quot; \
 GPRINT:free:MAX:&quot;Max  \\: %8.2lf %s \\n&quot; \
 LINE1:max#000000:&quot;Max  &quot; \
 GPRINT:max:AVERAGE:&quot;Avg  \\: %8.2lf %s &quot; \
 GPRINT:max:MIN:&quot;Min  \\: %8.2lf %s &quot; \
 GPRINT:max:MAX:&quot;Max  \\: %8.2lf %s \\n&quot;</pre></div></div>

<p>Derzeit werden noch mehr Daten aufgezeichnet als überhaupt für die Graphen benötigt werden. Mal sehen ob sich noch weitere sinnvolle Graphen aus den Daten generieren lassen&#8230;</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/opennms-memcached-mit-snmp-uberwachen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVG Content-Type setzen</title>
		<link>http://www.bergercity.de/linux/svg-content-type-setzen/</link>
		<comments>http://www.bergercity.de/linux/svg-content-type-setzen/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 09:31:41 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1638</guid>
		<description><![CDATA[Um beim Apache den Content-Type für *.svg Dateien korrekt zu setzen: &#60;FilesMatch &#34;\.(svg&#124;SVG)$&#34; &#62; ForceType image/svg+xml &#60;/FilesMatch&#62;]]></description>
			<content:encoded><![CDATA[<p>Um beim Apache den Content-Type für *.svg Dateien korrekt zu setzen:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">FilesMatch</span> <span style="color: #7f007f;">&quot;<span style="color: #000099; font-weight: bold;">\.</span>(svg|SVG)$&quot;</span> &gt;
<span style="color: #00007f;">ForceType</span> image/svg+xml
&lt;/<span style="color: #000000; font-weight:bold;">FilesMatch</span>&gt;</pre></div></div>


<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/svg-content-type-setzen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nachtrag: VLC WM-Streaming</title>
		<link>http://www.bergercity.de/tools/nachtrag-vlc-wm-streaming/</link>
		<comments>http://www.bergercity.de/tools/nachtrag-vlc-wm-streaming/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:33:01 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1628</guid>
		<description><![CDATA[Nur damit ich die Kommandos in 4 (oder 2) Jahren nicht vergesse: #ARD cvlc dvb-t:// :dvb-frequency=690000000 :dvb-bandwith=8 :program=256 \ --sout '#standard{access=http,mux=ogg,dst=0.0.0.0:8080}' #ZDF cvlc dvb-t:// :dvb-frequency=586000000 :dvb-bandwith=8 :program=514 \ --sout '#standard{access=http,mux=ogg,dst=0.0.0.0:8080}' #Eurosport (Update) cvlc dvb-t:// :dvb-frequency=722000000 :dvb-bandwith=8 :program=16420 \ --sout '#standard{access=http,mux=ogg,dst=0.0.0.0:8080}' Das Paket für den VLC ohne GUI unter Ubuntu heißt &#8220;vlc-nox&#8221;. Damit wird das Signal [...]]]></description>
			<content:encoded><![CDATA[<p>Nur damit ich die Kommandos in 4 (oder 2) Jahren nicht vergesse:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#ARD</span>
cvlc dvb-t:<span style="color: #000000; font-weight: bold;">//</span> :dvb-frequency=<span style="color: #000000;">690000000</span> :dvb-bandwith=<span style="color: #000000;">8</span> :<span style="color: #007800;">program</span>=<span style="color: #000000;">256</span> \
<span style="color: #660033;">--sout</span> <span style="color: #ff0000;">'#standard{access=http,mux=ogg,dst=0.0.0.0:8080}'</span>
<span style="color: #666666; font-style: italic;">#ZDF</span>
cvlc dvb-t:<span style="color: #000000; font-weight: bold;">//</span> :dvb-frequency=<span style="color: #000000;">586000000</span> :dvb-bandwith=<span style="color: #000000;">8</span> :<span style="color: #007800;">program</span>=<span style="color: #000000;">514</span> \
<span style="color: #660033;">--sout</span> <span style="color: #ff0000;">'#standard{access=http,mux=ogg,dst=0.0.0.0:8080}'</span>
<span style="color: #666666; font-style: italic;">#Eurosport (Update)</span>
cvlc dvb-t:<span style="color: #000000; font-weight: bold;">//</span> :dvb-frequency=<span style="color: #000000;">722000000</span> :dvb-bandwith=<span style="color: #000000;">8</span> :<span style="color: #007800;">program</span>=<span style="color: #000000;">16420</span> \
<span style="color: #660033;">--sout</span> <span style="color: #ff0000;">'#standard{access=http,mux=ogg,dst=0.0.0.0:8080}'</span></pre></div></div>

<p>Das Paket für den VLC ohne GUI unter Ubuntu heißt &#8220;vlc-nox&#8221;. Damit wird das Signal vom DVB-T USB-Stick im Raum Düsseldorf per HTTP Port 8080 im lokalen Netz verteilt. Bei vielen Clients sollte man lieber per Multicast streamen&#8230;</p>
<p><strong>Update:</strong> Es gibt doch tatsächlich noch ein paar Tour-de-France gucker heute, daher auch noch das Kommando für Eurosport.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/tools/nachtrag-vlc-wm-streaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 NICs mit Policy Based Routing (PBR)</title>
		<link>http://www.bergercity.de/linux/2-nics-mit-policy-based-routing-pbr/</link>
		<comments>http://www.bergercity.de/linux/2-nics-mit-policy-based-routing-pbr/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 21:52:20 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[PBR]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1617</guid>
		<description><![CDATA[Es gibt viele Gründe für 2 Netzwerkkarten im Server. Sollen diese in unterschiedliche Netze angebunden werden gibt es Probleme weil normalerweise nur ein Standardgateway existiert. Der Traffic verlässt zwar korrekt den Server über die gesetzten Routen, jedoch die Pakete an fremde Ziele verlassen den Server immer über die default-route, also u.U. nicht über das richtige [...]]]></description>
			<content:encoded><![CDATA[<p>Es gibt viele Gründe für 2 Netzwerkkarten im Server. Sollen diese in unterschiedliche Netze angebunden werden gibt es Probleme weil normalerweise nur ein Standardgateway existiert. </p>
<p>Der Traffic verlässt zwar korrekt den Server über die gesetzten Routen, jedoch die Pakete an fremde Ziele verlassen den Server immer über die default-route, also u.U. nicht über das richtige Interface. </p>
<p>Folgend kurz die Schritte zum Einrichten eines Policy-Based Routing unter Debian/Ubuntu&#8230;</p>
<h4>Ausgangslage</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># route -n</span>
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.7.56    0.0.0.0         255.255.255.248 U     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span> eth0
10.10.6.32    0.0.0.0         255.255.255.224 U     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span> eth1</pre></div></div>

<h4>Neue Einträge anlegen</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1 dmz-a&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iproute2<span style="color: #000000; font-weight: bold;">/</span>rt_tables
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;2 dmz-b&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iproute2<span style="color: #000000; font-weight: bold;">/</span>rt_tables</pre></div></div>

<h4>eth0 Route anlegen</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ip route add 10.10.7.56<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">29</span> dev eth0 src 10.10.7.58 table dmz-a
ip route add default via 10.10.7.57 dev eth0 table dmz-a
ip rule add from 10.10.7.58<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span> table dmz-a
ip rule add to 10.10.7.58<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span> table dmz-a</pre></div></div>

<h4>eth1 Route anlegen</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ip route add 10.10.6.32<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">27</span> dev eth1 src 10.10.6.35 table dmz-b
ip route add default via 10.10.6.33 dev eth1 table dmz-b
ip rule add from 10.10.6.35<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span> table dmz-b
ip rule add to 10.10.6.35<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span> table dmz-b</pre></div></div>

<p>Das Kommando &#8220;ip route show&#8221; sollte jetzt die entsprechenden Einträge zeigen.<br />
Theoretisch könnte man sich das PBR für eine der beiden NICs sparen wenn man dort einfach die klassische default-route setzt. <a href="http://www.linuxhorizon.ro/iproute2.html">Hier</a> noch eine ausführliche Anleitung zum Thema.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/2-nics-mit-policy-based-routing-pbr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update auf OpenNMS 1.8 (Cardinal)</title>
		<link>http://www.bergercity.de/linux/update-auf-opennms-1-8-cardinal/</link>
		<comments>http://www.bergercity.de/linux/update-auf-opennms-1-8-cardinal/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 20:20:07 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenNMS]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1602</guid>
		<description><![CDATA[Es ist soweit: OpenNMS 1.8 ist da. Eher unbeabsichtigt kam ich soeben in die Lage unser NMS auf Version 1.8 zu hieven. Eigentlich wollte ich nur ein paar Updates einspielen und rechnete nicht damit, dass ein Major-Update darunter war . Glücklicherweise lief alles bis auf eine Kleinigkeit problemlos. Da ich das OpenNMS-repository in der sources.list [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bergercity.de/wp-content/uploads/2009/11/opennms.png" alt="opennms" title="opennms" width="197" height="54" class="alignright size-full wp-image-1114" />Es ist soweit: <a href="http://www.adventuresinoss.com/?p=1676">OpenNMS 1.8 ist da</a>. Eher unbeabsichtigt kam ich soeben in die Lage unser NMS auf Version 1.8 zu hieven. Eigentlich wollte ich nur ein paar Updates einspielen und rechnete nicht damit, dass ein Major-Update darunter war <img src='http://www.bergercity.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Glücklicherweise lief alles bis auf eine Kleinigkeit problemlos.</p>
<p>Da ich das <a href="http://www.opennms.org/wiki/Installation:Debian">OpenNMS-repository</a> in der sources.list habe, reichte mein routinemäßig durchgeführtes &#8220;apt-get update &amp;&amp; apt-get upgrade&#8221; um OpenNMS auf 1.8 zu bringen. Die Fragen zum Überschreiben diverser Konfigurationsdateien habe ich alle mit &#8220;N&#8221; beantwortet. Die neuen Dateien werden dann mit *.dpkg-dist angelegt. Anschließend bin ich die Änderungen <a href="http://blog.it4sport.de/2010/03/22/opennms-neue-configfiles-xml-rpmnew-einspielen/">manuell durchgegangen</a> &#8211; schließlich möchte ich nichts neues verpassen und aber auch meine alten Daten weiterverwenden.</p>
<p>OpenNMS startete. Leider konnte ich mich nicht in das Webinterface einloggen. Irgendeine Fehlermeldung die Datenbank betreffend. Hmm, da scheint apt wohl die Datenbank nicht aktualisiert zu haben (warum eigentlich nicht?). Da ich nicht wusste was zu tun ist, bin ich nochmal den oben erwähnten Wiki-Eintrag durchgegangen. Im Abschnitt &#8220;Initialize OpenNMS and the Database&#8221; fand sich dann der unscheinbare aber wichtige Satz:</p>
<blockquote><p>Upon upgrade, you should run this command again to make sure your database schema and other things required at startup are up-to-date</p></blockquote>
<p>Also folgendes Kommando ausgeführt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>opennms<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-dis</span></pre></div></div>

<p>Anschließend konnte ich mich wieder einloggen. Auf dem ersten Blick scheint alles das Update überstanden zu haben. Die custom-Poller arbeiten und meine Graphen werden weiter aufgezeichnet. Jetzt schaue ich mir erst mal die neuen Features an&#8230;</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/update-auf-opennms-1-8-cardinal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grub2: Einmal Windows booten</title>
		<link>http://www.bergercity.de/linux/grub2-einmal-windows-booten/</link>
		<comments>http://www.bergercity.de/linux/grub2-einmal-windows-booten/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 10:01:54 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[grub2]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[zenity]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1590</guid>
		<description><![CDATA[Ubuntu Lucid verwendet grub2. Manchmal möchte man nur einmal ein anderes OS booten ohne danach auf den Boot-Timeout zu warten und den richtigen Grub-Eintrag auszuwählen. Vorbereitung Folgende Zeile in der /etc/default/grub ändern und danach einmalig &#8220;sudo update-grub&#8221; ausführen: # /etc/default/grub GRUB_DEFAULT=saved sudo update-grub Benutzung # Windows 7 nur beim nächsten Booten setzen und danach Neustart [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu Lucid verwendet grub2. Manchmal möchte man nur einmal ein anderes OS booten ohne danach auf den Boot-Timeout zu warten und den richtigen Grub-Eintrag auszuwählen.</p>
<h4>Vorbereitung</h4>
<p>Folgende Zeile in der /etc/default/grub ändern und danach einmalig &#8220;sudo update-grub&#8221; ausführen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/default/grub</span>
<span style="color: #007800;">GRUB_DEFAULT</span>=saved</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-grub</pre></div></div>

<h4>Benutzung</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Windows 7 nur beim nächsten Booten setzen und danach Neustart</span>
grub-reboot <span style="color: #ff0000;">&quot;Windows 7 (loader) (on /dev/sda2)&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> reboot
&nbsp;
<span style="color: #666666; font-style: italic;"># Grub Menüeintrag Nr. 3  nur beim nächsten Booten setzen und danach Neustart</span>
grub-reboot <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> reboot <span style="color: #666666; font-style: italic;"># (fängt bei 0 an zu zählen)</span></pre></div></div>

<h4>Verknüpfung unter Gnome</h4>
<p>Dafür ist mal wieder <a href="http://www.bergercity.de/linux/passworter-generieren-mit-gnome-zenity/">zenity</a> ganz praktisch: Verknüpfung zum folgenden Kommando anlegen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'zenity --question --text=&quot;Wirklich rebooten?&quot;; if [ $? -eq 0 ]; then gksudo grub-reboot &quot;Windows 7 (loader) (on /dev/sda2)&quot; &amp;&amp; gksudo reboot; fi'</span></pre></div></div>


<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/grub2-einmal-windows-booten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu einrichten</title>
		<link>http://www.bergercity.de/linux/ubuntu-einrichten/</link>
		<comments>http://www.bergercity.de/linux/ubuntu-einrichten/#comments</comments>
		<pubDate>Mon, 31 May 2010 20:46:34 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1575</guid>
		<description><![CDATA[Für das nächste Mal schreibe ich mir jetzt die Schritte auf die ich durchführe wenn ich Ubuntu Desktop installiere. Natürlich ist die Zusammenstellung eines Systems immer individuell &#8211; dieses ist halt meines Repositories erweitern und updaten sudo add-apt-repository ppa:ubuntu-wine/ppa sudo add-apt-repository ppa:mozillateam/firefox-stable sudo add-apt-repository ppa:dnjl/virtualization sudo apt-get update sudo apt-get upgrade Pakete installieren sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>Für das nächste Mal schreibe ich mir jetzt die Schritte auf die ich durchführe wenn ich Ubuntu Desktop installiere. Natürlich ist die Zusammenstellung eines Systems immer individuell &#8211; dieses ist halt meines <img src='http://www.bergercity.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h4>Repositories erweitern und updaten</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:ubuntu-wine<span style="color: #000000; font-weight: bold;">/</span>ppa
<span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:mozillateam<span style="color: #000000; font-weight: bold;">/</span>firefox-stable
<span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:dnjl<span style="color: #000000; font-weight: bold;">/</span>virtualization
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<h4>Pakete installieren</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> \
ttf-mscorefonts-installer \
thunderbird \
virt-manager \
hotssh \
wine</pre></div></div>

<h4>Schriftenrendering verbessern</h4>
<p>Da ich mich irgendwie nicht so richtig mit Anti-Alias Schriftarten auf LCD Monitoren anfreunden kann und das Font-Styling von Windows XP mag, stelle ich zuerst das Font-Rendering um (laut <a href="http://www.sharpfonts.com/">www.sharpfonts.com</a>):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ttf-mscorefonts-installer
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.sharpfonts.com<span style="color: #000000; font-weight: bold;">/</span>fontconfig.tbz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvjpf fontconfig.tbz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.sharpfonts.com<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>tahoma32.exe
<span style="color: #c20cb9; font-weight: bold;">sudo</span> cabextract <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>truetype<span style="color: #000000; font-weight: bold;">/</span> tahoma32.exe</pre></div></div>

<p>Danach unter System->Einstellungen->Erscheinungsbild die &#8220;Schriftart in Anwendungen&#8221; auf Tahoma 8pt setzen </p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/ubuntu-einrichten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nitro PDF Doaload</title>
		<link>http://www.bergercity.de/trivial/nitro-pdf-doaload/</link>
		<comments>http://www.bergercity.de/trivial/nitro-pdf-doaload/#comments</comments>
		<pubDate>Mon, 31 May 2010 15:15:28 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Trivial]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1571</guid>
		<description><![CDATA[Seit einiger Zeit meldet sich in den access-logs ein Agent mit &#8220;Nitro PDF Doaload&#8221;.]]></description>
			<content:encoded><![CDATA[<p>Seit einiger Zeit meldet sich in den access-logs ein Agent mit &#8220;Nitro PDF Doaload&#8221;. </p>
<p> <img src='http://www.bergercity.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/trivial/nitro-pdf-doaload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS forwarder</title>
		<link>http://www.bergercity.de/networking/dns-forwarder/</link>
		<comments>http://www.bergercity.de/networking/dns-forwarder/#comments</comments>
		<pubDate>Wed, 12 May 2010 13:02:08 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Bind]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1561</guid>
		<description><![CDATA[Da unsere DNS-Server für fremde Zonen logischerweise direkt die Root-Nameserver befragen hatten wir natürlich auch mit dem DENIC-Problem zu kämpfen. Die google-Nameserver verwende ich normalerweise aus verschiedenen Gründen nicht, aber zur Zeit sind sie willkommen&#8230; Schnell in die named.conf auf den Nameservern eingetragen kann wenigstens wieder gesurft werden. Wenn das Problem vorüber ist wird der [...]]]></description>
			<content:encoded><![CDATA[<p>Da unsere DNS-Server für fremde Zonen logischerweise direkt die Root-Nameserver befragen hatten wir natürlich auch mit dem <a href="http://www.heise.de/newsticker/meldung/DNS-Fehler-legen-Domain-de-lahm-999068.html">DENIC-Problem</a> zu kämpfen. Die google-Nameserver verwende ich normalerweise aus verschiedenen Gründen nicht, aber zur Zeit sind sie willkommen&#8230; Schnell in die named.conf auf den Nameservern eingetragen kann wenigstens wieder gesurft werden. Wenn das Problem vorüber ist wird der forwarder wieder raus genommen.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># named.conf</span>
options <span style="color: #7a0874; font-weight: bold;">&#123;</span>
...
        forwarders <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                8.8.8.8;
                <span style="color: #7a0874; font-weight: bold;">&#125;</span>;
        forward first;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Anscheinend verwendet Google andere TTLs oder einen sonstigen Mechanismus um die Zonen länger gültig zu halten. </p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/networking/dns-forwarder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3 mit memcached beschleunigen</title>
		<link>http://www.bergercity.de/linux/typo3-mit-memcached-beschleunigen/</link>
		<comments>http://www.bergercity.de/linux/typo3-mit-memcached-beschleunigen/#comments</comments>
		<pubDate>Sun, 09 May 2010 19:42:04 +0000</pubDate>
		<dc:creator>otto</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Memcached]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.bergercity.de/?p=1546</guid>
		<description><![CDATA[Caches sind ein schöne Sache. Gerade bei der Generierung von Webseiten spielen sie ihre Stärke voll aus: im Allgemeinen wird eine Webseite erheblich öfter aufgerufen als verändert. Mittlerweile sollte sich der memcached Daemon herumgesprochen haben (Installation unter Centos). Hier die paar Zeilen um die Typo3 Caches von MySQL auf memcached umzustellen (funktioniert zumindest ab Typo3 [...]]]></description>
			<content:encoded><![CDATA[<p>Caches sind ein schöne Sache. Gerade bei der Generierung von Webseiten spielen sie ihre Stärke voll aus: im Allgemeinen wird eine Webseite erheblich öfter aufgerufen als verändert.</p>
<p>Mittlerweile sollte sich der <a href="http://memcached.org/">memcached</a> Daemon herumgesprochen haben (<a href="http://www.bergercity.de/linux/memcached-unter-centos-via-epel/">Installation unter Centos</a>). Hier die paar Zeilen um die Typo3 Caches von MySQL auf memcached umzustellen (funktioniert zumindest ab Typo3 4.3 on the fly).</p>
<p>In der typo3conf/localconf.php folgendes eintragen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$TYPO3_CONF_VARS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SYS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'useCachingFramework'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'1'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$TYPO3_CONF_VARS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SYS'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'caching'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cacheConfigurations'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'cache_pages'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'backend'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'t3lib_cache_backend_MemcachedBackend'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">'servers'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost:11211'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'cache_pagesection'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'backend'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'t3lib_cache_backend_MemcachedBackend'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">'servers'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost:11211'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'cache_hash'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'backend'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'t3lib_cache_backend_MemcachedBackend'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">'servers'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost:11211'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Das sollte es gewesen sein, die Tabellen cache_pages, &#8216;cache_pagesection und cache_hash können getrost geleert werden und sollten nicht mehr von Typo3 verwendet werden. </p>
<p><strong>Update:</strong> localconf.php Code changed</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bergercity.de/linux/typo3-mit-memcached-beschleunigen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
