Highlighted
Regular Contributor.. Regular Contributor..
Regular Contributor..
246 views

How to add time variable in alarmdef if loop?

symptom Disk_Bottleneck type=DISK
rule GBL_DISK_UTIL_PEAK > 70 prob GBL_DISK_UTIL_PEAK
####rule GBL_DISK_SUBSYSTEM_QUEUE > 3 prob 25

alarm Disk_Bottleneck > 70 for 180 minutes
type = "Disk"
start
if Disk_Bottleneck > 70 for 180 minutes then
Major alert "Disk Bottleneck probability= ", Disk_Bottleneck, "%"
repeat every 10 minutes
if Disk_Bottleneck > 70 for 240 minutes then
critical alert "Disk Bottleneck probability= ", Disk_Bottleneck, "%"
end
reset alert "End of Disk Bottleneck Alert"


The IF loop doesn't accept the time variable.  

Because 

IF conditions must be followed by THEN clause.


If I create two seperate alarms, when 70% for 240 minutes reach, both Major and Critical will be true and we receive two alerts for same issue. Please help finding a solution. 

Thanks in Advance, 
Avinasha

Tags (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.