Skip to main content

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.

  1. Create a virtualenv and activate it
virtualenv venv
. ./venv/bin/activate
  1. Install this Module
pip install globalnoc-alertmon-agent
  1. Copy the Example Config File to the config.yaml
cp examples/conf/config.yaml.example examples/conf/config.yaml
  1. 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.

examples/process_events.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

globalnoc_alertmon_agent-1.0.4.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

globalnoc_alertmon_agent-1.0.4-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page