Is it possible to send an email when a result of a script is the same 5 days in a row.
Thank in advance
Send mail based on old results
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
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