<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>mrtg &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/mrtg/</link>
	<description>Feed of posts on WordPress.com tagged "mrtg"</description>
	<pubDate>Sat, 26 Dec 2009 20:13:59 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[A Brief description of installing MRTG on CentOS5.3 with Lighttpd]]></title>
<link>http://hoball.wordpress.com/2009/12/07/a-brief-description-of-installing-mrtg-on-centos5-3-with-lighttpd/</link>
<pubDate>Mon, 07 Dec 2009 11:06:40 +0000</pubDate>
<dc:creator>hoball</dc:creator>
<guid>http://hoball.wordpress.com/2009/12/07/a-brief-description-of-installing-mrtg-on-centos5-3-with-lighttpd/</guid>
<description><![CDATA[Requirements: net-snmp, net-snmp-utils, mrtg, lighttpd mrtg : Multi Router Traffic Grapher net-snmp ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Requirements: net-snmp, net-snmp-utils, mrtg, lighttpd</p>
<blockquote><p><strong>mrtg</strong> : Multi Router Traffic Grapher</p>
<p><strong>net-snmp</strong> and <strong>net-snmp-utils</strong> : SNMP (Simple Network Management Protocol) is a protocol used for network management. The NET-SNMP project includes various SNMP tools. net-snmp package contains the snmpd and snmptrapd daemons, documentation, etc. You also want to install the net-snmp-utils package, which contains NET-SNMP utilities.</p></blockquote>
<p><strong>Install the packages</strong></p>
<blockquote><p><code># yum install mrtg net-snmp net-snmp-utils</code></p></blockquote>
<p><strong>Configure snmpd.conf</strong></p>
<blockquote><p><code># cp /etc/snmpd/snmpd.conf /etc/snmpd/snmpd.conf.factory-default </code></p>
<p><code># vi /etc/snmpd/snmpd.conf</code></p></blockquote>
<p><strong>Comment out the contents, append: (<a title="http://www.sofee.cn/blog/2006/10/21/49/" href="http://www.sofee.cn/blog/2006/10/21/49/">http://www.sofee.cn/blog/2006/10/21/49/</a>)</strong></p>
<blockquote>
<pre>##############################################################
# Added by Justin
## sec.name source community
com2sec local   localhost       public
com2sec lan     192.168.1.0/24  public

## group.name sec.model sec.name
group   MyRWGroup       v1      local
group   MyRWGroup       v2c     local
group   MyRWGroup       usm     local
group   MyROGroup       v1      lan
group   MyROGroup       v2c     lan
group   MyROGroup       usm     lan

view all    included  .1                               80
#view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc

## context sec.model sec.level prefix read write notif
access MyROGroup ""      any       noauth    exact      all    none   none
access MyRWGroup ""      any       noauth    exact      all    all    all
rocommunity  public
disk / 100000
disk /mnt/share 500000
##############################################################</pre>
</blockquote>
<p><strong>Save and close the file</strong></p>
<blockquote><p><code># chkconfig snmpd on</code><br />
<code># service snmpd restart</code></p></blockquote>
<p><strong>Make sure you see interface IP, by running the following command:</strong></p>
<blockquote><p><code># snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex</code></p></blockquote>
<p>Sample Outputs:</p>
<blockquote>
<pre><code>IP-MIB::ipAdEntIfIndex.123.xx.yy.zzz = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</code></pre>
</blockquote>
<h5>Configure MRTG</h5>
<blockquote><p><code># vi /etc/mrtg/mrtg.cfg</code></p>
<p>OR</p>
<p><code># /usr/bin/cfgmaker –global ‘WorkDir: /var/www/mrtg’ –output /etc/mrtg/mrtg.cfg public@127.0.0.1</code></p></blockquote>
<blockquote><p>Create the html file</p>
<p><code># indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg</code></p></blockquote>
<p><strong>Configure Lightttpd</strong></p>
<blockquote><p><code># vi /etc/lighttpd/lighttpd.conf</code></p></blockquote>
<blockquote><p>Add a new alias:</p></blockquote>
<blockquote><p><code> alias.url + ( "/mrtg" =&#62; "/var/www/mrtg/www" )</code></p></blockquote>
<blockquote><p>or Append the alias:</p>
<p><code> alias.url += ( "/mrtg" =&#62; "/var/www/mrtg/www" )</code></p></blockquote>
<p><strong>Please read the followings for detailed tutorials or documentation.</strong></p>
<p>English Tutorials:</p>
<p><a title="http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/" href="http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/">http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/</a></p>
<p>Chinese Tutorials:</p>
<p><a title="http://lincf0315.blogspot.com/2007/04/mrtgcentos.html" href="http://lincf0315.blogspot.com/2007/04/mrtgcentos.html">http://lincf0315.blogspot.com/2007/04/mrtgcentos.html</a></p>
<p><a title="http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871" href="http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871">http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871</a></p>
<p><a href="http://www.lslnet.com/linux/f/docs1/i05/big5132597.htm">http://www.lslnet.com/linux/f/docs1/i05/big5132597.htm</a></p>
<p><a title="http://www.sofee.cn/blog/2006/10/21/49/" href="http://www.sofee.cn/blog/2006/10/21/49/">http://www.sofee.cn/blog/2006/10/21/49/</a></p>
<p>Official documentation:</p>
<p><a title="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html" href="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html</a></p>
<p><a title="http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html" href="http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MRTG Implementation Manual]]></title>
<link>http://esal.wordpress.com/2009/10/15/mrtg-implementation-manual/</link>
<pubDate>Thu, 15 Oct 2009 07:46:13 +0000</pubDate>
<dc:creator>esal</dc:creator>
<guid>http://esal.wordpress.com/2009/10/15/mrtg-implementation-manual/</guid>
<description><![CDATA[MRTG Implementation Manual By Florin Prunoiu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><strong>MRTG Implementation Manual</strong></p>
<p style="text-align:center;">By Florin Prunoiu</p>
<p><img class="aligncenter size-full wp-image-1072" title="MRTG Implementation Manual - Florin Prunoiu" src="http://esal.wordpress.com/files/2009/10/mrtg-implementation-manual-florin-prunoiu.jpg" alt="MRTG Implementation Manual - Florin Prunoiu" width="267" height="398" /></p>
<p style="text-align:center;"><span style="color:#0000ff;"><a href="http://www.ziddu.com/download/6747444/MRTGImplementationManual-FlorinPrunoiu.pdf.html"><img src="http://bse.depdiknas.go.id/images_gif/download.gif" border="0" alt="" width="91" height="31" /></a></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tips Para Sysadmin jaringan kecil]]></title>
<link>http://blackpolri.wordpress.com/2009/07/17/tips-para-sysadmin-jaringan-kecil/</link>
<pubDate>Fri, 17 Jul 2009 03:52:34 +0000</pubDate>
<dc:creator>Sandre 28</dc:creator>
<guid>http://blackpolri.wordpress.com/2009/07/17/tips-para-sysadmin-jaringan-kecil/</guid>
<description><![CDATA[Pada kesempatan kali ini saya sebagai Newbie yang baru belajar akan mencoba membahas sedikit mengena]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pada kesempatan kali ini saya sebagai Newbie yang baru belajar akan mencoba membahas sedikit mengenai masaalah Sistem Keamanan Jaringan ala pemula&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  jadi buat para mast3r atau yang ngerasa mast3r, dilarang membaca tulisan ini apalagi mengkritik wkwkwkwkwk sekali lagi ilmu untuk berbagi, Meskipun Saya sendiri belum pernah menjadi sysadmin berkelas berat seperti sysadmin pada google atau facebook :p atau sysadmin kayak perusahan telekomunikasi seperti telkomsel dll, jangankan telkomsel sysadmin di warnet aja belum&#8230; wkwkwkkwkwk tapi setidaknya saya pernah menjadi anggota jaringan DBS dan TIANSI wkwkwkwkwk maksud saya jaringan lokal di rumah saya sendiri&#8230;!<!--more--><br />
oke dari pada banyak bacot, langsung aja&#8230; maksud saya membuat tulisan ini karena terilhami kisah chatting dengan salah satu anggota grup ini, yang menyinggung masalah sysadmin dan keamanan para administrator jaringan kecil seperti admin pada warnet maupun admin warkop (hot spot area)&#8230; nah karena kita membicarakan masalah keamanan jaringan ada baiknya kita menengok beberapa tulisan, seperti &#8220;menyedot bandwith dengan mozilla firefox&#8221; tapi sebenarnya bukan menyedot bandwith tapi lebih tepatnya menggunakan fasilitas proxy yang berganti-ganti agar sealu mendapatkan jatah sebagai user baru dan bekerja menggunakan fasilitas proxy extension pada mozilla (switch proxy) kemudian tools yang bernama “netcut”, wah… pasti teman-teman tidak asing lagi dengan kedua barang diatas, tapi saat ini kita bukan membicarakan masalah menyerang (“itu karena saya tidak tau wkwkwkwkwkwk”) tapi terlebih beberapa saran kepada para admin jaringan kecil agar terhindar dari dampak buruk sedot bandwith ala mozilla dan ARP Poisoning ala netcut (jiah… gaya bicara saya kayak orang professional ajah… <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ) langsung aja download MRTG di <a rel="nofollow" href="http://oss.oetiker.ch/mrtg/pub/?M=D" target="_blank"><span>http://oss.oetiker.ch/mrtg</span>/pub/?M=D</a> untuk memonitor bandwith terus download anti netcut di <a rel="nofollow" href="http://tools4free.com/" target="_blank">http://tools4free.com</a>, MRTG “adalah singkatan dari Multi Router Traffic Grapher, merupakan tools yang berfungsi untuk mengamati besar trafik yang melewati suatu interface tertentu dimana yang bekerja ialah protokol SNMP, kemudian dari data yang diperoleh tersebut, akan dibuat suatu grafik sehingga mudah diamati oleh seorang admin jaringan” (copy paste red;) jadi agar tool ini berfungsi aktifkan dulu fitur SNMP dan telah terinstall Apache web server di OS anda. Kemudian Anti Netcut digunakan untuk mengidentifikasi pengguna netcut (tools untuk melakukan ARP Poisonoing, sehingga computer clint bisa setara sysadmin dalam sebuah workgroup). Ke dua tools ini saya rasa begitu bermanfaat bagi teman-teman yang mengelola sebuah jaringan agar admin dengan mudah menebak IP address yang nakal dalam jaringannya. Sebenarnya masih banyak cara lain yang tak kalah mantafff dari cara ini tapi karena kita berbicara masalah Netcut dan monopoli bandwith dengan browser mozilla jadi saya rasa tools ini cukup… saya biasa menggunakan perintah “shutdown –i” di windows dan memasukkan ip address si anak nakal wkwkwkwk biasanya berhasil tapi bisa juga tidak… tapi cara paling ampuh menurut saya yah langsung datangin orangnya terus jewer telinganya wkwkwkwkwkwkwk. Mohon maaf kalau banyak kekurangan, tapi yah lumayan lah bukan hasil copy paste dari artikel orang, jadi kritikan dan saran tidak diterima <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  belajar untuk selamanya (“ngutip kata-katanya mas Iswan Tri Wahudiono”)… wassalam;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Fire Daemon MRTG Services]]></title>
<link>http://storagedk.wordpress.com/2009/05/02/fire-daemon-mrtg-services/</link>
<pubDate>Sat, 02 May 2009 03:51:33 +0000</pubDate>
<dc:creator>Deka</dc:creator>
<guid>http://storagedk.wordpress.com/2009/05/02/fire-daemon-mrtg-services/</guid>
<description><![CDATA[Contoh konfigurasi di fire daemon untuk MRTG]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Contoh konfigurasi di fire daemon untuk MRTG</p>
<p><img class="alignnone size-full wp-image-23" title="fire-daemon-01" src="http://storagedk.wordpress.com/files/2009/05/fire-daemon-01.jpg" alt="fire-daemon-01" width="410" height="461" /></p>
<p><!--more--></p>
<p><img class="alignnone size-full wp-image-24" title="fire-daemon-02" src="http://storagedk.wordpress.com/files/2009/05/fire-daemon-02.jpg" alt="fire-daemon-02" width="438" height="307" /></p>
<p><img class="alignnone size-full wp-image-25" title="fire-daemon-03" src="http://storagedk.wordpress.com/files/2009/05/fire-daemon-03.jpg" alt="fire-daemon-03" width="450" height="425" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MRTG installation in cpanel]]></title>
<link>http://gnufreakz.wordpress.com/2009/04/19/mrtg-installation-in-cpanel/</link>
<pubDate>Sun, 19 Apr 2009 15:29:28 +0000</pubDate>
<dc:creator>gnufreakz</dc:creator>
<guid>http://gnufreakz.wordpress.com/2009/04/19/mrtg-installation-in-cpanel/</guid>
<description><![CDATA[# Move to your download folder. cd /root/downloads rpm -e mrtg wget  http://www.dedicated-resources.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p># Move to your download folder.<br />
cd /root/downloads<br />
rpm -e mrtg<br />
wget  http://www.dedicated-resources.com/files/mrtg-2.9.17-1cpanel.i386.rpm<br />
Installing the app<br />
rpm -Uvh mrtg-2.9.17-1cpanel.i386.rpm</p>
<p>Moving libpng<br />
cd /usr/lib<br />
mv libpng.so.2 libpng.so.2.OLD<br />
# Creating the symlink<br />
ln -s libpng.so.3 libpng.so.2<br />
# Edit language at and specify only &#8220;en_US&#8221;<br />
pico /etc/sysconfig/i18n</p>
<p># Restarting MRTG<br />
service mrtg restart</p>
<p># Configurating MRTG to allow only our local IP to see the reports at</p>
<p>http://IP/mrtg</p>
<p>vi /usr/local/apache/conf/httpd.conf</p>
<p>#Search for the line (CTRL+W):<br />
# It should look like this:</p>
<p>Options Indexes FollowSymlinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>#After the last line () paste this and change allowed IPs:</p>
<p>order deny,allow<br />
allow from [ SERVER IP ]<br />
allow from [YOUR LOCAL IP]<br />
deny from all</p>
<p># Restarting httpd<br />
service httpd restart<br />
chkconfig &#8211;level 0123456 mrtg on</p>
<p># Edit file:<br />
pico /etc/mrtg/check-email</p>
<p># Change to &#8220;*-H&#8221; &#8220;* -H&#8221;.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Installing MRTG and adding additional Data Sources @ Windows]]></title>
<link>http://usernamedenied.wordpress.com/2009/04/07/installing-mrtg-and-configuring-detailed-graphs-on-windows/</link>
<pubDate>Tue, 07 Apr 2009 19:46:28 +0000</pubDate>
<dc:creator>usernamedenied</dc:creator>
<guid>http://usernamedenied.wordpress.com/2009/04/07/installing-mrtg-and-configuring-detailed-graphs-on-windows/</guid>
<description><![CDATA[This guide explains how to  install MRTG on Windows and monitor different signals like memory and ne]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This guide explains how to  install MRTG on Windows and monitor different signals like memory and network usage.</p>
<p>MRTG is a software used to monitor different &#8220;signals&#8221; and display them in nice graphs.</p>
<p>I will use Windows XP as Operating System but it also works on Windows Server 2003.</p>
<p><!--more--></p>
<p><span style="text-decoration:underline;"><strong>Download MRTG</strong></span></p>
<p>I will install<strong> </strong>mrtg-2.16.2 which can be downloaded <a href="http://oss.oetiker.ch/mrtg/pub/mrtg-2.16.2.zip" target="_blank">here</a>, however you should install the latest version which can be found <a href="http://oss.oetiker.ch/mrtg/pub/?M=D" target="_blank">here</a>.</p>
<p>After downloading it, unpack it to where you want, I will use the following path: <em>C:\mrtg-2.16.2</em></p>
<p><span style="text-decoration:underline;"><strong>Install Perl</strong></span></p>
<p>To run MRTG we need to install Perl first, I would recommend installing ActivePerl which can be found <a href="http://www.activestate.com/activeperl/" target="_blank">here</a>.</p>
<p>It is pretty simple to install Perl so I won&#8217;t cover it, just follow the Setup.</p>
<p><span style="text-decoration:underline;"><strong>Setting up the SNMP Service</strong></span></p>
<p>Browse to <em>Control Panel</em> &#8211; <em>Add or Remove Programs</em> &#8211; <em>Add / Remove Windows Components</em> and then select <em>Management and Monitoring Tools</em> and then click <em>Next</em>.</p>
<p>You will probably be requested to insert the Windows CD to copy the required files.</p>
<p>After installing it, we need to configure it.</p>
<p>Browse to <em>Control Panel</em> &#8211; <em>Administrative Tools</em> &#8211; <em>Services</em> and then find the Service called <em>SNMP Service</em>, double-click on it and then select the <em>Traps</em> tab.</p>
<p>In the <em>Community name </em>textbox, write <strong><em>public</em></strong> and then click the button <em>Add to list</em>.</p>
<p>Now switch to the <em>Security</em> tab.</p>
<p>Add <em><strong>public</strong></em> to the <em>Accepted community names</em> with the <strong><em>READ ONLY</em></strong> <em>community right</em>.</p>
<p>Then select <em>Accept SNMP packets from these hosts</em> and add <em><strong>127.0.0.1</strong></em> to the list.</p>
<p>We have successfully configured SNMP on our Windows machine.</p>
<p><span style="text-decoration:underline;"><strong>Install MRTG</strong></span></p>
<p>Now we need access to a Command Prompt. Click<em> Start</em> &#8211; <em>Run</em> and then insert <strong><em>cmd </em></strong>and press <em>enter</em>.</p>
<p>In my case I have extracted the MRTG files to the following path: <em>C:\mrtg-2.16.2</em></p>
<p><em>cd C:\mrtg-2.16.2</em><em>\bin</em></p>
<p>Now we are going to create our MRTG configuration file, the WorkDir is the Path to where you want the files to be written, for example the public folder of your webserver.</p>
<p><em>perl cfgmaker public@127.0.0.1 &#8211;global &#8220;WorkDir: c:\xampp\htdocs\mrtg&#8221; &#8211;output mrtg.cfg</em></p>
<p>If it doesn&#8217;t output anything, then it means it worked.</p>
<p><em>perl indexmaker &#8211;output index.html mrtg.cfg</em></p>
<p>This will create an html file with the layout. Now copy that index.html file into your WorkDir (in my case <em>c:\xampp\htdocs\mrtg)</em></p>
<p><em>copy index.html </em><em>c:\xampp\htdocs\mrtg</em></p>
<p>Don&#8217;t forget to replace <em>c:\xampp\htdocs\mrtg</em> with your WorkDir!</p>
<p><span style="text-decoration:underline;"><strong>Run MRTG</strong></span></p>
<p>We still need a command-prompt. Execute the following commands</p>
<p><em>cd C:\mrtg-2.16.2</em><em>\bin</em></p>
<p><em>perl mrtg mrtg.cfg</em></p>
<p>You have now manually triggered mrtg to get the data and draw it into the graphs.</p>
<p>Now we need to make this run automatically as it would be quite annoying if you had to manually run this command every 5 minutes..</p>
<p>Open your <em>mrtg.cfg</em> with a texteditor and add the line<strong> RunAsDaemon: yes</strong></p>
<p>Now execute <em>perl mrtg mrtg.cfg once again</em>, MRTG has been started as a daemon, this is quite annoying because the command-prompt has to stay open. You can also create a Windows Service (Click <a href="http://support.microsoft.com/kb/q137890/" target="_blank">here</a> for additional informations)</p>
<p><span style="text-decoration:underline;"><strong>Add Memory Usage and other Data sources</strong></span></p>
<p>First we need to configure the inbuilt Performance Log of Windows. Click on <em>Control Panel</em> &#8211; <em>Admistrative Tools</em> &#8211; <em>Performance</em> &#8211; <em>Performance Logs and Alert</em>s then select <em>Counter Logs</em>, then right-click on the blank window and select <em>New Log Settings</em>.</p>
<p><a rel="attachment wp-att-114" href="http://usernamedenied.wordpress.com/2009/04/07/installing-mrtg-and-configuring-detailed-graphs-on-windows/performance/"><img class="aligncenter size-full wp-image-114" title="performance" src="http://usernamedenied.wordpress.com/files/2009/03/performance.jpg" alt="performance" width="480" height="335" /></a></p>
<p>Now we are going to create a new log, insert a name you want to use and then click <em>OK</em>.</p>
<p>A Counter is only one log, like the memory usage and an object is a collection of informations on memory for example.</p>
<p>Click the button <em>Add Counters</em> or <em>Add Objects</em>.</p>
<p>I am going to add a Counter for this example.</p>
<p>Select <em>Use local Computer counters</em> then select <strong><em>Memory</em></strong> in the <em>Performance Object</em> list then select <em><strong>Avaible MBytes</strong></em> and click <em>Add</em> then <em>Close</em>.</p>
<p><a rel="attachment wp-att-115" href="http://usernamedenied.wordpress.com/2009/04/07/installing-mrtg-and-configuring-detailed-graphs-on-windows/avaible_mbytes/"><img class="aligncenter size-full wp-image-115" title="avaible_mbytes" src="http://usernamedenied.wordpress.com/files/2009/03/avaible_mbytes.jpg" alt="avaible_mbytes" width="384" height="386" /></a></p>
<p>Then select the <em>Log Files</em> tab.</p>
<p>Select <em><strong>Text File(Comma delimited)</strong></em> in the <em>Log file type</em> listbox and then click <em>OK</em>.</p>
<p><a rel="attachment wp-att-118" href="http://usernamedenied.wordpress.com/2009/04/07/installing-mrtg-and-configuring-detailed-graphs-on-windows/log_file_type/"><img class="aligncenter size-full wp-image-118" title="log_file_type" src="http://usernamedenied.wordpress.com/files/2009/03/log_file_type.jpg" alt="log_file_type" width="404" height="455" /></a></p>
<p>Our .csv file is located at <em>C:\PerfLogs\</em></p>
<p>We are now going to configure a .cfg file in MRTG to parse the .csv file which is created by the Windows Log Tool.</p>
<p>Please note that this script is a little bit buggy and the final results needs some tweaking, such as setting the MaxByte value in the graphs etc. The script has been written by <a href="http://www.castellan.net" target="_blank">castellan.net</a></p>
<p>Download the script <a href="http://homepage.internet.lu/Deathboy/mrtg_mkcfg_getlog.zip" target="_blank">here</a>. If the link is broken download the mkcfg.vbs script <a href="http://www.castellan.net/mkcfg.zip" target="_blank">here</a> and the getlog.pl script <a href="http://www.castellan.net/getlog.pl.txt" target="_blank">here</a> (Don&#8217;t forget to name the script getlog.pl)</p>
<p>We need a command-prompt.  Execute the following commands:</p>
<p><em>cd C:\mrtg-2.16.2</em><em>\bin</em></p>
<p><em>cscript mkcfg.vbs c:\perflogs\memory.csv memory</em></p>
<p>This should create 2 files, .html and .cfg.</p>
<p>This is a little bit tricky, the mkcfg.vbs script is a little bit bugy, it repeats the last diagram a couple of times, so open up the memory.cfg with a text-editor and locate the duplicate diagrams. (Should be easy to spot)</p>
<p>After you deleted them, you need to change the WorkDir.</p>
<p>Copy the created .html file into your public mrtg folder and then execute this</p>
<p><em>perl mrtg memory.cfg</em></p>
<p>You have created a new graph display for your .csv file! (Don&#8217;t forget to update this .cfg file too, refer to <span style="text-decoration:underline;"><strong>Run MRTG</strong></span> for more help)</p>
<p>If the legend isn&#8217;t big enough, change <strong>MaxBytes</strong> in the .cfg file.</p>
<p>You can also include memory.cfg into mrtg.cfg . Add the following line into <em>mrt.cfg</em></p>
<p><strong>Include: memory.cfg</strong></p>
<p><span style="text-decoration:underline;"><strong>Indexmaker</strong></span></p>
<p>Doesn&#8217;t it annoy you that you have to visit 2 links to admire your graphs? Indexmaker can bind them together into one page.</p>
<p><em>perl indexmaker &#8211;output index.html mrtg.cfg memory.cfg</em></p>
<p>This command will bind both mrtg.cfg and memory.cfg into one file, named index.html. Now copy the index.html file into your WorkDir. That&#8217;s it. If you want to see detailed informations about a graph, click on it.</p>
<p><span style="text-decoration:underline;"><strong>Finally</strong></span></p>
<p>You might want to rename your legends and titles to make the graphs more readable.</p>
<p>I hope this quick guide was somewhat useful, if you have any questions, feel free to post a comment.</p>
<p>Thanks for reading and good luck.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Setting up MRTG for BSNL, Jaipur... again!]]></title>
<link>http://lalithsuresh.wordpress.com/2009/01/26/setting-up-mrtg-for-bsnl-jaipur-again/</link>
<pubDate>Mon, 26 Jan 2009 09:59:41 +0000</pubDate>
<dc:creator>lalithsuresh</dc:creator>
<guid>http://lalithsuresh.wordpress.com/2009/01/26/setting-up-mrtg-for-bsnl-jaipur-again/</guid>
<description><![CDATA[Well, going by what actually happened at the National Internet Backbone&#8217;s nodal center in Jaip]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, going by what actually happened at the National Internet Backbone&#8217;s nodal center in Jaipur, a more apt title would have been something like:</p>
<p><strong>&#8220;Attempt at Setting up MRTG for BSNL, Jaipur, Swiftly Denied by a Network Problem&#8221;</strong></p>
<p>Like I mentioned <a href="http://lalithsuresh.wordpress.com/2008/06/06/setting-up-mrtg-for-bsnl-jaipur/">before</a>, we had some serious network related issues when we were trying to configure the (really old) server they&#8217;d given us to setup MRTG on. We were to configure the network interface settings on the Red Hat server according to a hand book they&#8217;d given me. After setting the IP and the subnet mask, I went on to add the default gateway route. And heck, the gateway wasn&#8217;t visible from the LAN! I thought that perhaps, the hand book had older details and they&#8217;d probably reconfigured their routers in the server room we were in. But when Mr S.C Gupta, the head of the nodal office, told me that all other hosts in the same network <em>are</em> using the gateway that was specified in the manual (which was Rajasthan&#8217;s gateway to the internet backbone), I was taken aback. Not once in my system administration experience had I encountered a situation where a router was visible to all hosts but one within the same VLAN (assuming no one went through the trouble of setting a port block in the switch)! Furthermore, I was able to ping all these hosts from the server in question and vice versa, but the router still stood defiant (when I get my hands on it&#8230;grrr). My suspicion about the router having disabled incoming pings were also put to waste when I saw that it&#8217;s working with the other devices on the same LAN. Just to be sure, I checked and double checked the configuration of all other systems on the network, and they all seemed green. How queer. To make matters worse, no one really knew how these devices were networked. After tackling the problem for about 4 hours, me and my junior Nitin, decided to leave and come back some other time because the station was to go on a power maintenance shutdown. Man was I glad I left that place!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[NETWORK MONITORING USING SNMP]]></title>
<link>http://blogs.egroup-us.com/2009/01/08/cool-tools-for-network-monitoring/</link>
<pubDate>Thu, 08 Jan 2009 18:43:41 +0000</pubDate>
<dc:creator>Gunnar Berger, eGroup</dc:creator>
<guid>http://blogs.egroup-us.com/2009/01/08/cool-tools-for-network-monitoring/</guid>
<description><![CDATA[Something lacking in a lot of environments is the ability to watch bandwidth throughout the network.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&#34;">Something lacking in a lot of environments is the ability to watch bandwidth throughout the network.  Being able to monitor this bandwidth is extremely helpful when troubleshooting random network issues and being able to determine where the problem is.  SNMP is built into most switches, routers, and firewalls these days and the reason to use it, in my opinion, far outweigh the reasons not to use it.  If you are using Cisco gear (and frankly if you aren&#8217;t you should) here are a quick couple commands you can use to set up SNMP quickly.</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&#34;">IOS Commands:<br />
snmp-server host &#60;monitoring host&#62; traps public<br />
snmp-server enable traps<br />
snmp-server community public</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&#34;">ASA Commands:<br />
snmp-server community public<br />
snmp-server enable traps<br />
snmp-server host inside &#60;monitoring host&#62; poll</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&#34;">The &#60;monitoring host&#62; is a server that you have set polling the information from these devices.  A good program that we use in house at eGroup is SolarWinds and MRTG which I highly recommend.</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&#34;">Gunnar Berger, eGroup<br />
<a href="http://www.egroup-us.com/">http://www.eGroup-us.com</a><a href="http://www.eGroup-us.com"></a></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Install MRTG secara Otomatis]]></title>
<link>http://emmank.wordpress.com/2009/01/07/install-mrtg-secara-otomatis/</link>
<pubDate>Wed, 07 Jan 2009 05:19:50 +0000</pubDate>
<dc:creator>emmank</dc:creator>
<guid>http://emmank.wordpress.com/2009/01/07/install-mrtg-secara-otomatis/</guid>
<description><![CDATA[ini berlaku untuk semua jenis distro: wget http://serveio. com/da/install. mrtg.sh chmod +x install.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>ini berlaku untuk semua jenis distro:</p>
<p>wget <a rel="nofollow" href="http://serveio.com/da/install.mrtg.sh" target="_blank">http://serveio. com/da/install. mrtg.sh</a><br />
chmod +x install.mrtg. sh<br />
./install.mrtg. sh</p>
<p>sebelum jalankan scripnya pastikan direktori /var/www/html/mrtg ada.</p>
<p>kalo masih terjadi error pastikan libgd terinstall<br />
wget <a rel="nofollow" href="http://www.libgd.org/releases/gd-2.0.35.tar.bz2" target="_blank">http://www.libgd. org/releases/ gd-2.0.35. tar.bz2</a><br />
tar -xjvf gd-2.0.35.tar. bz2<br />
cd gd-2.0.35<br />
sudo su<br />
./configure<br />
make<br />
make install</p>
<p>jalankan lagi scriptnya, good luck!!</p>
<p>untuk info lanjut:<br />
<a rel="nofollow" href="http://www.directadmin.com/forum/showthread.php?threadid=7843" target="_blank">http://www.directad min.com/forum/ showthread. php?threadid= 7843</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MRTG Part 2 "Grafik Query DNS Server (PDNS&amp;BIND) di MRTG"]]></title>
<link>http://yulexs.wordpress.com/2008/12/25/mrtg-part-2-grafik-query-dns-server-pdnsbind-di-mrtg/</link>
<pubDate>Thu, 25 Dec 2008 15:32:10 +0000</pubDate>
<dc:creator>yuliantz</dc:creator>
<guid>http://yulexs.wordpress.com/2008/12/25/mrtg-part-2-grafik-query-dns-server-pdnsbind-di-mrtg/</guid>
<description><![CDATA[Ada banyak cara untuk melihat query dari DNS server kita secara grafik, diantarnya menggunakan cacti]]></description>
<content:encoded><![CDATA[Ada banyak cara untuk melihat query dari DNS server kita secara grafik, diantarnya menggunakan cacti]]></content:encoded>
</item>
<item>
<title><![CDATA[Install MRTG (Multi Router Traffic Grapher) in RHEL 5]]></title>
<link>http://yulexs.wordpress.com/2008/12/24/install-mrtg-multi-router-traffic-grapher-in-rhel-5/</link>
<pubDate>Wed, 24 Dec 2008 15:46:06 +0000</pubDate>
<dc:creator>yuliantz</dc:creator>
<guid>http://yulexs.wordpress.com/2008/12/24/install-mrtg-multi-router-traffic-grapher-in-rhel-5/</guid>
<description><![CDATA[MRTG sebenarnya dipakai untuk memonitor Router seperti Traffic Analysis setiap portnya,CPU usagenya ]]></description>
<content:encoded><![CDATA[MRTG sebenarnya dipakai untuk memonitor Router seperti Traffic Analysis setiap portnya,CPU usagenya ]]></content:encoded>
</item>
<item>
<title><![CDATA[Sistemas de Monitoreo]]></title>
<link>http://magicdrums.wordpress.com/2008/12/11/sistemas-de-monitoreo/</link>
<pubDate>Fri, 12 Dec 2008 02:55:25 +0000</pubDate>
<dc:creator>Victor Pereira</dc:creator>
<guid>http://magicdrums.wordpress.com/2008/12/11/sistemas-de-monitoreo/</guid>
<description><![CDATA[Buenas despues de tanto tiempo si escribir debido a un problema con mi internet casero:P VUELVO! bue]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Buenas despues de tanto tiempo si escribir debido a un problema con mi internet casero:P VUELVO!</p>
<p>bueno en este post me quiero referir a la cantidad de software de monitoreo basado en linux que se encuentra en la red, estos software nos dan la posibilida de tener una vision real de lo que ocurre en nuetra red si que se escape ningun detalle y tomar las medidas pertinentes si algo esta ocurriendo.</p>
<p>De las herramientas de monitoreo mas conocidas se encuentra <a href="http://www.nagios.org/">NAGIOS</a> una aplicacion que es muy versatil ya que puede monitorear equipo por SNMP y esto le da un sin fin de posibilidades.</p>
<p>luego se encuentra <a href="http://oss.oetiker.ch/mrtg/">MRTG</a> que nos muestra Grafico de utilizacion de cualquier cosa que queramos(Bandwidth, temperaturas, etc&#8230;)</p>
<p>por otro lado se encuentran aplicaciones mas especificas como <a href="http://www.snort.org/">SNORT</a>, <a href="http://www.cacti.net/">CACTI</a>, <a href="http://www.ntop.org/">NTOP</a>, <a href="http://munin.projects.linpro.no/">MUNIN</a> y otras que en este momento no recuerdo.</p>
<p>pero lo bueno seria que existiera una distribucion que agrupara todos estos software de monitoreo y para mi sorpresa despues de unos contactos con unos amigo me encuentro con que existe y se llama <a href="http://www.ossim.net/" target="_blank">OSSIM</a> una Distribucion basada en Debian que agrupa todas estas aplicaciones y es administrable por medio de SSH o via WEB</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Getting Data from MRTG Server]]></title>
<link>http://sistemkomplek.wordpress.com/2008/12/05/getting-data-from-mrtg-server/</link>
<pubDate>Fri, 05 Dec 2008 07:02:46 +0000</pubDate>
<dc:creator>sistemkomplek</dc:creator>
<guid>http://sistemkomplek.wordpress.com/2008/12/05/getting-data-from-mrtg-server/</guid>
<description><![CDATA[Current post is about how to getting MRTG log file from MRTG Server. Usually MRTG is far from our cl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Current post is about how to getting MRTG log file from MRTG Server. Usually MRTG is far from our client (reside in ISP/NOC).  Why this howto is important? Because technically we must download the MRTG log file everyday in order to get the finest data (5 minutes average). As you know every day MRTG will rotate its log file with 5 minutes average data only in two days range. So, once again, this procedure must be executed to get the finest data of Internet traffic by using MRTG.</p>
<p>Ok, let us start to discuss it . I assume all of log file are reside in MRTG_SERVER and we want to download it to our client for analysis  named CLIENT :</p>
<ol>
<li>We will use software called rsync, the famoust backup software in linux.</li>
<li>Here is my bash script in CLIENT (named backup.sh):</li>
<p><code><br />
#/bin/bash<br />
rsync -e ssh user@MRTG_SERVER:/tmp/MRTG/escape_1.log destination_dir/`date +%Y%m%d`escape_1.log<br />
rsync -e ssh user@MRTG_SERVER:/tmp/MRTG/mail/data.log destination_dir/`date +%Y%m%d`numbermail.log<br />
rsync -e ssh user@MRTG_SERVER:/tmp/MRTG/mailsize/data.log destination_dir/`date +%Y%m%d`sizemail.log<br />
rsync -e ssh user@MRTG_SERVER:/tmp/MRTG/login/data.log destination_dir/`date +%Y%m%d`numberlogin.log<br />
</code></p>
<p>In this example, there four logfiles tobe copied : escape_1.log (the Internet traffic ), mail/data.log (the number of mail received and sent mesages), mailsize/data.logmail/data.log (the size of mail received and sent mesages), login/data.log (the number of user login in mailserver).</p>
<li> After creating the script file, we then set the automatic ssh login (no password console appears whe doing rsync).  At first we login to the CLIENT, and execute command : <strong>ssh-keygen -t rsa</strong>.<br />
<code><br />
user@CLIENT:~&#62; ssh-keygen -t rsa<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/user/.ssh/id_rsa):<br />
Created directory '/home/user/.ssh'.<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/user/.ssh/id_rsa.<br />
Your public key has been saved in /home/user/.ssh/id_rsa.pub.<br />
The key fingerprint is:<br />
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 user@CLIENT<br />
</code></li>
<li>Copy the file : <strong>id_rsa.pub</strong> to your .ssh directory in MRTG_SERVER. And then rename it to : <strong>authorized_keys</strong></li>
<li>Change the permissions of <tt>.ssh directory </tt> in MRTG_SERVER to <tt>700. FROm now, you can login to MRTG from CLIENT automatically (without password)</tt></li>
<li><tt>Create user crontab for running the script backup.sh. From CLIENT terminal run crontab -e. Then edit as follows:</tt><br />
<code><br />
0 23 * * * sh 'backup_MRTG_1.sh' &#62;/dev/null 2&#62;&#38;1 #JOB_ID_1<br />
</code><br />
This means we want to run the script everyday every 23:00 PM.
</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MRTG em um Roteador Linux]]></title>
<link>http://servidorlinux.wordpress.com/2008/11/24/mrtg-em-um-roteador-linux/</link>
<pubDate>Mon, 24 Nov 2008 17:32:54 +0000</pubDate>
<dc:creator>supertrix</dc:creator>
<guid>http://servidorlinux.wordpress.com/2008/11/24/mrtg-em-um-roteador-linux/</guid>
<description><![CDATA[Neste artigo mostrarei como monitorar as Interfaces de Rede e também os clientes de um roteador linu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Neste artigo mostrarei como monitorar as Interfaces de Rede e também os clientes de um roteador linux utilizando o MRTG. Neste exemplo estou utilizando um Servidor Lunux Ubuntu com regras de NAT, mas pode ser adaptado facilmente para outras distribuições ou necessidades.</p>
<p>Também utizaremos o <a href="http://robert.cheramy.net/ipfm/" target="_blank">IPFM</a> que fará a contabilização do tráfego utilizado pelos IPs que passam pelo roteador linux.</p>
<h4>Instalando Programas necessários:</h4>
<p># apt-get install mrtg ipfm</p>
<h4>Configurando o MRTG</h4>
<p># mkdir /etc/mrtg<br />
# mkdir /etc/mrtg/scripts<br />
# mkdir /var/www/mrtg</p>
<p>O primeiro é o diretório onde fica guardado o arquivo de configuração (normalmente mrtg.cfg). O segundo é onde ficarão os scripts necessários para o monitoramento e o terceiro diretório é onde estarão as páginas criadas para a visualização dos gráficos.</p>
<h4>Criando os Scripts</h4>
<p>IFVMON.SH (para monitorar os IPs de clientes)<br />
# vi /etc/mrtg/scripts/ifvmon.sh</p>
<p style="padding-left:30px;"><code># Script Feito por Jefferson Aranha Dos Santos<br />
# Jefferson.aranha@gmail.com<br />
# Passando como 1º parâmetro o caminho completo do log do ipfm e 2º<br />
# parâmetro um ip<br />
#!/bin/bash<br />
cat "$1" &#124; grep "$2 " &#62; /dev/null<br />
if [ "$?" -ne 0 ]<br />
then<br />
echo 0<br />
echo 0<br />
else<br />
cat "$1" &#124; grep "$2 " &#124; awk '{print $2"\n"$3}'<br />
fi</code></p>
<h4>MRTG.CFG</h4>
<p style="padding-left:30px;"><code>Language: brazilian<br />
EnableIPv6: no<br />
RunAsDaemon: Yes<br />
Interval: 5<br />
WorkDir:/var/www/mrtg<br />
Logdir: /var/log/mrtg<br />
Options[_]: bits,growright<br />
#<br />
Target[eth0]:`/etc/mrtg/scripts/ifmon.sh eth0`<br />
Title[eth0]:"Trafego Internet - eth0"<br />
Maxbytes[eth0]:1400000<br />
PageTop[eth0]:&#60;h1&#62;Trafego Internet - eth0&#60;/h1&#62;<br />
Options[eth0]: growright,bits,noinfo<br />
#<br />
Target[eth1]:`/etc/mrtg/scripts/ifmon.sh eth1`<br />
Title[eth1]:"Trafego Clientes - eth1"<br />
Maxbytes[eth1]:1400000<br />
PageTop[eth1]:&#60;h1&#62;Trafego Clientes - eth1&#60;/h1&#62;<br />
Options[eth1]: growright,bits,noinfo<br />
#<br />
Target[loopback]:`/etc/mrtg/scripts/ifmon.sh lo`<br />
Title[loopback]:"Trafego da Loopback - lo"<br />
Maxbytes[loopback]:1400000<br />
PageTop[loopback]:&#60;h1&#62;Trafego da Loopback - lo&#60;/h1&#62;<br />
Options[loopback]: growright,bits,noinfo<br />
#<br />
Target[192.168.1.100]:`/etc/mrtg/scripts/ifvmon.sh /var/log/ipfm/subnet/ipfm.log 192.168.1.100`<br />
Title[192.168.1.100]:"Trafego do IP - 192.168.1.100"<br />
Maxbytes[192.168.1.100]:1400000<br />
PageTop[192.168.1.100]:&#60;h1&#62;Trafego do IP - 192.168.1.100&#60;/h1&#62;<br />
Options[192.168.1.100]: growright,bits,noinfo</code></p>
<p>Salvo se eu tenha esquecido de alguma coisa, o MRTG agora está pronto para funcionar, portanto vamos às finalizações:</p>
<h4>Executando o IPFM</h4>
<p># ipfm -c /etc/ipfm.conf</p>
<h4>Gerando a página que mostrará os gráficos</h4>
<p># indexmaker &#8211;output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg</p>
<h4>Executando o MRTG</h4>
<p># env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg &#8211;logging /var/log/mrtg.log</p>
<p>Deixem suas dicas e sugestões nos comentários.<br />
Eduardo Supertrix</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cacti ,RRDTool, and jEdit]]></title>
<link>http://jmack29.wordpress.com/2008/11/07/cacti-rrdtool-and-jedit/</link>
<pubDate>Fri, 07 Nov 2008 05:26:17 +0000</pubDate>
<dc:creator>jmack29</dc:creator>
<guid>http://jmack29.wordpress.com/2008/11/07/cacti-rrdtool-and-jedit/</guid>
<description><![CDATA[Cacti (http://www.cacti.net/index.php) is a complete network graphing solution designed to harness t]]></description>
<content:encoded><![CDATA[Cacti (http://www.cacti.net/index.php) is a complete network graphing solution designed to harness t]]></content:encoded>
</item>
<item>
<title><![CDATA[Anatomy of a network]]></title>
<link>http://swannman.wordpress.com/2008/10/04/anatomy-of-a-network/</link>
<pubDate>Sat, 04 Oct 2008 18:53:25 +0000</pubDate>
<dc:creator>Matt Swann</dc:creator>
<guid>http://swannman.wordpress.com/2008/10/04/anatomy-of-a-network/</guid>
<description><![CDATA[Slowly but surely, I&#8217;ve been moving our home network to an architecture that wouldn&#8217;t ke]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Slowly but surely, I&#8217;ve been moving our home network to an architecture that wouldn&#8217;t keep me up at night.  Since we needed both wireless and wired access, my primary goal was to design a network that would allow wireless clients to access the internet but not the rest of our network — I expect that a determined user could get on our wireless network with or without the password, but our wired machines shouldn&#8217;t be exposed unless someone gains physical access to our hardware.</p>
<div class="photo"><a href="http://swannman.googlepages.com/network_large.png"><img src="http://swannman.googlepages.com/network.png" /></a><br />
Click to enlarge</div>
<p>The diagram above shows how I ended up solving this.  The solution relies heavily on having separate subnets for wired and wireless traffic… in this case, a <a href="http://us.zyxel.com/web/product_family_detail.php?PC1indexflag=20040908175941&#38;CategoryGroupNo=FF94F854-B6F1-47B7-BFB7-4660CF8649C8">ZyWALL 2 Plus</a> lets me set up and control access between these networks.</p>
<p>The ZyWALL has the added benefit of SNMP support, which means one of my client machines can use <a href="http://oss.oetiker.ch/mrtg/">mrtg</a> to graph our network activity:</p>
<div class="photo"><a href="http://homepage.mac.com/swannman/mrtg.html"><img src="http://homepage.mac.com/swannman/blocked_wan-day.png" /></a><br />
Click to view more statistics</div>
<p>Looking to the future, our router and switch give us fine-grained controls over the bandwidth used by each client on our wired network.  I haven&#8217;t done much with this yet, but I anticipate putting it to use when we have a couple of kids accessing the internet.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MRTG]]></title>
<link>http://uikinet.wordpress.com/2008/09/23/mrtg/</link>
<pubDate>Tue, 23 Sep 2008 13:55:57 +0000</pubDate>
<dc:creator>uiki</dc:creator>
<guid>http://uikinet.wordpress.com/2008/09/23/mrtg/</guid>
<description><![CDATA[Ho illustrato nel post dedicato al protocollo SNMP, come è    possibile gestire ed intervenire su si]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://oss.oetiker.ch/mrtg/"><img class="alignleft size-medium wp-image-72" title="1923392249_fa4_1-day" src="http://uikinet.wordpress.com/files/2008/09/1923392249_fa4_1-day.png?w=300" alt="" width="300" height="81" /></a></p>
<p>Ho illustrato nel post dedicato al protocollo <a href="http://uikinet.wordpress.com/2008/09/23/simple-network-management-protocol/">SNMP</a>, come è    possibile gestire ed intervenire su sistemi raggiungibili dalla rete. Oggi vi mostro come poter tradurre le informazioni catturate dal server snmp in tabelle aggiornate. Un modo di tradurre interrogazioni visibili testualmente in tabelle con dati statistici, con <a href="http://oss.oetiker.ch/mrtg/">MRTG</a>. Ora vediamo di capire come funziona e cosa ci serve. <strong><strong class="highlight">MRTG</strong></strong>, acronimo<strong> </strong>di<strong> M</strong>ulti <strong>R</strong>outer <strong>T</strong>raffic <strong>G</strong>rapther, scritto in perl, è forse il più famoso monitor di rete, il quale analizza il traffico in ingresso e in uscita. Permette, settando un ciclo di aggiornamento, di conoscere le statistiche di traffico della rete, utilizzo del sistema nei sui componenti hardware, connessioni tcp. Le informazioni fornite comprendono statistiche giornaliere, settimanali e annuali, in formato tabella e testuale. Vediamo cosa ci serve per poter mettere in piedi l&#8217;architettura:</p>
<ol>
<li><strong><em><strong class="highlight">mrtg</strong></em></strong></li>
</ol>
<ol>
<li><strong><em><strong class="highlight">mrtg</strong>-contrib</em></strong></li>
</ol>
<ol>
<li><strong><em>librrds-perl</em></strong></li>
</ol>
<ol>
<li><strong><em>snmpd</em></strong></li>
</ol>
<ol>
<li> <strong><em>snmp</em></strong></li>
</ol>
<p>Se avete seguito la configurazione dell&#8217;agent snmpd, siete a metà lavoro, altrimenti seguite prima <a href="http://uikinet.wordpress.com/2008/09/23/simple-network-management-protocol/">questa</a> piccola guida.</p>
<p>Ora che snmpd è pronto ed installate le librerie, iniziamo con la configurazione.</p>
<p><!--more--></p>
<p>Quando installate mrtg, esso vi analizza le vostre impostazioni di rete e crea un file mrtg.conf in /etc/mrtg.conf. Se leggete il file, noterete che mrtg andrà a salvare i suoi grafici in /var/www/mrtg. Potete sempre cambiarle, ma resta il fatto che, qualunque  path scegliate, questo deve esistere. Ora, lasciando quello scelto da mrtg, /var/www/mrtg, diamo i permessi in modo che possa scrivere nelle cartelle del filesystem in questo modo:</p>
<p><strong>chown root:root /var/www/mrtg</strong></p>
<p><strong>chmod 755 /var/www/mrtg</strong></p>
<p>E&#8217; tutto pronto, faccendo partire snmpd, mrtg è gia pronto. Infatti se lanciate il comando  <strong>env LANG=C /usr/bin/mrtg /etc/mrtg.cfg, </strong>troverete i grafici sul path scelto, in questo caso quello di default.</p>
<p>Abbiamo la possibilità, però, di apportare delle migliorie, ovvero utilizzare l&#8217;interfaccia web per visualizzare i grafici, inoltre, aggiungere altre statistiche come le connessioni tcp o di sistema come utilizzo cpu, memoria ed altro.</p>
<p>Per l&#8217;interfaccia web, installiamo Apache2, per gli utenti Ubuntu, vi rimando al wiki di <a href="http://wiki.ubuntu-it.org/Server/Web">apache</a>.</p>
<p>Per aggiungere informazioni da catturare, andate <a href="http://net-snmp.sourceforge.net/wiki/index.php/TUT:MRTG">qui</a> e scegliete quelle che possono esservi utili. Quelle scelte saranno inserite nel nuovo file .cfg che andremo a creare.</p>
<p>Supponiamo di aver scelto, tcp oltre al networking che mrtg gia conosce e seguiamo questi due step</p>
<p>Scegliete la community da analizzare, avete seguito il post <a href="http://uikinet.wordpress.com/2008/09/23/simple-network-management-protocol/">snmp</a> vero? Altrimenti non sapete di che parlo e non funzionerà nulla. Supponiamo di voler utilizzare mrtg per la community host, ovvero quella locale. Da terminale lanciate il comando per la creazione del file cfg</p>
<p><strong>cfgmaker host@localhost &#62;networking.cfg</strong></p>
<p>Abbiamo creato il file cfg identico a mrtg.cfg ma con l&#8217;intenzione di aggiungre le info tcp. Ecco il mio</p>
<p># tcp connections<br />
WorkDir: /var/www/mrtg<br />
IconDir: /var/www/mrtg/image<br />
RunAsDaemon:yes<br />
Target[tcpopen]: .1.3.6.1.2.1.6.9.0&#38;.1.3.6.1.2.1.6.9.0:host@localhost<br />
Options[tcpopen]: nopercent,growright,gauge,noinfo<br />
Title[tcpopen]: Open TCP connections<br />
MaxBytes[tcpopen]: 1250000<br />
PageTop[tcpopen]: &#60;H1&#62;Open TCP connections&#60;/H1&#62;<br />
YLegend[tcpopen]: # conns<br />
ShortLegend[tcpopen]: connections<br />
LegendI[tcpopen]:  Connections:<br />
LegendO[tcpopen]:<br />
Legend1[tcpopen]: Open TCP connections</p>
<p>Ho scelto la stessa directory mrtg ma ho aggiunto quella per il salvataggio delle immagini per non mischiare tutto dentro un unico path. Il file cfg chiamatelo come vi pare e salvatelo dove vi pare, io in /var/www/mrtg/cfg/.</p>
<p>Ora creiamo l&#8217;index.html per la home page dove verranno inseriti i dati e tabelle.</p>
<p><strong>indexmaker </strong><strong>networking</strong><strong>.cfg &#62; /var/www/mrtg/index.html</strong></p>
<p>Se avete intenzione, come è ovvio altrimenti che ve ne fatte di mrtg, di utilizzare mrtg come demone, nella definizione per le catture tcp, lasciate yes in <strong>RunAsDaemon:yes</strong>, altrimenti mettete no.</p>
<p>Ora siamo pronti, avviate apache, /etc/init.d/apache2 start, avviate snmpd, /etc/init.d/snmpd start, e lancaite mrtg con <strong>env LANG=C /usr/bin/mrtg /var/www/mrtg/networking.cfg</strong>, oppure mettete il vostro path. Se avete un firewall, aprite le porte 80 per apache2, se non le avete cambiate, 161 per snmp. Ora su localhost:80/mrtg avrete le tabelle che, di default, ogni 5 minuti si aggiornano.</p>
<p>Ecco uno stupido scritp per automatizzare la procedura:</p>
<p>#!/bin/bash<br />
case &#8220;$1&#8243; in<br />
start)<br />
/etc/init.id/snmpd start<br />
/etc/init.id/apache2 start<br />
env  env LANG=C /usr/bin/mrtg /var/www/mrtg/cfg/tot.cfg<br />
;;<br />
stop)<br />
/etc/init.id/snmpd stop<br />
/etc/init.id/apache2 stop<br />
;;<br />
restart)<br />
/etc/init.id/snmpd restart<br />
/etc/init.id/apache2 restart<br />
env  env LANG=C /usr/bin/mrtg /var/www/mrtg/cfg/tot.cfg<br />
;;<br />
esac<br />
exit 0</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
