Monitor the status of interdependent services.

a2f5668 Merge branch 'master' of git.sr.ht:~cedric/guardian

~cedric pushed to ~cedric/guardian git

12 days ago

5a23316 Updated README.

~cedric pushed to ~cedric/guardian git

12 days ago


Monitor the status of interdependent services.

  • based on a YAML file;
  • tests performed by custom scripts (Shell script, Python script, etc.);
  • no database and serverless;
  • generation of HTML status page;
  • email notifications.


$ guardian --help
usage: guardian [-h] -c CONFIG_FILE [--email] [--html]

optional arguments:
  -h, --help            show this help message and exit
                        Configuration file (YAML).
  --email               Send an email in case of failed test(s).
  --html                Generate a HTML status page.

$ cp guardian/config/services.yaml.example guardian/config/monarc-services.yaml

$ guardian -c guardian/config/monarc-services.yaml
+ Service my.monarc.lu
 - Test HTTPS front server
 - Test HTTPS FO1 (casesmodels)
 - Test HTTPS FO2 (casesmodels2)
 - Test HTTPS Back Office
+ Service MOSP
 - Test API
+ Stats Service
 - Test /about.json endpoint
✨ 🌟 ✨ All 6 tests are successful.

With email notification:

$ guardian -c guardian/config/google-services.yaml --email
+ Google services
 - Test GMail
 - Test Web search
 - Test Google Drive
1 error occurred.
Execution time: 0:00:00.793011
Sending email notification...


Patches and questions? Send to my public inbox: ~cedric/public-inbox@lists.sr.ht. Thanks!


This software is licensed under GNU Affero General Public License version 3.

Copyright (C) 2021 Cédric Bonhomme