Monitoring space of directory/path/drive then send notification to growl and syslog/remote syslog with multiple host and port
Project description
DiskSpaceMon
Monitoring space of directory/path/drive then send notification to growl and syslog/remote syslog with multiple host and port
Installing
Install and update using pip:
$ pip install diskspacemon
Example
>>> from diskspacemon import DiskSpaceMon
>>> m = DiskSpaceMon()
>>> m.GROWL_HOST = ['127.0.0.1', '192.168.100.2']
>>> m.SYSLOG_HOST = ['127.0.0.1', '192.168.100.2']
>>> m.monitor_directory("/", 60, 100, True) # parameter: path, interval time sleep, size threshold, verbose
run on terminal/cmd
$ usage: diskspacemon [-h] [-t SIZE_THRESHOLD] [-i INTERVAL] [--syslog-host SYSLOG_HOST] [--syslog-port SYSLOG_PORT] [--growl-host [GROWL_HOST ...]] [--growl-port [GROWL_PORT ...]] [-v]
PATHS
positional arguments:
PATHS Directory to watching
options:
-h, --help show this help message and exit
-t SIZE_THRESHOLD, --size-threshold SIZE_THRESHOLD
Size threshold default = 100 MB
-i INTERVAL, --interval INTERVAL
Interval time
--syslog-host SYSLOG_HOST
Syslog host name/ip, default: 127.0.0.1
--syslog-port SYSLOG_PORT
Syslog port, default: 514
--growl-host [GROWL_HOST ...]
Growl host name/ip, default: 127.0.0.1
--growl-port [GROWL_PORT ...]
Growl port, default: 23053
-v, --verbose Show detail process
Support
- Python 3.x
Author
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
diskspacemon-0.19.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diskspacemon-0.19.tar.gz.
File metadata
- Download URL: diskspacemon-0.19.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
226f763aeb412daff1b54da1237567fb8557c336504e2c2241d79a914c1fd968
|
|
| MD5 |
43c38fa399979c8dec5fab1c95c5f129
|
|
| BLAKE2b-256 |
51509159d75da132e63d2b5e1f1af9c39012ed890c0fd43bdf08afd04f5e8c5c
|
File details
Details for the file diskspacemon-0.19-py3-none-any.whl.
File metadata
- Download URL: diskspacemon-0.19-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7587bf5a65ef5c16f98f3f561fc468775fd7a0981fdd83009401fe8e01faf1b1
|
|
| MD5 |
64a8b8b82db7da9754015f52e8cefcd8
|
|
| BLAKE2b-256 |
0817b52a82796e0a1a0b95e7ef6e1e46f835bb451e8a502156c1d1917b4a9aa9
|