Just installed and configured the official vcenterdb module for icinga2.
It is great! However, it seems this is relatively new, and there is not much documentation.
I have a few vcenters plugged in and it is gathering info as expected. Great. But now how can I create service alerts for this data? ie. If datastore fails, or datastore approaches certain threshold, critical alert.
Anybody have any documentation or information to point me in the right direction?
the module is waiting for its 1.2.0 release, but already has a CLI command ā¦ try something like icingacli vspheredb --help. Upon this you can construct specific checks, if I read the code correctly.
You have 6 options for service checks with this module:
# icingacli vspheredb check
datastore datastores host hosts vm vms
The ones ending with an s are overall checks.
The others, datastore, host, vm require a specific object with the parameter --name, icingacli vspheredb check host --name hostname
Thanks guys. Definitely moves me in the right direction. I see these are direct checks from the CLI. So to create checks for icingaweb2 I would bash script this? Or is there a better way?
Additionally, what can we expect in the 1.2.0 release? Is upgrading the module as simple as replacing the files?
Such things will be overridden on upgrade, please create a feature request/pull request so that this can be incorporated upstream
In terms of a CheckCommand - it doesnāt exist yet, but you can create one following the other examples with icingacli already inside the ITL. Please name the command icingacli-vspheredb and maybe create an upstream PR for integrating it.
Hereās an updated guide for creating check commands.
datastore Check Datastore Health
datastores Check all Datastores
host Check Host Health
hosts Check all Hosts
vm Check Virtual Machine Health
vms Check all Virtual Machines
Show help on a specific action: icingacli help vspheredb check