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
The file stream_monitor_configuration.py is imported as a module from the working directory. It contains a dictionary of the following form:
streams = {
"./recording.csv": {"update_time": 30}
}
When the script stream_monitor.py 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 alarms and verbosity.
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.2.2.1637.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8dd2b5e5ce0d559e9fa29c60d216abdb935c76917ecf4a8b4fdb51a886118c4 |
|
MD5 | 992c6dba9c8df9d7749ba20e6c22bee0 |
|
BLAKE2b-256 | 4e3b071e1e615c38f79a63d08e58b0833c45f6336ff455c3a068273a3a0d3184 |