"Bad" action beeing executed on Good reply

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
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

"Bad" action beeing executed on Good reply

Post by Kapz »

Hi !

HM 5.67 on Win2003:

* Set up a test
* Assign an alert profile
* Edit the alert profile so that it only has one "Bad" status action and no "Good" status actions
* Edit the "Bad" status action and set Condition to start action to "advanced mode"
* Enter (1==1) as logical expression - this should hopefully be valid any time
* Let the test fail - HM will execute whatever it should in the "Bad" action
* Let the test go OK - now HM will also execute the "Bad" action and this I can't understand.

If I change (1==1) to ('%SimpleStatus%'=='DOWN') HM will only execute the action when the test in fact goes Bad which is what I wanted to achieve. But I cannot understand that I need to check SimpleStatus for a test placed in the "Bad" action status column - shouldn't these actions only be run when test status goes Bad - or at least anything else but OK ?

Thanx in advance !

Kasper :O)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Let the test go OK - now HM will also execute the "Bad" action and this I can't understand.
Why not? 1==1 so action will be executed.
If you are using "advanced" action, bad and good become just words for humans. HostMonitor checks expression.
E.g. you setup condition like (%::TestA::Reply%>100) or (%::TestB::Reply%<50). Is this "good" or "bad"? HostMonitor doesn't care - if expression is True, action will be started.

Regards
Alex
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Post by Kapz »

Alex,

> If you are using "advanced" action, bad and good become just words
> for humans. HostMonitor checks expression.
Now, *that* I understand - thanks for claryfying :)

Kasper :O)
Post Reply