<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Homo-Adminus Blog - Latest Comments in How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://homo-adminus.disqus.com/</link><description></description><language>en</language><lastBuildDate>Fri, 14 Dec 2007 05:07:03 -0000</lastBuildDate><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460340</link><description>Perfect, just what I needed - thanks :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamlesh</dc:creator><pubDate>Fri, 14 Dec 2007 05:07:03 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460339</link><description>Hi,&lt;br&gt;i've installed get_if_stats.pl, and my configuration is:&lt;br&gt;&lt;br&gt;Target[webpec1eth0]: `/usr/local/bin/get_if_stats.pl eth0`&lt;br&gt;Options[webpec1eth0]: gauge,noinfo, nopercent, growright, nobanner&lt;br&gt;Title[webpec1eth0]:  Traffico IN/OUT(eth0)&lt;br&gt;MaxBytes[webpec1eth0]: 100000000&lt;br&gt;PageTop[webpec1eth0]: Traffico interfaccia (eth0)&lt;br&gt;#&lt;br&gt;Target[webpec1eth1]: `/usr/local/bin/get_if_stats.pl eth1`&lt;br&gt;Options[webpec1eth1]: gauge,noinfo, nopercent, growright, nobanner&lt;br&gt;Title[webpec1eth1]:  Traffico IN/OUT(eth1)&lt;br&gt;MaxBytes[webpec1eth1]: 100000000&lt;br&gt;PageTop[webpec1eth1]: Traffico interfaccia (eth1)&lt;br&gt;&lt;br&gt;Eth0 graph is correct, while the eth1 graph shows empty values ?&lt;br&gt;If I run the script on command line I get:&lt;br&gt;227419173&lt;br&gt;261530900&lt;br&gt;0&lt;br&gt;0&lt;br&gt;&lt;br&gt;thanks &lt;br&gt;&lt;br&gt;andrea b</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea</dc:creator><pubDate>Thu, 30 Aug 2007 10:08:06 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460337</link><description>As for me i don't like OpenBSD.&lt;br&gt;So, Linux Forewer ))))</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Свадебный форум</dc:creator><pubDate>Fri, 27 Jul 2007 05:10:21 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460338</link><description>Hi,&lt;br&gt;&lt;br&gt;Do you have any idea how to get this script working on OpenBSD? There is no /proc/net/dev  on OpenBSD.&lt;br&gt;Anyway, nice script, thanks :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dusan</dc:creator><pubDate>Mon, 23 Jul 2007 06:38:58 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460336</link><description>sb: is that true (the counter-size) even for 64 bit Linux?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jon</dc:creator><pubDate>Fri, 24 Nov 2006 07:34:47 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460335</link><description>Traffic monitoring without snmp has at least two caveats:&lt;br&gt;&lt;br&gt;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.&lt;br&gt;&lt;br&gt;2) Related to (1), the SNMP client can tell if the counter has been reset because of a reboot, as it knows the server's uptime (SysUpTime).&lt;br&gt;&lt;br&gt;Have you tried tinysnmp? Its memory footprint is smaller than perl's ;-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sb</dc:creator><pubDate>Tue, 25 Apr 2006 17:30:48 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460334</link><description>2Bor: Thanks for example, but such complex config file is not so easily readable/modificable and that is why I've created my script ;-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scoundrel</dc:creator><pubDate>Tue, 11 Apr 2006 08:38:31 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460333</link><description>Необязательно как скрипт делать ;)&lt;br&gt;вот поделюсь своими&lt;br&gt;&lt;br&gt;&lt;br&gt;#####################################################################&lt;br&gt;#&lt;br&gt;# eth0 traffic graphing section from /proc/net/dev&lt;br&gt;# change "grep eth0" to something else to measure a different device&lt;br&gt;#&lt;br&gt;Target[eth0]: `perl -e '@a=split(/[:\s]+/,qx(grep eth0 /proc/net/dev));printf "%.0f\n%.0f\n1\neth0 traffic\n",$a[2],$a[10];'`;&lt;br&gt;Options[eth0]: dorelpercent, growright, nobanner, noinfo, transparent&lt;br&gt;MaxBytes[eth0]: 2000000&lt;br&gt;AbsMax[eth0]: 10000000&lt;br&gt;kilo[eth0]: 1024&lt;br&gt;YLegend[eth0]: Bytes per second&lt;br&gt;ShortLegend[eth0]: B/s&lt;br&gt;Legend1[eth0]: Incoming Traffic in Bytes per second&lt;br&gt;Legend2[eth0]: Outgoing Traffic in Bytes per second&lt;br&gt;LegendI[eth0]:  In:&lt;br&gt;LegendO[eth0]:  Out:&lt;br&gt;Title[eth0]: net eth0 traffic&lt;br&gt;PageTop[eth0]: net eth0 traffic&lt;br&gt;#####################################################################&lt;br&gt;&lt;br&gt;#####################################################################&lt;br&gt;# # alternative eth0 traffic graphing section&lt;br&gt;# using "sar" instead of /proc/*&lt;br&gt;#&lt;br&gt;Target[eth0sar]: `perl -e 'printf "%.0f\n%.0f\n1\neth0sar traffic\n",(qx(/usr/bin/sar -n DEV | grep eth0 | tail -n 2)=~/eth0\s+[^\s]+\s+[^\s]+\s+([^\s]+)\s+([^\s]+)/)'`;&lt;br&gt;Options[eth0sar]: dorelpercent, gauge, growright, nobanner, noinfo, transparent&lt;br&gt;MaxBytes[eth0sar]: 2000000&lt;br&gt;AbsMax[eth0sar]: 10000000&lt;br&gt;kilo[eth0sar]: 1024&lt;br&gt;YLegend[eth0sar]: Bytes per second&lt;br&gt;ShortLegend[eth0sar]: B/s&lt;br&gt;Legend1[eth0sar]: Incoming Traffic in Bytes per second&lt;br&gt;Legend2[eth0sar]: Outgoing Traffic in Bytes per second&lt;br&gt;LegendI[eth0sar]:  In:&lt;br&gt;LegendO[eth0sar]:  Out:&lt;br&gt;Title[eth0sar]: net eth0sar traffic&lt;br&gt;PageTop[eth0sar]: net eth0sar traffic&lt;br&gt;#####################################################################</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bor</dc:creator><pubDate>Tue, 11 Apr 2006 08:33:14 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460332</link><description>Cool stuff! Even if the load of an SNMP daemon wasn't an issue (and it is for me); this saves you worrying about configuring communities properly, security issues, etc.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jon</dc:creator><pubDate>Mon, 10 Apr 2006 06:42:19 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460331</link><description>I am really glad that this small note can help you. And thanks for your comment.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scoundrel</dc:creator><pubDate>Wed, 05 Apr 2006 10:46:04 -0000</pubDate></item><item><title>Re: How To Get Data For Mrtg Without Running SNMP Daemon?</title><link>http://blog.kovyrin.net/2006/04/05/how-to-get-mrtg-wo-snmp/#comment-2460330</link><description>Works excellent! Thanks! I've tried snmp with Cacti, but it almost killed my poor router. Now, it's graphing easily :)&lt;br&gt;&lt;br&gt;Just one sidenote. If you're installing clean mrtg, then add this to mrtg.conf:&lt;br&gt;&lt;br&gt;WorkDir: /var/www/htdocs/mrtg&lt;br&gt;&lt;br&gt;That direcotory will be a place where mrtg will dump pngg raphs, log and html files.&lt;br&gt;&lt;br&gt;Thanks Alexey!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kotnik</dc:creator><pubDate>Wed, 05 Apr 2006 10:16:28 -0000</pubDate></item></channel></rss>