Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit c880dcb

Browse files
committed
Cosmetics.
1 parent 7203e49 commit c880dcb

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ Requires the stem library (https://stem.torproject.org/).
77

88

99
#### tor_connections
10-
![alt tor_connections](https://i.imgur.com/LAkcKD0.png)
10+
![alt tor_connections](https://i.imgur.com/LAkcKD0.png)
1111
`ln -s /usr/share/munin/plugins/tor_ /etc/munin/plugins/tor_connections`
1212

1313
#### tor_traffic
14-
![alt tor_traffic](https://i.imgur.com/YXLZHGa.png)
14+
![alt tor_traffic](https://i.imgur.com/YXLZHGa.png)
1515
`ln -s /usr/share/munin/plugins/tor_ /etc/munin/plugins/tor_traffic`
1616

17+
#### tor_dormant
18+
`ln -s /usr/share/munin/plugins/tor_ /etc/munin/plugins/tor_dormant`
19+
20+
#### tor_countries
21+
`ln -s /usr/share/munin/plugins/tor_ /etc/munin/plugins/tor_countries`
22+
1723
#### Using password authentication
1824

1925
Create a hashed password:

circuits_by_country.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ def top_countries(self):
125125
c = Counter(self._gen_countries(controller))
126126
return sorted(c.most_common(self.max_countries))
127127
except stem.connection.AuthenticationFailure as e:
128-
print('Authencation failed ({})'.format(e))
128+
print('Authentication failed ({})'.format(e))
129129
return []

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
stem
2+
GeoIP

tor_.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def fetch(self):
139139
for state, count in states.iteritems():
140140
print('{}.value {}'.format(state.lower(), count))
141141
except stem.connection.AuthenticationFailure as e:
142-
print('Authencation failed ({})'.format(e))
142+
print('Authentication failed ({})'.format(e))
143143

144144

145145
class TorDormant(TorPlugin):
@@ -167,7 +167,7 @@ def fetch(self):
167167
sys.exit(-1)
168168
print('dormant.value {}'.format(response))
169169
except stem.connection.AuthenticationFailure as e:
170-
print('Authencation failed ({})'.format(e))
170+
print('Authentication failed ({})'.format(e))
171171

172172

173173
class TorTraffic(TorPlugin):

0 commit comments

Comments
 (0)