Facilitates the process of submitting alerts to the GlobalNOC AlertMon system.
Project description
globalnoc-alertmon-agent
A package to faciltate sending alerts to the GlobalNOC AlertMon system.
Examples
To run the examples.
- Create a virtualenv and activate it
virtualenv venv
. ./venv/bin/activate
- Install this Module
pip install globalnoc-alertmon-agent
- Copy the Example Config File to the config.yaml
cp examples/conf/config.yaml.example examples/conf/config.yaml
- Add the Values for your AlertMon Agent in config.yaml
send_active_alerts.py
In this example all active alerts are gathered from an external source and sent to AlertMon.
examples/send_active_alerts.py
process_events.py
In this example an http server is started to listen for events POST'd to it. On a regular interval those POST'd events are combined with the current set of active alerts.
- If an OK alerts is POST'd the corresponding active alert is cleared.
- To handle cases where a clear event may have been missed, alerts exceeding some time threshold are also cleared.
Then the full set of alerts are sent to the system.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file globalnoc_alertmon_agent-1.0.4.tar.gz
.
File metadata
- Download URL: globalnoc_alertmon_agent-1.0.4.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fcc74cd75771a4a3c6f5a588abca037b3aaf35548683f3ed5fb4e18b29ec12 |
|
MD5 | 00e03ff1fe790ff78f7f4d1566cc8537 |
|
BLAKE2b-256 | 6991533ca13975f5c005af29e712165ad509b5db2f868432d31dc47bd0c07ece |
File details
Details for the file globalnoc_alertmon_agent-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: globalnoc_alertmon_agent-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53716530ca6f7ca1f004adb96f46ae32817b19c51ba48585827de43c787bad6 |
|
MD5 | 79676c29069c7336006f3a9203f8c345 |
|
BLAKE2b-256 | 7a473455d57f4486cac05857b3d6d98266d4db5719f306b8159a2052ee1da1f1 |