Also, the arm monitor tallies up the BW events (bandwidth usage reported by tor) to provide the totals for the duration that it runs. Cheers! -Damian<br><br><div class="gmail_quote">On Tue, Sep 15, 2009 at 5:33 PM, Andrew Lewman <span dir="ltr">&lt;<a href="mailto:andrew@torproject.org">andrew@torproject.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 09/15/2009 01:21 PM, Michael Gomboc wrote:<br>
&gt; I have a tor server running and i like to measure the traffic that goes over<br>
&gt; it. (in&amp;out)<br>
<br>
</div>Great.  Thanks for running a relay!<br>
<div class="im"><br>
&gt; I know there&#39;s a way do to that with iptables but I prefer to get this<br>
&gt; information from TOR.<br>
&gt; Does TOR store this information somewhere so i could read it with a script?<br>
<br>
</div>Yes.  In your $DataDir there is a &quot;state&quot; file.  It lists your reads and<br>
writes over time.  You may want to look at dir-spec.txt to get more<br>
details,<br>
<a href="http://git.torproject.org/checkout/tor/master/doc/spec/dir-spec.txt" target="_blank">http://git.torproject.org/checkout/tor/master/doc/spec/dir-spec.txt</a>.<br>
<font color="#888888"><br>
--<br>
Andrew Lewman<br>
The Tor Project<br>
pgp 0x31B0974B<br>
<br>
Website: <a href="https://torproject.org/" target="_blank">https://torproject.org/</a><br>
Blog: <a href="https://blog.torproject.org/" target="_blank">https://blog.torproject.org/</a><br>
Identi.ca: torproject<br>
</font></blockquote></div><br>