jpellman / alert-appsstatus

Python script that parses the Google Apps Status Dashboard RSS feed and sends out e-mail alerts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Apps Status Notification Script

With the large number of Google Apps outages throughout June 2019, I found it prudent (as a former G Suite admin) to look for a means to be alerted of G Suite service degradations via e-mail, text or both. Perhaps this was a shortcoming in my Google-Fu, but I couldn't find any official means for receiving such alerts.

This script is an attempt at remedying this oversight. It is intended to be run as a cron job at a periodic interval. Right now, it's in its early iterations / is a minimal viable product.

How it works

The script uses the feedparser library to convert the Apps Status RSS feed into an object that can be checked against various alert criteria. If one of the alert criteria is fulfilled, it sends an e-mail (or a text if you use a "@vtext.com" or "@txt.att.net" address).

The alert criteria are defined in a YAML file. Alerting can be continous or only upon state changes. To track state changes, the script caches the previous results of the RSS feed locally for comparison before the next time the script is run.

The script uses a lock file (defined by the pidfile flag) to prevent race conditions.

Other Projects of Interest for G Suite Admins

  • google-status-notifications : Attempts to do the same thing as this script. Doesn't seem to have any documentation, looks unmaintained, and lots of unnecessary dependencies. The repo has an example of an RSS feed during a G Suite outage though, which I've been using for testing.
  • g_suite_status : Someone made a Twitter bot to monitor G Suite outages.
  • icssplit : For some reason Google Calendar only supports calendar imports for files that are less than 1 MB. This allows you to work around that.

About

Python script that parses the Google Apps Status Dashboard RSS feed and sends out e-mail alerts.


Languages

Language:Python 100.0%