advanced condition to start AND action depends on bad one

General chat about HostMonitor
Post Reply
dsi
Posts: 9
Joined: Sun Sep 14, 2003 7:56 pm

advanced condition to start AND action depends on bad one

Post by dsi »

upgraded to 4.07 from using 3.xx - it is a whole lot better thanks guys.

in actions:

One thing I had wanted in 3.xx was a way to stop from getting a "GOOD" status page when I test first comes into schedule for that day and it is good (read as I want to sleep past 1am on days following bad days) I believe I can do this with the following "advanced condition"

'%LastStatus%'<>'OutOfSchedule'

but when I select "advaced condition" the "action depends on bad one" option gets greyed out. is there a way around this, or a way to add it to the advanced condition? If there is I must be missing it.

thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>One thing I had wanted in 3.xx was a way to stop from getting a "GOOD" status page when I test first comes into schedule for that day and it is good

H'm, may be I misunderstand something but... If you do not use "Repeat: until status changes" option of the action, HostMonitor will not start that action when test status changes from "OutOfSchedule" to "good" (and it was "good" before that schedule limit). In other words HostMonitor does not consider "good"->"OutOfSchedule"->"good" or "bad"->"OutOfSchedule"->"Bad" sequences as status change.
If you use "Repeat: until status changes" option of the action, HostMonitor will start action ("good" or "bad") every time test performed.

>but when I select "advaced condition" the "action depends on bad one" option gets greyed out.

Yes, its limitation by design. Probably will be improved in future versions

Regards
Alex
dsi
Posts: 9
Joined: Sun Sep 14, 2003 7:56 pm

Post by dsi »

KS-Soft wrote:>
H'm, may be I misunderstand something but... If you do not use "Repeat: until status changes" option of the action, HostMonitor will not start that action when test status changes from "OutOfSchedule" to "good" (and it was "good" before that schedule limit).

right... I was not clear, the thing I run into is that the test was bad from 1am to 7am one day, it goes out of schedule with a "Bad" result. The next day when the test comes into schedule it is good, and I get a page telling me it is good. it is really confusing for the people that rotate on-call duties - they often think they have missed a page. I know I could disable the "Good" messages, but they are useful in most situations.

is there a way to write the "depends on bad one" logic into the advanced criteria or some other solution that I am missing?

not complaining if it is impossible, but it would not be the first time I missed how to do something in product documentation.

thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, now I understand what do you need. But I don't see how it can be configured in current version of HostMonitor.
I think we can implement new macro variable in future versions, some %PreviousStatus% that will take any status including OutOfSchedule. Expression to start action will look like ('%Status'=='Host is alive') and ('%PreviousStatus%'=='No answer')

Regards
Alex
dsi
Posts: 9
Joined: Sun Sep 14, 2003 7:56 pm

Post by dsi »

aah - it does not work the way i thought it did in this version

thanks for keeping me from spending time trying to fix it
Post Reply