Tor Router Connections

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
strefli3
Posts: 1
Joined: Tue Mar 15, 2011 7:26 pm

Tor Router Connections

Post by strefli3 »

I've made this graph for my own use, put perhaps someone will also find it useful. This is specific to a Debian system, but it will be easy to modify for other distributions. Just make sure query_tor.sh is working correctly and you should be all set.
Attachments
Tor.png
Tor.png (29.04 KiB) Viewed 1578 times
Tor_Status.tar.gz
(31.56 KiB) Downloaded 232 times
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Re: Tor Router Connections

Post by egarnel »

now if you could only see what they are looking at!
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
jangrewe
Posts: 4
Joined: Fri Sep 25, 2009 4:41 am

Re: Tor Router Connections

Post by jangrewe »

Thanks for your template & script, i had to fix the initial command to get it to work:

Code: Select all

#!/bin/sh
Tor=$(netstat -tan | grep 9001 | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}')
TC=$(echo $Tor |  tr " " "\n" |  wc -l)
UC=$(echo $Tor |  tr " " "\n" | sort | uniq | wc -l)
printf "TC:%i UC:%i" "$TC" "$UC"
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests