Retry test befor seting failed condition
Retry test befor seting failed condition
I am looking for a way to have a test that fails to retry immediately and only set the failed condition when the second attempt fails upon the second failure I want to take a failed action.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
To retry test immediately you should add "Repeat test" action to the alert profile. Quote from the manual: http://www.ks-soft.net/hostmon.eng/mfra ... #actRepeat
==============================
Repeat test
This action simply forces the program to perform the test one more time (not waiting until time of the test interval is elapsed).
==============================
For the second action, that will alert you, you should set "Start when 2 consecutive "Bad" results occur" parameter. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... properties
==============================
Start when N consecutive Bad/Good results occurThis parameter determines when to execute an action. For example you want to send a message to a network administrator's pager after three unsuccessful tests of the web server consecutively, set this parameter to 3. If you want to start action right after the test status was changed, set parameter to 1.
==============================
Regards,
Max
==============================
Repeat test
This action simply forces the program to perform the test one more time (not waiting until time of the test interval is elapsed).
==============================
For the second action, that will alert you, you should set "Start when 2 consecutive "Bad" results occur" parameter. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... properties
==============================
Start when N consecutive Bad/Good results occurThis parameter determines when to execute an action. For example you want to send a message to a network administrator's pager after three unsuccessful tests of the web server consecutively, set this parameter to 3. If you want to start action right after the test status was changed, set parameter to 1.
==============================
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
If you do not want to treat first "Bad" status as "Bad", you may extend foregoing solution using "Optional Status Processing" options.
It means you may assign "Normal" or "Warning" status to the test, when it fails for the first time. For instance, you may use expression below to set "Warning" status for the test, that fails once:
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... processing
Regards,
Max
It means you may assign "Normal" or "Warning" status to the test, when it fails for the first time. For instance, you may use expression below to set "Warning" status for the test, that fails once:
Code: Select all
('%SuggestedSimpleStatus%'=='DOWN') and (%SuggestedRecurrences%==1)
Regards,
Max
First of all Thank you for the assistance.
It seems that if I add repeat test action to the “bad” profile the test initially fails but the repeat of the test is successful I do not get the “bad” email, but I do get the recovery e-mail.
If I understand correctly I can
1) uncheck “treat warning status as bad”
2) add “('%SuggestedSimpleStatus%'=='DOWN') and (%SuggestedRecurrences%==1)” to the “use warning status if”
3) set the bad action to first occurance
Then the bad action profile will only trip if there has been a second bad occurrence. But this will occur after the specified time interval.
In the above scenario, since the test did not reach a “bad” status I will not receive the bad e-mail, however the repeat of the test will not occur until the next scheduled interval.
Will my dependent tests wait for the master to be good?
Will I still get a recovery e-mail when the test moves from warning to good?
It seems that if I add repeat test action to the “bad” profile the test initially fails but the repeat of the test is successful I do not get the “bad” email, but I do get the recovery e-mail.
If I understand correctly I can
1) uncheck “treat warning status as bad”
2) add “('%SuggestedSimpleStatus%'=='DOWN') and (%SuggestedRecurrences%==1)” to the “use warning status if”
3) set the bad action to first occurance
Then the bad action profile will only trip if there has been a second bad occurrence. But this will occur after the specified time interval.
In the above scenario, since the test did not reach a “bad” status I will not receive the bad e-mail, however the repeat of the test will not occur until the next scheduled interval.
Will my dependent tests wait for the master to be good?
Will I still get a recovery e-mail when the test moves from warning to good?
Its easy to change, just set "Action depends on Bad one" option for "good" action.It seems that if I add repeat test action to the “bad” profile the test initially fails but the repeat of the test is successful I do not get the “bad” email, but I do get the recovery e-mail.
Yes. Another solution, use Normal status instead of Warning.If I understand correctly I can
1) uncheck “treat warning status as bad”
2) add “('%SuggestedSimpleStatus%'=='DOWN') and (%SuggestedRecurrences%==1)” to the “use warning status if”
3) set the bad action to first occurance
Then the bad action profile will only trip if there has been a second bad occurrence. But this will occur after the specified time interval.
Yes.In the above scenario, since the test did not reach a “bad” status I will not receive the bad e-mail, however the repeat of the test will not occur until the next scheduled interval
If you want to repeat test right away, add "Repeat test" action into Action Profile
If you do not use "Recheck dependant test items when master test status has been changed" option, HostMonitor will execute dependant tests on regular schedule.Will my dependent tests wait for the master to be good?
Regards
Alex