non-typical test

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
Igorek
Posts: 47
Joined: Wed Jul 06, 2005 8:55 pm
Location: Russia

non-typical test

Post by Igorek »

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

Post by KS-Soft »

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
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
Igorek
Posts: 47
Joined: Wed Jul 06, 2005 8:55 pm
Location: Russia

Post by Igorek »

%Rettries% ??? I can't find it in manual. May be is %Recurrences% ?
What kind test use for this action?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, Recurrences. Sorry for mistake.
I thought you don't need any test. You said you need play sound actions.

Regards
Alex
Igorek
Posts: 47
Joined: Wed Jul 06, 2005 8:55 pm
Location: Russia

Post by Igorek »

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

Post by KS-Soft »

This action can be started even if "Bad" action was not started
Post Reply