<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How To Get Data For Mrtg Without Running SNMP Daemon?</title>
	<atom:link href="http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/feed/" rel="self" type="application/rss+xml" />
	<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/</link>
	<description>Yet Another Admin&#039;s blog</description>
	<lastBuildDate>Thu, 04 Feb 2010 07:58:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hamlesh</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-181056</link>
		<dc:creator>Hamlesh</dc:creator>
		<pubDate>Sat, 20 Mar 2010 10:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-181056</guid>
		<description>Perfect, just what I needed - thanks :)</description>
		<content:encoded><![CDATA[<p>Perfect, just what I needed &#8211; thanks <img src='http://kovyrin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-135262</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Sat, 20 Mar 2010 14:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-135262</guid>
		<description>Hi,
i&#039;ve installed get_if_stats.pl, and my configuration is:

Target[webpec1eth0]: `/usr/local/bin/get_if_stats.pl eth0`
Options[webpec1eth0]: gauge,noinfo, nopercent, growright, nobanner
Title[webpec1eth0]:  Traffico IN/OUT(eth0)
MaxBytes[webpec1eth0]: 100000000
PageTop[webpec1eth0]: Traffico interfaccia (eth0)
#
Target[webpec1eth1]: `/usr/local/bin/get_if_stats.pl eth1`
Options[webpec1eth1]: gauge,noinfo, nopercent, growright, nobanner
Title[webpec1eth1]:  Traffico IN/OUT(eth1)
MaxBytes[webpec1eth1]: 100000000
PageTop[webpec1eth1]: Traffico interfaccia (eth1)

Eth0 graph is correct, while the eth1 graph shows empty values ?
If I run the script on command line I get:
227419173
261530900
0
0

thanks 

andrea b</description>
		<content:encoded><![CDATA[<p>Hi,<br />
i&#8217;ve installed get_if_stats.pl, and my configuration is:</p>
<p>Target[webpec1eth0]: `/usr/local/bin/get_if_stats.pl eth0`<br />
Options[webpec1eth0]: gauge,noinfo, nopercent, growright, nobanner<br />
Title[webpec1eth0]:  Traffico IN/OUT(eth0)<br />
MaxBytes[webpec1eth0]: 100000000<br />
PageTop[webpec1eth0]: Traffico interfaccia (eth0)<br />
#<br />
Target[webpec1eth1]: `/usr/local/bin/get_if_stats.pl eth1`<br />
Options[webpec1eth1]: gauge,noinfo, nopercent, growright, nobanner<br />
Title[webpec1eth1]:  Traffico IN/OUT(eth1)<br />
MaxBytes[webpec1eth1]: 100000000<br />
PageTop[webpec1eth1]: Traffico interfaccia (eth1)</p>
<p>Eth0 graph is correct, while the eth1 graph shows empty values ?<br />
If I run the script on command line I get:<br />
227419173<br />
261530900<br />
0<br />
0</p>
<p>thanks </p>
<p>andrea b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Свадебный форум</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-123138</link>
		<dc:creator>Свадебный форум</dc:creator>
		<pubDate>Sat, 20 Mar 2010 09:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-123138</guid>
		<description>As for me i don&#039;t like OpenBSD.
So, Linux Forewer ))))</description>
		<content:encoded><![CDATA[<p>As for me i don&#8217;t like OpenBSD.<br />
So, Linux Forewer ))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dusan</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-121545</link>
		<dc:creator>Dusan</dc:creator>
		<pubDate>Sat, 20 Mar 2010 10:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-121545</guid>
		<description>Hi,

Do you have any idea how to get this script working on OpenBSD? There is no /proc/net/dev  on OpenBSD.
Anyway, nice script, thanks :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you have any idea how to get this script working on OpenBSD? There is no /proc/net/dev  on OpenBSD.<br />
Anyway, nice script, thanks <img src='http://kovyrin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-13038</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sat, 20 Mar 2010 12:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-13038</guid>
		<description>sb: is that true (the counter-size) even for 64 bit Linux?</description>
		<content:encoded><![CDATA[<p>sb: is that true (the counter-size) even for 64 bit Linux?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sb</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-689</link>
		<dc:creator>sb</dc:creator>
		<pubDate>Sat, 20 Mar 2010 21:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-689</guid>
		<description>Traffic monitoring without snmp has at least two caveats:

1) The counters in /proc/net/dev (and in the output of ifconfig etc.) are 32bit and will overflow at around 4GiB. SNMP agents (should!) use 64bit counters.

2) Related to (1), the SNMP client can tell if the counter has been reset because of a reboot, as it knows the server&#039;s uptime (SysUpTime).

Have you tried tinysnmp? Its memory footprint is smaller than perl&#039;s ;-)</description>
		<content:encoded><![CDATA[<p>Traffic monitoring without snmp has at least two caveats:</p>
<p>1) The counters in /proc/net/dev (and in the output of ifconfig etc.) are 32bit and will overflow at around 4GiB. SNMP agents (should!) use 64bit counters.</p>
<p>2) Related to (1), the SNMP client can tell if the counter has been reset because of a reboot, as it knows the server&#8217;s uptime (SysUpTime).</p>
<p>Have you tried tinysnmp? Its memory footprint is smaller than perl&#8217;s <img src='http://kovyrin.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scoundrel</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-295</link>
		<dc:creator>Scoundrel</dc:creator>
		<pubDate>Sat, 20 Mar 2010 12:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-295</guid>
		<description>2Bor: Thanks for example, but such complex config file is not so easily readable/modificable and that is why I&#039;ve created my script ;-)</description>
		<content:encoded><![CDATA[<p>2Bor: Thanks for example, but such complex config file is not so easily readable/modificable and that is why I&#8217;ve created my script <img src='http://kovyrin.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bor</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-294</link>
		<dc:creator>Bor</dc:creator>
		<pubDate>Sat, 20 Mar 2010 12:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-294</guid>
		<description>Необязательно как скрипт делать ;)
вот поделюсь своими


#####################################################################
#
# eth0 traffic graphing section from /proc/net/dev
# change &quot;grep eth0&quot; to something else to measure a different device
#
Target[eth0]: `perl -e &#039;@a=split(/[:\s]+/,qx(grep eth0 /proc/net/dev));printf &quot;%.0f\n%.0f\n1\neth0 traffic\n&quot;,$a[2],$a[10];&#039;`;
Options[eth0]: dorelpercent, growright, nobanner, noinfo, transparent
MaxBytes[eth0]: 2000000
AbsMax[eth0]: 10000000
kilo[eth0]: 1024
YLegend[eth0]: Bytes per second
ShortLegend[eth0]: B/s
Legend1[eth0]: Incoming Traffic in Bytes per second
Legend2[eth0]: Outgoing Traffic in Bytes per second
LegendI[eth0]:  In:
LegendO[eth0]:  Out:
Title[eth0]: net eth0 traffic
PageTop[eth0]: net eth0 traffic
#####################################################################

#####################################################################
# # alternative eth0 traffic graphing section
# using &quot;sar&quot; instead of /proc/*
#
Target[eth0sar]: `perl -e &#039;printf &quot;%.0f\n%.0f\n1\neth0sar traffic\n&quot;,(qx(/usr/bin/sar -n DEV &#124; grep eth0 &#124; tail -n 2)=~/eth0\s+[^\s]+\s+[^\s]+\s+([^\s]+)\s+([^\s]+)/)&#039;`;
Options[eth0sar]: dorelpercent, gauge, growright, nobanner, noinfo, transparent
MaxBytes[eth0sar]: 2000000
AbsMax[eth0sar]: 10000000
kilo[eth0sar]: 1024
YLegend[eth0sar]: Bytes per second
ShortLegend[eth0sar]: B/s
Legend1[eth0sar]: Incoming Traffic in Bytes per second
Legend2[eth0sar]: Outgoing Traffic in Bytes per second
LegendI[eth0sar]:  In:
LegendO[eth0sar]:  Out:
Title[eth0sar]: net eth0sar traffic
PageTop[eth0sar]: net eth0sar traffic
#####################################################################</description>
		<content:encoded><![CDATA[<p>Необязательно как скрипт делать <img src='http://kovyrin.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
вот поделюсь своими</p>
<p>#####################################################################<br />
#<br />
# eth0 traffic graphing section from /proc/net/dev<br />
# change &#8220;grep eth0&#8243; to something else to measure a different device<br />
#<br />
Target[eth0]: `perl -e &#8216;@a=split(/[:\s]+/,qx(grep eth0 /proc/net/dev));printf &#8220;%.0f\n%.0f\n1\neth0 traffic\n&#8221;,$a[2],$a[10];&#8217;`;<br />
Options[eth0]: dorelpercent, growright, nobanner, noinfo, transparent<br />
MaxBytes[eth0]: 2000000<br />
AbsMax[eth0]: 10000000<br />
kilo[eth0]: 1024<br />
YLegend[eth0]: Bytes per second<br />
ShortLegend[eth0]: B/s<br />
Legend1[eth0]: Incoming Traffic in Bytes per second<br />
Legend2[eth0]: Outgoing Traffic in Bytes per second<br />
LegendI[eth0]:  In:<br />
LegendO[eth0]:  Out:<br />
Title[eth0]: net eth0 traffic<br />
PageTop[eth0]: net eth0 traffic<br />
#####################################################################</p>
<p>#####################################################################<br />
# # alternative eth0 traffic graphing section<br />
# using &#8220;sar&#8221; instead of /proc/*<br />
#<br />
Target[eth0sar]: `perl -e &#8216;printf &#8220;%.0f\n%.0f\n1\neth0sar traffic\n&#8221;,(qx(/usr/bin/sar -n DEV | grep eth0 | tail -n 2)=~/eth0\s+[^\s]+\s+[^\s]+\s+([^\s]+)\s+([^\s]+)/)&#8217;`;<br />
Options[eth0sar]: dorelpercent, gauge, growright, nobanner, noinfo, transparent<br />
MaxBytes[eth0sar]: 2000000<br />
AbsMax[eth0sar]: 10000000<br />
kilo[eth0sar]: 1024<br />
YLegend[eth0sar]: Bytes per second<br />
ShortLegend[eth0sar]: B/s<br />
Legend1[eth0sar]: Incoming Traffic in Bytes per second<br />
Legend2[eth0sar]: Outgoing Traffic in Bytes per second<br />
LegendI[eth0sar]:  In:<br />
LegendO[eth0sar]:  Out:<br />
Title[eth0sar]: net eth0sar traffic<br />
PageTop[eth0sar]: net eth0sar traffic<br />
#####################################################################</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-278</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sat, 20 Mar 2010 10:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-278</guid>
		<description>Cool stuff! Even if the load of an SNMP daemon wasn&#039;t an issue (and it is for me); this saves you worrying about configuring communities properly, security issues, etc.</description>
		<content:encoded><![CDATA[<p>Cool stuff! Even if the load of an SNMP daemon wasn&#8217;t an issue (and it is for me); this saves you worrying about configuring communities properly, security issues, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scoundrel</title>
		<link>http://kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/comment-page-1/#comment-232</link>
		<dc:creator>Scoundrel</dc:creator>
		<pubDate>Sat, 20 Mar 2010 14:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/04/05/hot-to-get-mrtg-wo-snmp/#comment-232</guid>
		<description>I am really glad that this small note can help you. And thanks for your comment.</description>
		<content:encoded><![CDATA[<p>I am really glad that this small note can help you. And thanks for your comment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
