Send mail based on old results

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
aicorda
Posts: 15
Joined: Tue Mar 08, 2011 8:30 am

Send mail based on old results

Post by aicorda »

Is it possible to send an email when a result of a script is the same 5 days in a row.

Thank in advance
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Sure. Suppose, test interval is set to 1 day.
You may use "Start when 5 consecutive Bad results occur" option in Action properties dialog.

If you want to send e-mail when sctipt returns same Reply for 5 days, then:
1. use send e-mail Action with Advanced mode and expression like:
('%CurrentStatusIteration%' >= '5')
2. set "Use 'Normal' status if" expression like (this will reset %CurrentStatusIteration% when Reply changes):
'%SuggestedReply%'<>'%SuggestedLastReply%'

Please check the manual or visit our web site for more information at:
"Advanced mode" action: http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
"Use Normal status" option: http://www.ks-soft.net/hostmon.eng/mfra ... rmalstatus
Start when N consecutive Bad/Good results occur option: http://www.ks-soft.net/hostmon.eng/mfra ... #StartWhen
Post Reply