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.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-01-18 15:40:01 +01:00
.github/ISSUE_TEMPLATE Add GitHub files (license, code of conduct, etc.) 2019-01-18 15:40:01 +01:00
check_rhevm_storage.py help mistake 2019-01-14 11:54:57 +01:00
CODE_OF_CONDUCT.md Add GitHub files (license, code of conduct, etc.) 2019-01-18 15:40:01 +01:00
CONTRIBUTING.md Add GitHub files (license, code of conduct, etc.) 2019-01-18 15:40:01 +01:00
LICENSE.txt Add GitHub files (license, code of conduct, etc.) 2019-01-18 15:40:01 +01:00
README.md Update README.md 2019-01-14 11:59:45 +01:00
snapshot_delete.py adding scripts 2019-01-14 11:24:04 +01:00

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