Action Depends on "bad" one when using Advanced Mo

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
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Action Depends on "bad" one when using Advanced Mo

Post by Colinl »

Alex,

I use RECURRENCES==2 in my "bad status" action profile but i just cannot figure out how to get the "Good status" action only to activate when and only when "Bad Status" RECURRENCES==2.

In other words, I would like the "Action Depends on a bad one" tick box enabled when I use Advanced Mode in the Bad Status Action.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you do not need "advanced" mode action. Use "standard" mode with the following parameters:
- Start when 2 consecutive "bad" results occur
- Repeat 1 time
Then enable "Action depends on a bad one" option.

Regards
Alex
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Post by Colinl »

I forgot to mention that I am using advanced mode as I want to be reminded every 1 hour that the test is still down. My full check is as follows:

(%SimpleStatus%=='DOWN') and (%RECURRENCES% mod 12==1) hence the need for advanced mode.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I see...
Unfortunately "advanced" mode actions do not provide "action depends on bad one" option and its not very easy to implement this option. We need to redesign one module. Sorry, we cannot do that right now.

Regards
Alex
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Post by Colinl »

I have done the following: created 2 "Bad Status Actions"

1. Start when 2 repeat 1 (this will generate the initial "email to advise of link down.)

2. Advanced Mode ("SimpleStatus" == DOWN) and (%RECURRENCES% MOD 12==1)

This then allows me to select 1 (above) as the "Action depends on a bad one" within the "Good Status Action".

Only problem is I can't do maths very well and I am trying to figure out the correct MOD x==y (i.e. x 7 y values) to have email sent every 15 recurrences.

Any help would be appreciated
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I have done the following: created 2 "Bad Status Actions"
Good idea.
to have email sent every 15 recurrences
If you want to start action on 2nd, 17th, 32nd... iterations, use expression (%RECURRENCES% MOD 15==2)
If you want to skip 1st alert and start action on 17th, 32st, 47nd... iterations, use expression (%RECURRENCES% MOD 15==2) and (%RECURRENCES% > 15)

Regards
Alex
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Post by Colinl »

Thanks for this info, seems simple when you say it (:-)
Post Reply