From Wait for Master to Bad

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
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

From Wait for Master to Bad

Post by jromariz »

Alex,


How can i execute and action in a test which goes only from "Wait for Master" to "Bad" status? The action I´ve configured in Bad Action "side" are not been executed by hostmonitor.


Thanks,

Jromariz.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Alex,

Tried to setup an action with advance mode using expression ('%Status%'=='No answer') and ('%Recurrences%'=='3'), but still does not work...


Jromariz.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

How can i execute and action in a test which goes only from "Wait for Master" to "Bad" status? The action I´ve configured in Bad Action "side" are not been executed by hostmonitor.
If you are using "repeat 1 time" option for the action and test status changes from "Bad" to "WaitForMaster" and then back to "Bad", action should not be executed.
If test status changes from "Ok" to "WaitForMaster" and then to "Bad", action will be executed.
This is correct behavior.
('%Status%'=='No answer') and ('%Recurrences%'=='3'), but still does not work...
1) You said status is "Bad" not "No answer", so you should use expression like ('%Status%'=='Bad') or use expression like ('%SimpleStatus%'=='DOWN') for any failed status

2) Do not use '' for numbers. (%Recurrences%==3)

What exactly do you need?

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Alex,

This test will always go from wait for master to bad. I need the action to be executed every time it changes between this two status.


Thanks,


Jromariz.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I am afraid this is not possible. I think you should assign this action to master test.

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Alex,

The problem is:

1 - Have several test;
2 - Only would like to start action when all testes goes bad.

Any ideas?


Regards,


Jromariz.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If "all tests" means 3-10 tests, use advanced mode action. Or use regular action assigned to additional test (test that depends on "all tests").
If "all tests" means 100 test items, that's the problem...

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Alex,

Only about 10 to 20 tests.


Regards,

Jromariz.
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Post by Yoorix »

jromariz wrote:Only about 10 to 20 tests.
In such case you should try Advanced mode action and prepare expression like this:
('%::Test1Name::SimpleStatus%'=='DOWN') AND ('%::Test2Name::SimpleStatus%'=='DOWN') AND ... AND ('%::Test20Name::SimpleStatus%'=='DOWN')

Regards,
Yoorix
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Thanks a lot Yoorix,


Will give it a try.

Regards,


Jromariz.
Post Reply