check_pve2

COREX PROXMOX VE check plugin for Icinga 2

check_pve2

COREX PROXMOX VE check plugin for Icinga 2

Features

  • checks PROXMOX VE host over API
  • authentication with api key and password
  • prints performance data for Icinga 2 Graphite Module ( and other solutions like Graphite )
  • available subcommands: ceph, cluster, cpu, disks_health, memory, pveversion, services, storage, swap
  • warning/critical thresholds for each separate subcommands
  • for more details run check_pve2.py --help

Usage


# cd /usr/lib/nagios/plugins
# ./check_pve2.py --hostname pve.mydomain.com --api_user monitoring@pve --api_token A12fhaDFCjn92aKt=123f922a-e10b-12z7-e133-Aa3476b866ar --subcommand cpu --nodename pve --warning 65 --critical 85
OK - CPU usage is 25.07 %. |usage=25.07%;65;85;0;100


# cd /usr/lib/nagios/plugins
# ./check_pve2.py --hostname pve.mydomain.com --api_user monitoring@pve --api_token A12fhaDFCjn92aKt=123f922a-e10b-12z7-e133-Aa3476b866ar --subcommand storage --nodename pve --warning 70 --critical 80 --ignore-disk vm-backup
OK - pbs-backup disk usage (type: pbs) is 66.38 % (5.7 TB / 8.59 TB).                        |pbs-backup=5.7TB;6.01;6.87;0;8.59
OK - local disk usage (type: dir) is 1.57 % (6.75 GB / 430.19 GB).                        |local=6.75GB;301.13;344.15;0;430.19
OK - ceph_hdd disk usage (type: rbd) is 56.5 % (11.7 TB / 20.71 TB).                        |ceph_hdd=11.7TB;14.5;16.57;0;20.71
OK - local-zfs disk usage (type: zfspool) is 0.0 % (0.09 MB / 423.44 GB).                        |local-zfs=0.0GB;296.41;338.75;0;423.44
OK - ceph_ssd disk usage (type: rbd) is 62.29 % (5.88 TB / 9.44 TB).                        |ceph_ssd=5.88TB;6.61;7.55;0;9.44


# cd /usr/lib/nagios/plugins
# ./check_pve2.py --hostname pve.mydomain.com --api_user monitoring@pve --api_password nagios --subcommand cluster
OK - corexcluster cluster is working well.

Version

  • 1.23

ToDo

  • waiting for bugs or feature requests (-:

Changelog

  • [initial release] version 1.23