This post is more than 5 years old
9 Posts
0
139880
June 15th, 2012 07:00
vFoglight Rule Alerts not behaving correctly
Hi,
I'd like to create what i would think should be a relatively simple rule, here are the specifics, if anyone can offer some help that would be great.
- The rule should only include VMware virtual machines that who's name meet a particular criteria, i.e. 'Maintenance-' (see attached screenshot 'rule definition')
- The rule should alert if the CPU reaches varying levels, i.e. 60 for warning, 70 for critical etc (see attached screenshot 'rule conditions').
Here is what i would expect to happen......
The first point should restrict the scope of the rule to only virtual machines that meet this criteria. If i tick the green 'validate rule scope' box in this section it shows me a list of those virtual machines with this name. Great.
The second point should then take these scoped virtual machines and look at the CPU utilization and compare this to the threshold set in the registry variable.
With reference to the 3rd screenshot (rule alerts) - the first issue is that I am getting alerts for pretty much all of the virtual machines, so it's ignoring the scope.
The second issue is that it's not taking any notice of the severity levels, so it's just alerting for regardless of whether it meets the threshold. Any strangely i've actually disabled the 'warning' alarm so it should event be alerting for this type.
Any advice would be very welcome. Or if there is a better way of doing what im aiming to do that would be fantastic.
Thanks



DELL-Thomas B
171 Posts
1
June 15th, 2012 15:00
If you reboot the host and clear the alarms it should only fire on the VMs in the scope. There is a bug that basically sticks the rule in memory and doesn't update properly. Last I looked there is a fix on that slated for 6.6.2 (Core 5.6.4)
andynick
9 Posts
0
June 18th, 2012 14:00
Thanks Thomas that seems to have done the trick in respect of the scope. The only issue now is it doesnt seem to be alerting at all (one extreme to the other!).Do you know of any useful docs on creating rules? Im struggling to create this most basic of rules, a few wizards would be useful for novices like myself!!
DELL-Naomi B
1 Message
1
June 18th, 2012 16:00
Hi Andrew,
Do this topic and related topics (like this one) provide the information you're looking for?
Thanks,
--Naomi
andynick
9 Posts
0
June 25th, 2012 13:00
Hi Naomi,
Thanks a lot for the above, they seem really useful. Having read through these im still struggling though, can you tell me how to do a basic cpu alert i.e. the exact syntax i should put in the Rule Definition - Rule scope and the Condition boxes to get the basic CPU utilization of a virtual machine with the name '%Maintenance%'.
It really shouldnt be this difficult, not sure if it's to do with the issue Thomas mentioned above, i did reboot the server but i shouldnt have to do it whenever i want to tinker with a rule!!
Thanks again
sbc350
21 Posts
0
July 20th, 2012 14:00
if(#utilization from $scope.hostCPUs# >= registry("INF_CPUuseCritical")) return true;
else return false;
You might want to validate, It might have typos in there, but that should give you the basic.