<?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>ASP.NET MSSQL Webhosting Blog &#187; Bandwidth</title>
	<atom:link href="http://www.mywebhostingblog.net/tag/bandwidth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Thu, 16 Sep 2010 19:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Hotlink Protection</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/hotlink-protection/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/hotlink-protection/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 16:09:46 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Bandwidth]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Hot linking]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[web page]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=161</guid>
		<description><![CDATA[What is Hot linking ? The process of direct linking to websites files such as images, videos etc is called as Hot Linking. It is like using an image (tag/image link) which you have found on someone else web page, and would be using on your blog. Every time the blog is browsed image will [...]]]></description>
			<content:encoded><![CDATA[<p>What is <strong>Hot linking</strong> ?</p>
<p>The process of direct linking to <strong>websites </strong>files such as images, videos etc is called as Hot Linking. It is like using an <strong>image</strong> <strong>(tag/image link)</strong> which you have found on someone else <strong>web page</strong>, and would be using on your <strong>blog</strong>. Every time the <strong>blog </strong>is browsed image will be shown because it is <strong>Hot linked</strong> from it&#8217;s original source.</p>
<p>This becomes a point of concern when your website is <strong>Hot linked</strong> by someone else.</p>
<p>Let me explain<br />
Every <strong>website </strong>has a fixed <strong>bandwidth </strong>(<strong>bandwidth </strong>- Amount of <strong>data transferred </strong>from <strong>website </strong>to a users computer). When any internet user browses a website and if that website is hot linked to your site then your <strong>website&#8217;s </strong><br />
<strong>bandwidth </strong>is used in transferring the requested data.<br />
??? =&gt; This means you are paying for the <strong>bandwidth </strong>which is not used by you.</p>
<p>To overcome <strong>Hot linking</strong>(<strong>Bandwidth </strong>Theft) <strong>Hotlink Protection</strong> is used. It prevents other websites from directly linking to files (as specified above) to your website.<br />
<strong>Hotlink Protection</strong> can be set from <strong>Plesk Control Panel</strong> as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/hotlink-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Bandwidth usage with SNMP and RRDtool for Linux</title>
		<link>http://www.mywebhostingblog.net/hosting-linux/monitoring-bandwidth-usage-with-snmp-and-rrdtool-for-linux/</link>
		<comments>http://www.mywebhostingblog.net/hosting-linux/monitoring-bandwidth-usage-with-snmp-and-rrdtool-for-linux/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 20:52:43 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux Server Hosting]]></category>
		<category><![CDATA[Bandwidth]]></category>
		<category><![CDATA[Monitor]]></category>
		<category><![CDATA[net-snmp]]></category>
		<category><![CDATA[RRDTool]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=27</guid>
		<description><![CDATA[Before monitor any server you need to install SNMP and RRDTool packages on monitor server and net-snmp package on server which you want to monitor. lets assume server which has SNMP and RRDTool means monitor server has ip address 10.10.10.1 and server which you want to monitor has IP address 99.99.99.99 SNMP Installation SNMP packages [...]]]></description>
			<content:encoded><![CDATA[<p>Before monitor any server you need to install SNMP and RRDTool packages on monitor server and net-snmp package on server which you want to monitor.</p>
<p>lets assume server which has SNMP and RRDTool means monitor server has ip address 10.10.10.1<br />
and server which you want to monitor has IP address 99.99.99.99</p>
<p><strong>SNMP Installation</strong><br />
SNMP packages require for querring .</p>
<p>- type command at the prompt<br />
#yum search snmp<br />
It will show you different snmp packages.<br />
You neet to install 2 packages<br />
net-snmp<br />
net-snmp-devel<br />
type command<br />
#yum install net-snmp<br />
#yum install net-snmp-devel</p>
<p><strong>RRDTool Installation</strong></p>
<p>RRD store and display time-series data (i.e. network bandwidth, server load average). It stores the data in a very compact way that will not expand over time, and it presents useful graphs by processing the data to enforce a certain data density.</p>
<p>RRDTool 1.2.x has dependancies ,hence you need to install following packages.</p>
<p>* libart_lgpl-2.3.11-2.i386.rpm<br />
* <a title="Download RPM" href="ftp://rpmfind.net/linux/ASPLinux/i386/RPMS.9/libart_lgpl-devel-2.3.11-2.i386.rpm" target="_blank">libart_lgpl-devel-2.3.11-2.i386.rpm</a></p>
<p><span id="more-27"></span><br />
* freetype-2.1.3-6.i386.rpm<br />
* freetype-devel-2.1.3-6.i386.rpm<br />
* zlib-1.1.4-8.i386.rpm<br />
* zlib-devel-1.1.4-8.i386.rpm<br />
* libpng-1.2.2-16.i386.rpm<br />
* libpng-devel-1.2.2-16.i386.rpm</p>
<p>Download RRDTool from <a href="http://ftp.idilis.ro/mirrors/rrdtool/">http://ftp.idilis.ro/mirrors/rrdtool/</a></p>
<p>lets assume you have rrdtool-1.2.12.tar.gz</p>
<p>To extract RRDTool run this command:</p>
<p>#tar -xzvf rrdtool-1.2.12.tar.gz</p>
<p>then change directory:<br />
#cd rrdtool-1.2.12</p>
<p>to compile ans install RRDTool type:<br />
#./configure &#8211;disable-tcl<br />
#make<br />
#make install</p>
<p><strong>Apply following step on server which you want to monitor means 99.99.99.99</strong><br />
Install net-snmp<br />
Type following commands<br />
#yum search snmp<br />
#yum install net-snmp</p>
<p>then edit snmpd.conf file and create readonly community<br />
#vi /etc/snmp/snmpd.conf</p>
<p>add following line in snmpd.conf file<br />
rocommunity  community_name ip_address_of_monitor_server</p>
<p>start snmpd service<br />
/etc/init.d/snmpd start</p>
<p><strong>Apply following step on monitor server means 10.10.10.1</strong><br />
To monitor bandwidth you need to create RRD file,which will store bandwidth data.</p>
<p><strong>step 1</strong><br />
Create RRD file.<br />
rrdtool create bandwidth.rrd -s 60 \<br />
DS:in:COUNTER:300:U:U \<br />
DS:out:COUNTER:300:U:U \<br />
RRA:AVERAGE:0.5:1:10080</p>
<p><strong>step 2</strong><br />
Update RRD file.</p>
<p>/usr/bin/rrdupdate bandwidth.rrd \<br />
N:`/usr/bin/snmpget -v 1 -c community_name -Oqv 9.99.99.99 IF-MIB::ifInOctets.2`: \<br />
`/usr/bin/snmpget -v 1 -c community_name -Oqv 99.99.99.99 IF-MIB::ifOutOctets.2`</p>
<p>Above command should be run with 1 or 5 minute interval as per your need,hence add above command in cronjob.</p>
<p><strong>step 3</strong><br />
Generate graph from bandwidth.rrd file</p>
<p>rrdtool graph bandwidth.png \<br />
&#8211;end now &#8211;start end-30h &#8211;width 400 \<br />
&#8211;x-grid HOUR:1:HOUR:6:HOUR:2:0:%H \<br />
&#8211;imgformat=PNG \<br />
&#8211;title=&#8221;your title&#8221; \<br />
&#8211;rigid \<br />
&#8211;base=1000 \<br />
&#8211;height=120 \<br />
&#8211;width=500 \<br />
&#8211;alt-autoscale-max \<br />
&#8211;lower-limit=0 \<br />
&#8211;vertical-label=&#8221;bits per second&#8221; \<br />
DEF:a=bandwidth.rrd:in:AVERAGE \<br />
DEF:b=bandwidth.rrd:out:AVERAGE \<br />
VDEF:totin=a,TOTAL \<br />
VDEF:totout=b,TOTAL \<br />
CDEF:cdefa=a,8,* \<br />
CDEF:cdeff=b,8,* \<br />
AREA:cdefa#00CF00:&#8221;Incoming&#8221;  \<br />
GPRINT:cdefa:LAST:&#8221;Cur\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdefa:AVERAGE:&#8221;Avg\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdefa:MAX:&#8221;Max\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdefa:MIN:&#8221;MIN\:%6.2lf %sb/s\l&#8221;  \<br />
LINE1.3:cdeff#0000FF:&#8221;Outgoing&#8221;  \<br />
GPRINT:cdeff:LAST:&#8221;Cur\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdeff:AVERAGE:&#8221;Avg\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdeff:MAX:&#8221;Max\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:cdeff:MIN:&#8221;MIN\:%6.2lf %sb/s\l&#8221;  \<br />
GPRINT:totin:&#8221;Total IN\:%6.2lf %sb/s&#8221;  \<br />
GPRINT:totout:&#8221;Total OUT\:%6.2lf %sb/s&#8221;  \<br />
VRULE:1084777200#FF0000:&#8221;"</p>
<p>After firing  above command, a file bandwidth.png will be in current direcoty which is bandwidth graph for server 99.99.99.99</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-linux/monitoring-bandwidth-usage-with-snmp-and-rrdtool-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

