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
Metadata
Release files for diskspacemon 0.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diskspacemon-0.19.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diskspacemon-0.19-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / diskspacemon-0.19.tar.gz
| Download URL | diskspacemon-0.19.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
226f763aeb412daff1b54da1237567fb8557c336504e2c2241d79a914c1fd968
|
|
BLAKE2b-256 checksum How to use checksums |
51509159d75da132e63d2b5e1f1af9c39012ed890c0fd43bdf08afd04f5e8c5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / diskspacemon-0.19-py3-none-any.whl
| Download URL | diskspacemon-0.19-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7587bf5a65ef5c16f98f3f561fc468775fd7a0981fdd83009401fe8e01faf1b1
|
|
BLAKE2b-256 checksum How to use checksums |
0817b52a82796e0a1a0b95e7ef6e1e46f835bb451e8a502156c1d1917b4a9aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|