Closed K0nne closed 2 years ago
Hello
Thank you for the issue. I think this is a documentation error. We have no base value to compare the total snapshot size
to.
We could add the partition size the snapshots are located on as base value, which would then offer the %
unit to work.
Is this what you would expect?
Hello @LordHepipud
the required base value haves to be the size of the snapshotted vm disk.
Hello
I'm not sure if this makes sense. The Total Snapshot size is the sum of every single snapshot created for this virtual machine on the local disk/storage of the Hyper-V.
Is it beneficial to know, that the Snapshot Size is a certain % value of the size of virtual disk of the VM or the storage location it is placed on?
I honestly don't know, that's why I ask.
Fun fact: I just figured out, that there are two packages with the same entry. For one with the BaseValue
of the current partition size and one without, which is the one throwing the error.
I'm not sure if this makes sense.
Unfortunately I do not know that either.
I asked my colleagues from the hyperv team and got this information.
I asked again if I understood correctly and it was confirmed.
I just updated the linked PR. The metric is now using the disk sizes of the VM as base value. Could you please test this?
I tested the PR. Now i can set threshold values as expected. Thank you @LordHepipud
Hello,
I want to use "TotalSnapshotSizeWarning" and "TotalSnapshotSizeCritical". According to the docs it is possible to use percentage units:
vars.IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeWarning = "30%" vars.IcingaCheckHyperVSnapshot_Object_TotalSnapshotSizeCritical = "40%"
When I do it, I get the following error: