Skip to main content

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

Metadata

Release files for globalnoc-alertmon-agent 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for globalnoc-alertmon-agent 1.0.4
File Size Uploaded Provenance
globalnoc_alertmon_agent-1.0.4.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for globalnoc-alertmon-agent 1.0.4
File Interpreter ABI Platform
globalnoc_alertmon_agent-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / globalnoc_alertmon_agent-1.0.4.tar.gz

Download URL globalnoc_alertmon_agent-1.0.4.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b9fcc74cd75771a4a3c6f5a588abca037b3aaf35548683f3ed5fb4e18b29ec12
BLAKE2b-256 checksum
How to use checksums
6991533ca13975f5c005af29e712165ad509b5db2f868432d31dc47bd0c07ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / globalnoc_alertmon_agent-1.0.4-py3-none-any.whl

Download URL globalnoc_alertmon_agent-1.0.4-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a53716530ca6f7ca1f004adb96f46ae32817b19c51ba48585827de43c787bad6
BLAKE2b-256 checksum
How to use checksums
7a473455d57f4486cac05857b3d6d98266d4db5719f306b8159a2052ee1da1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for globalnoc-alertmon-agent 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page