View previous topic :: View next topic |
Author |
Message |
Igorek
Joined: 06 Jul 2005 Posts: 47 Location: Russia
|
Posted: Thu Nov 17, 2005 5:27 pm Post subject: non-typical test |
|
|
There are three external tests. Their "Bad status" action profile: Start when 2 consecutive Bad results occur, Repeat 1 times (standard mode). Their "Good status" action profile: Start when 2 consecutive Good results occur, Repeat 1 times, Action depends on "bad" one (reference to "Bad status" action profile).
Other test is necessary. If have started "Bad status" action for ALL three above described tests then play sound "dead.wav" 1 time. If after that has started "Good status" action even for ONE test then play sound "alive.wav" 1 time.
How to create such test? Help, please me. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Nov 17, 2005 9:26 pm Post subject: |
|
|
Quote: | If have started "Bad status" action for ALL three above described tests then play sound "dead.wav" |
Add "advanced mode" action into profile. Use expression like ('%::Test1::SimpleStatus%'=='DOWN') and ('%::Test2::SimpleStatus%'=='DOWN') and ('%::Test3::SimpleStatus%'=='DOWN') and
(%Rettries%==2) and (%::Test1::Rettries%>1) and (%::Test2::Rettries%>1) and (%::Test3::Rettries%>1) and
Quote: | If after that has started "Good status" action even for ONE test then play sound "alive.wav" 1 time |
I don't see how this can be configured "Advanced" actions cannot depend on previously started actions...
Regards
Alex |
|
Back to top |
|
|
Igorek
Joined: 06 Jul 2005 Posts: 47 Location: Russia
|
Posted: Thu Nov 17, 2005 11:19 pm Post subject: |
|
|
%Rettries% ??? I can't find it in manual. May be is %Recurrences% ?
What kind test use for this action? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Nov 18, 2005 12:51 am Post subject: |
|
|
Yes, Recurrences. Sorry for mistake.
I thought you don't need any test. You said you need play sound actions.
Regards
Alex |
|
Back to top |
|
|
Igorek
Joined: 06 Jul 2005 Posts: 47 Location: Russia
|
Posted: Sun Nov 20, 2005 12:35 am Post subject: |
|
|
KS-Soft wrote: |
Quote: | If after that has started "Good status" action even for ONE test then play sound "alive.wav" 1 time |
I don't see how this can be configured "Advanced" actions cannot depend on previously started actions...
|
I adding play sound "alive.wav" action into "Good status" action profile:
(('%::Test1::SimpleStatus%'=='UP') or ('%::Test2::SimpleStatus%'=='UP') or ('%::Test3::SimpleStatus%'=='UP')) and (%Recurrences%==2)
Thanks
Igor |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Sun Nov 20, 2005 12:23 pm Post subject: |
|
|
This action can be started even if "Bad" action was not started |
|
Back to top |
|
|
|