mirror of
https://github.com/republique-et-canton-de-geneve/python-redhat-virtualization.git
synced 2026-08-25 23:54:15 +00:00
Nagios scripts for RedHat RHEV-M. | Read-only mirror of https://github.com/republique-et-canton-de-geneve/python-redhat-virtualization — République et canton de Genève. Issues & pull requests at the source.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/ISSUE_TEMPLATE | ||
| check_rhevm_storage.py | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE.txt | ||
| README.md | ||
| snapshot_delete.py | ||
Python scripts for RedHatⓇ RHEV-M
Table of contents
Running
Preconditions
The following software needs to be installed to run the scripts:
Usage
check_rhevm_storage
check_rhevm_storage is a nagios plugin script which checks all storages of the specified datacenter, alerting you rhen the threshold has ben reached.
You can use the -h argument for help :
$ ./check_rhevm_storage.py -h
usage: check_rhevm_storage.py [-h] -d D -r R -u U -p P -k K -w W -c C
optional arguments:
-h, --help show this help message and exit
-d D datacenter name
-r R rhevm api url
-u U rhevm username
-p P rhevm password
-k K rhevm CA
-w W warning in %
-c C critical in %
snapshot_delete
snapshot_delete is a script that will delete all snapshots matching your pattern.
You can use the -h argument for help :
$ ./snapshot_delete.py -h
usage: snapshot_delete.py [-h] -r R -u U -p P -k K -s S
optional arguments:
-h, --help show this help message and exit
-r R rhevm api url
-u U rhevm username
-p P rhevm password
-k K rhevm CA
-s S snapshot pattern