Re: [tor-relays] Tor node monitoring

2013-04-17 Thread mick
On Wed, 17 Apr 2013 01:19:34 +0200
Lunar lu...@torproject.org allegedly wrote:

 Alex Beal:
  I was wondering what, if any, software you use for monitoring your
  relays. It would be nice if I could get an email when the Tor
  daemon crashes, and maybe another every night telling me about
  bandwidth used, average speed, etc.
 
 For external monitoring, I wrote a Nagios check using Stem. It is
 available at:
 
 http://anonscm.debian.org/gitweb/?p=users/lunar/check_tor.git
 

and there are munin plugins by Ge van Geldorp (tor_connections and
tor_traffic) at http://munin-monitoring.org/wiki/PluginCat

beware that the old munin exchange site has disappeared.

Mick 

-

blog: baldric.net
gpg fingerprint: FC23 3338 F664 5E66 876B  72C0 0A1F E60B 5BAD D312

-



signature.asc
Description: PGP signature
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


[tor-relays] Tor node monitoring

2013-04-16 Thread Alex Beal
Hello All,

I was wondering what, if any, software you use for monitoring your relays.
It would be nice if I could get an email when the Tor daemon crashes, and
maybe another every night telling me about bandwidth used, average speed,
etc.

Thanks,
Alex

-- 
For sensitive information, use my public key:
http://media.usrsb.in/files/pub.asc
Fingerprint: 0BCE 27F8 FBED 34C0 B936 7625 1D7D CA76 C811 1C0C
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Tor node monitoring

2013-04-16 Thread Lunar
Alex Beal:
 I was wondering what, if any, software you use for monitoring your relays.
 It would be nice if I could get an email when the Tor daemon crashes, and
 maybe another every night telling me about bandwidth used, average speed,
 etc.

For external monitoring, I wrote a Nagios check using Stem. It is
available at:

http://anonscm.debian.org/gitweb/?p=users/lunar/check_tor.git

-- 
Lunar lu...@torproject.org


signature.asc
Description: Digital signature
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Tor node monitoring

2013-04-16 Thread Roman Mamedov
On Tue, 16 Apr 2013 16:34:33 -0600
Alex Beal alexlb...@gmail.com wrote:

 I was wondering what, if any, software you use for monitoring your relays.
 It would be nice if I could get an email when the Tor daemon crashes, and
 maybe another every night telling me about bandwidth used, average speed,
 etc.

I just have my nodes mail me every hour with a message like below.
Generated by making this script launch from crontab.
Of course it also needs 'vnstat' installed and running.

#!/bin/bash
vnstat -h
echo -e \nMonths:
vnstat -m | grep -v -e estimated -e month -e ^$ | tac
echo -e \nDays:
vnstat -d | grep -v -e estimated -e daily -e day -e ^$ | tac





 eth0 02:58 
  ^ r   
  |   t rt rt rt  t rt  rtrt  t t   rt rt r rt rt   
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt r  rt rt   
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
  |  rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt rt
 -+--- 
  |  03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 00 01 02

 h  rx (KiB)   tx (KiB)  h  rx (KiB)   tx (KiB)  h  rx (KiB)   tx (KiB) 
03   15012258   1514795611   14433975   1458335519   14196358   14393370
04   15785990   1587551512   15871910   1598395520   15274832   15384163
05   15332768   1544390813   14571206   1473965521   15551369   15661573
06   15620336   1575887114   16190061   1630611922   15887372   13543944
07   14999811   1511380015   14994564   1511220323   14055665   13265122
08   15427743   1555737216   14893214   1493507800   16690881   16606289
09   14365312   1454042617   14886429   1503754701   15953436   15872108
10   13709298   1387846718   14466845   1469355802   13116495   13136468

Months:
+-+-+---
  Apr '13  4.33 TiB |4.32 TiB |8.65 TiB |   53.32 Mbit/s
  Mar '13  7.80 TiB |7.77 TiB |   15.57 TiB |   49.92 Mbit/s
  Feb '13  8.02 TiB |6.94 TiB |   14.96 TiB |   53.12 Mbit/s
  Jan '13  7.05 TiB |6.87 TiB |   13.92 TiB |   44.64 Mbit/s
  Dec '12  3.09 TiB |3.11 TiB |6.21 TiB |   19.91 Mbit/s
+-+-+---

Days:
 +-+-+---
  04/17/13 43.64 GiB |   43.50 GiB |   87.14 GiB |   68.17 Mbit/s
  04/16/13343.40 GiB |  342.97 GiB |  686.37 GiB |   66.64 Mbit/s
  04/15/13328.40 GiB |  330.88 GiB |  659.27 GiB |   64.01 Mbit/s
  04/14/13314.98 GiB |  318.49 GiB |  633.47 GiB |   61.50 Mbit/s
  04/13/13289.30 GiB |  284.53 GiB |  573.82 GiB |   55.71 Mbit/s
  04/12/13275.53 GiB |  275.49 GiB |  551.02 GiB |   53.50 Mbit/s
  04/11/13276.76 GiB |  280.21 GiB |  556.97 GiB |   54.08 Mbit/s
  04/10/13262.46 GiB |  263.79 GiB |  526.25 GiB |   51.09 Mbit/s
  04/09/13270.16 GiB |  268.47 GiB |  538.63 GiB |   52.30 Mbit/s
  04/08/13256.10 GiB |  257.30 GiB |  513.40 GiB |   49.85 Mbit/s
  04/07/13246.98 GiB |  242.87 GiB |  489.85 GiB |   47.56 Mbit/s
  04/06/13250.19 GiB |  232.93 GiB |  483.11 GiB |   46.91 Mbit/s
  04/05/13263.91 GiB |  263.81 GiB |  527.72 GiB |   51.24 Mbit/s
  04/04/13259.23 GiB |  261.68 GiB |  520.91 GiB |   50.58 Mbit/s
  04/03/13244.04 GiB |  246.17 GiB |  490.21 GiB |   47.59 Mbit/s
  04/02/13255.15 GiB |  257.04 GiB |  512.18 GiB |   49.73 Mbit/s
  04/01/13249.53 GiB |  254.63 GiB |  504.16 GiB |   48.95 Mbit/s
  03/31/13246.91 GiB |  248.28 GiB |  495.19 GiB |   48.08 Mbit/s
  03/30/13275.07 GiB |  268.49 GiB |  543.56 GiB |   52.77 Mbit/s
  03/29/13262.26 GiB |  262.67 GiB |  524.93 GiB |   50.97 Mbit/s
  03/28/13256.92 GiB |  259.96 GiB |  516.88 GiB |   50.18 Mbit/s
  03/27/13214.18 GiB |  217.67 GiB |  431.86 GiB |   41.93 Mbit/s
  03/26/13162.69 GiB |  160.47 GiB |  323.16 GiB |   31.38 Mbit/s
  03/25/13272.22 GiB |  273.07 GiB |  545.29 GiB |   52.94 Mbit/s
  03/24/13269.06 GiB