Closed aristdm closed 2 years ago
My tests showed, It's possible and with the new monitoring rules you can control the alarms and get more information.
I plan on doing something similar.
My goal is to try to get the vCenter admins to annotate the VMs with the teams and service-sets I want to match in the Director, this way I would be able to automate and reduce duplicate information while still retain as much flexibility as possible.
My first tests were successful in that i could create hosts and generate services that use the "icingacli vspheredb check" command. I got stuck because I can't yet get the alerts and events on the vCenter I was given for testing. As soon as the problem is fixed I will go on to further test if I can use vCenter VM tags/custom attributes in the Director for custom vars I use for notifications and service-sets.
Here is what you get from the command:
$ icingacli vspheredb check vm --name VM000001
[CRITICAL] Checking VM
[CRITICAL] Default Rules
\_ [OK] Overall VMware status is 'green'
\_ [OK] Virtual Machine is powered on
\_ [CRITICAL] System booted 186d 4h ago
[OK] Disk Health
\_ [OK] There are no snapshots
[OK] Configuration Policy
\_ [OK] Guest Tools (v10.3.46) are up to date and running
$ echo $?
2
v1.5 support this
Expected Behavior
The reason we installed this module is to be able to receive notifications via Director when we receive alerts related to our vsphere environment. Currently this is not possible via this plugin (or am I wrong?)
We would like to be able to create (or Import) checks via director for simple things like when a guest disk in vsphere (disk C, D etc) reaches critical/warning threshold and it has no much free space.
If this is something that is currently supported is it possible for someone to provide us with a simple how-to as the documentation is very poor (non-existent) except on how to install the plugin and enable it in icingaweb2.
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Your Environment