<?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>Debian Tutorials &#187; mrtg</title>
	<atom:link href="http://www.debiantutorials.com/tag/mrtg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 18 Aug 2010 00:35:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Monitoring PowerDNS with MRTG</title>
		<link>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/</link>
		<comments>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[powerdns]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/monitoring-powerdns-with-mrtg/</guid>
		<description><![CDATA[Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file and you're good to go!
apt-get install libsnmp-session-perl mrtg

Add this to a config file, for example /etc/mrtg.cfg (pico /etc/mrtg.cfg)
Interval: 5
WorkDir: /var/www/mrtg
WriteExpires: yes
Options[_]: growright,nopercent
XSize[_]: 600
&#160;
Target[udp-queries]: `/etc/init.d/pdns mrtg udp-queries udp-answers`
Options[udp-queries]: growright,nopercent,perminute
MaxBytes[udp-queries]: 600000
AbsMax[udp-queries]: 600000
Title[udp-queries]: Queries per minute
PageTop[udp-queries]: &#60;h1&#62;Queries per minute&#60;/h1&#62;
WithPeak[udp-queries]: ymwd
YLegend[udp-queries]: queries/minute
ShortLegend[udp-queries]: q/m
LegendI[udp-queries]: [...]]]></description>
			<content:encoded><![CDATA[<p>Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file and you're good to go!</p>
<p><code>apt-get install libsnmp-session-perl mrtg<br />
</code></p>
<p><span id="more-16"></span>Add this to a config file, for example /etc/mrtg.cfg (pico /etc/mrtg.cfg)</p>
<p><code>Interval: 5<br />
WorkDir: /var/www/mrtg<br />
WriteExpires: yes<br />
Options[_]: growright,nopercent<br />
XSize[_]: 600<br />
&nbsp;<br />
Target[udp-queries]: `/etc/init.d/pdns mrtg udp-queries udp-answers`<br />
Options[udp-queries]: growright,nopercent,perminute<br />
MaxBytes[udp-queries]: 600000<br />
AbsMax[udp-queries]: 600000<br />
Title[udp-queries]: Queries per minute<br />
PageTop[udp-queries]: &lt;h1&gt;Queries per minute&lt;/h1&gt;<br />
WithPeak[udp-queries]: ymwd<br />
YLegend[udp-queries]: queries/minute<br />
ShortLegend[udp-queries]: q/m<br />
LegendI[udp-queries]: udp-questions<br />
LegendO[udp-queries]: udp-answers<br />
&nbsp;<br />
Target[perc-failed]: `/etc/init.d/pdns mrtg udp-queries udp-answers`<br />
Options[perc-failed]: growright,dorelpercent,perminute<br />
MaxBytes[perc-failed]: 600000<br />
AbsMax[perc-failed]: 600000<br />
Title[perc-failed]: Queries per minute, with percentage success<br />
PageTop[perc-failed]: &lt;h1&gt;Queries per minute, with percentage success&lt;/h1&gt;<br />
WithPeak[perc-failed]: ymwd<br />
YLegend[perc-failed]: queries/minute<br />
ShortLegend[perc-failed]: q/m<br />
LegendI[perc-failed]: udp-questions<br />
LegendO[perc-failed]: udp-answers<br />
&nbsp;<br />
Target[packetcache-rate]: `/etc/init.d/pdns mrtg packetcache-hit udp-queries`<br />
Options[packetcache-rate]: growright,dorelpercent,perminute<br />
Title[packetcache-rate]: packetcache hitrate<br />
MaxBytes[packetcache-rate]: 600000<br />
AbsMax[packetcache-rate]: 600000<br />
PageTop[packetcache-rate]: &lt;h1&gt;packetcache hitrate&lt;/h1&gt;<br />
WithPeak[packetcache-rate]: ymwd<br />
YLegend[packetcache-rate]: queries/minute<br />
ShortLegend[packetcache-rate]: q/m<br />
LegendO[packetcache-rate]: total<br />
LegendI[packetcache-rate]: hit<br />
&nbsp;<br />
Target[packetcache-missrate]: `/etc/init.d/pdns mrtg packetcache-miss udp-queries`<br />
Options[packetcache-missrate]: growright,dorelpercent,perminute<br />
Title[packetcache-missrate]: packetcache MISSrate<br />
MaxBytes[packetcache-missrate]: 600000<br />
AbsMax[packetcache-missrate]: 600000<br />
PageTop[packetcache-missrate]: &lt;h1&gt;packetcache MISSrate&lt;/h1&gt;<br />
WithPeak[packetcache-missrate]: ymwd<br />
YLegend[packetcache-missrate]: queries/minute<br />
ShortLegend[packetcache-missrate]: q/m<br />
LegendO[packetcache-missrate]: total<br />
LegendI[packetcache-missrate]: MISS<br />
&nbsp;<br />
Target[latency]: `/etc/init.d/pdns mrtg latency`<br />
Options[latency]: growright,nopercent,gauge<br />
MaxBytes[latency]: 600000<br />
AbsMax[latency]: 600000<br />
Title[latency]: Query/answer latency<br />
PageTop[latency]: &lt;h1&gt;Query/answer latency&lt;/h1&gt;<br />
WithPeak[latency]: ymwd<br />
YLegend[latency]: usec<br />
ShortLegend[latency]: usec<br />
LegendO[latency]: latency<br />
LegendI[latency]: latency<br />
&nbsp;<br />
Target[recursing]: `/etc/init.d/pdns mrtg recursing-questions recursing-answers`<br />
Options[recursing]: growright,nopercent,gauge<br />
MaxBytes[recursing]: 600000<br />
AbsMax[recursing]: 600000<br />
Title[recursing]: Recursive questions/answers<br />
PageTop[recursing]: &lt;h1&gt;Recursing questions/answers&lt;/h1&gt;<br />
WithPeak[recursing]: ymwd<br />
YLegend[recursing]: queries/minute<br />
ShortLegend[recursing]: q/m<br />
LegendO[recursing]: recursing-questions<br />
LegendI[recursing]: recursing-answers<br />
</code></p>
<p>Make mrtg create a new report every 5 minutes by adding the following line in crontab (type crontab -e):</p>
<p><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * env LANG=C /usr/bin/mrtg /etc/mrtg.cfg<br />
</code></p>
<p>Create a summary page showing all graphs:</p>
<p><code>indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html<br />
</code></p>
<p>If using the default mrtg/apache configuration you can access the graphs here: http://yourserver/mrtg</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
