Condition/Alert Question

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
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Condition/Alert Question

Post by sadek76 »

Let's say you have four pc's and you are testing them with a PING test.
If one fails you generate an alert condition saying that the PC is down.
If all four fail, is there anyway to generate a different alert condition saying that the router/hub/network is down?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you may use "advanced" mode action:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction

Use expression like ('%::Test1::SimpleStatus%'=='DOWN') and ('%::Test2::SimpleStatus%'=='DOWN') and ('%::Test3::SimpleStatus%'=='DOWN') and('%::Test4::SimpleStatus%'=='DOWN') and
((%::Test1::Recurrences%==1) or (%::Test2::Recurrences%==1) or (%::Test3::Recurrences%==1) or (%::Test4::Recurrences%==1))


Regards
Alex
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

Works perfectly... Thanks for the quick response!
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

One minor problem. In Advanced mode I'm unable to select "Action depends on 'bad' one" or the "Start when # consecutive 'Good' results occur" or the "Repeat # time(s).

Can these options be turned on? or do I have to add some code to the expression?
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

Nervermind I answered my own question. I added:
and ('%LastStatus%')=="Bad" and ('%StatusID%')=="01" to the clear event and now only generate 1 clear event when the status changes.
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

Is there anyway to change the value of a user defined variable?
Say that I have a UDV set for 60. When my test fails I would like the value of the UDV to change to 10. When the test passes, I would like to change the value back to 60.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, HostMonitor does not provide option
You need some test that should change action profiles behavior?

Regards
Alex
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

What I wanted was to change the refresh rate on a web page to 10 seconds when a test goes into a failed status.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I was wrong :oops:
You may use "HMScript" action and SetUserVariable script command
www.ks-soft.net/hostmon.eng/mframe.htm# ... #actScript

Regards
Alex
sadek76
Posts: 71
Joined: Tue Apr 27, 2004 3:28 pm
Location: New Jersey

Post by sadek76 »

I used the HMScript to change the value of my UDV, but in the .html file that is built, the UDV name still shows up, instead of it's value.
<meta http-equiv="REFRESH" CONTENT=%udv_refresh_time%>
When I use a HM defined variable like %Folder% it shows correctly
<meta http-equiv="REFRESH" CONTENT=Root>
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is list of macro variables that can be used in the report
www.ks-soft.net/hostmon.eng/mframe.htm# ... m#RepMacro
HostMonitor does nto support UDV macros in the report template

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

Post by KS-Soft »

I have added this task into "to do" list. Low priority

Regards
Alex
Post Reply