VMware VM Snapshots Logic Module and Alert Tuning
Hi all,
let's discuss following issue. There is a Data point AgeInHours (Age of the snapshot in hours. VMware does not recommend using a given snapshot for more than 24 to 72 hours.) However, in our case, we are completely fine to have some kind of VMs snapshots with extended aging period. Especially, we have some VMs, that are used as replica and therefore we need to store their snaphosts a little bit later. The thing is, how to adjust alerting, if we want to suppres this alert for VMs ending with "_replica"in his name and for all other VMs the default alert value could be in use. Do you have any suggestion how to manage it? Is it possible at all?
Any help will be much appreciated!
Clark_Kent
Posted 4 years ago·Last reply 4 years ago
8 comments
Clark_Kent
OP4 years agoFortunately, there were quit simple and handy solution. It is possible to manually use instance groups - add instances to a group then apply thresholds to the group. If you add more instances later to the group, you still have to re-apply the thresholds to the group (the group is just a way of saving time when applying the threshold, not a means to applying a policy to the group).
Clark_Kent
OP4 years agoHi @MCMCMC and @mnagel, thank you so much for your inputs. Now, I understand, that the only way to distinguish threshold rules for particular VMs is to write API script and adjust the thresholds e.g. based on the instance name.
MCMCMC
·4 years agoThat is something I had to accept. There is no other way than API or cloning DS and loosing update capabilities.
Clark_Kent
OP4 years agoHi MCMCMC,
I am not sure I could change global settings... I would just adjust only Datasource Threshold to have different alert thresholds within the one item Data Source - in our caseVMware VM Snapshots Logic Module
mnagel
·4 years agoSure, that works, but you are diverge from the source and updates will thwack the changes. Or, you do this in a clone, disable the parent and then merge changes into the clone when they are published. A lot of very manual error-prone activity, sadly.
mnagel
·4 years agoThere is no rule system for thresholds -- some datasources have tuning variables (e.g., the beta SNMP_Network_Interfaces module that is in the repo), but no general rules capability for setting thresholds like this. You would need to write an API script to accomplish this by adjusting the thresholds based on the instance name or whatever other attributes you want to use (e.g., instance properties).
MCMCMC
·4 years agoI was able to use Filter option in snapshot datasource to filter out devices from snapshot monitoring.
Try something like that in snapshot DS:
"##WILDVALUE##" "RegExNotMatch" "\w+_replica$"
or "##WILDALIAS##" "RegExNotMatch" "\w+_replica$"
Just check what data is being pulled out when you hit TestScript button.