Retry test befor seting failed condition

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
lscarpace
Posts: 4
Joined: Thu Jul 05, 2007 4:49 pm

Retry test befor seting failed condition

Post by lscarpace »

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.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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:

Code: Select all

('%SuggestedSimpleStatus%'=='DOWN') and (%SuggestedRecurrences%==1)
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... processing

Regards,
Max
lscarpace
Posts: 4
Joined: Thu Jul 05, 2007 4:49 pm

Post by lscarpace »

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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.
Its easy to change, just set "Action depends on Bad one" option for "good" action.
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. Another solution, use Normal status instead of Warning.
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
Yes.
If you want to repeat test right away, add "Repeat test" action into Action Profile
Will my dependent tests wait for the master to be good?
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.

Regards
Alex
Post Reply