monitoring and alerting program for data streams such as recording files that update regularly
Project description
stream_monitor
This program monitors a specified set of data streams (files) for changes. If a file is not changed in a specified time, an alert is sent using Pushbullet.
setup
pip install stream_monitor
Set up a Pushbullet account, create an access token and store a Pushbullet token in the file ~/.pushbullet. Install Pushbullet on a mobile device.
configuration and usage
A JSON configuration file (by default stream_monitor_configuration.json) guides the program on the streams to monitor and their required update times. Its contents are of the following form:
{
"streams": {
"./recording.csv": {"update_time"}: 30
}
}
In this example configuration, recording.csv is a filepath to monitor for changes and 30 is the time in seconds within which the filepath should change.
When the program stream_monitor is executed, it imports the configuration and runs in a continuous loop, sending a Pushbullet alert whenever it detects that a stream is not being updated in its expected update time. The script has options for the configuration filepath, alarms, checking interval and verbosity (see stream_monitor --help).
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
Hashes for stream_monitor-2018.4.19.2211.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | badfa3510de4023af46553fdca0ed7c790d5411a0dcf8a47e7682a7653dae899 |
|
MD5 | 80135141f404e937688d39c65f653aa2 |
|
BLAKE2b-256 | b37fec91f7a234bb070a508c8d3720b63e2eff87af02dc24a1d008cbc997776c |