Bad after 5 reocurrences

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Prometheus
Posts: 60
Joined: Wed Mar 09, 2016 1:23 am

Bad after 5 reocurrences

Post by Prometheus »

Hi guys,

I tought I was doing well with my monitoring, found a lot of useful information here, but I'm stuck again. The test below supposed to give an error after testing BAD for the fifth time. But it does not. It already gives an error at the first BAD attempt. Please tell me what I'm doing wrong?

Method = DominantProcess
;--- Common properties ---
;DestFolder = Prometheus\DBA & SB\#Prometheus OTA\Servers\Fysiek\servername\
Title = CHK-005, Dominant CPU process, servername
Comment =
RelatedURL =
NamePattern = CHK-005, Dominant CPU process, %host%
ScheduleMode= Regular
Schedule =
Interval = 30
Alerts =
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
UseWarning = Yes
WarningExpr = ('%SimpleStatus%'=='DOWN') and (%Recurrences%==5)
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
Host = servername
ExceptList =
Threshold = 90
CheckMode = CPU Usage
DisplayMode = ValueNameID
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

The test below supposed to give an error after testing BAD for the fifth time
"to give an error" means set Bad test status? otherwise set Warning status?
Then you set wrong expression ('%SimpleStatus%'=='DOWN') and (%Recurrences%==5)

try
('%SuggestedSimpleStatus%'=='DOWN') and (%FailureIteration% < 5)
or like this
(%FailureIteration% > 0) and (%FailureIteration% < 5)

Regards
Alex
Post Reply