[tor-bugs] #34028 [Applications/GetTor]: Monitor GetTor's email autoresponder
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Apr 27 18:42:48 UTC 2020
#34028: Monitor GetTor's email autoresponder
-------------------------------------+--------------------
Reporter: phw | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Applications/GetTor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: 1 | Reviewer:
Sponsor: |
-------------------------------------+--------------------
The GetTor process occasionally dies without anyone noticing. See #34027
for the latest incident. We should set up a script that periodically
emails the autoresponder and raises an alert if it doesn't get a response.
We already created
[https://github.com/NullHypothesis/bridgedb/blob/enhancement/12802/scripts
/nagios-email-check such a script] for BridgeDB as part of #12802. Here's
how it works:
0. We created a new Gmail address that's used by this script to email the
autoresponder.
1. Polyanthum (the host BridgeDB runs on) runs the script in a cron job
every three hours.
2. The script sends an email to bridges at torproject.org and, after waiting
for a minute, checks for a response.
3. Depending on if there's a response, the script writes a status code to
disk, which is read by Nagios.
4. Nagios should then alert us if the script's output says that BridgeDB's
autoresponder is offline.
It shouldn't be too hard to adapt BridgeDB's monitoring script for GetTor.
In fact, to avoid code duplication, we should move this script into a
separate repository and parameterise it, so it can work for both GetTor
and BridgeDB.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34028>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list