Monitor GetTor's email autoresponder
The GetTor process occasionally dies without anyone noticing. See #34027 (moved) 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 such a script for BridgeDB as part of #12802 (moved). Here's how it works: 0. We created a new Gmail address that's used by this script to email the autoresponder.
- Polyanthum (the host BridgeDB runs on) runs the script in a cron job every three hours.
- The script sends an email to bridges@torproject.org and, after waiting for a minute, checks for a response.
- Depending on if there's a response, the script writes a status code to disk, which is read by Nagios.
- 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.