A script I used for basic server monitoring, prior to integrating Prometheus/AlertManager. Now obsolete, but a good example of communicating to Matrix rooms for anyone interested.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Devin Dooley 1f70e6d01e Add basic Jenkinsfile 1 year ago
jenkins Add basic Jenkinsfile 1 year ago
jobs Add basic Jenkinsfile 1 year ago
.env-example Add support for systemd service monitoring 1 year ago
.gitignore Buggy MVP complete 1 year ago
Makefile Add basic Jenkinsfile 1 year ago
README.md Add support for systemd service monitoring 1 year ago
marvin.py Make jobs run in parallel 1 year ago
requirements.txt Swap out requests library for urllib 1 year ago

README.md

Marvin

Marvin is a paranoid server monitor, designed to alert you of website outages, inactive systemd services and high CPU/RAM usage on its host.

Configuration

Usage thresholds and sites for monitoring are configured in a .env file located in the project root. For now, Marvin only knows how to communicate to Matrix rooms, which are configured in the same place. An example configuration is provided in .env-example.

In order for Marvin to successfully communicate, you will need to create his user manually and add him to the appropriate rooms. All credentials given to Marvin's user should correspond to those in the .env file.

Running

To start Marvin, simply call make start. A virtual environment will be created for you and all requirements will be installed. If you wish to just setup your environment, you can run make venv.