script with Hostmon Test

If you have information, script, utility, or idea that can be useful for HostMonitor community, you welcome to share information in this forum.
Post Reply
kochpet
Posts: 1
Joined: Tue Oct 31, 2006 10:19 am
Location: Austria
Contact:

script with Hostmon Test

Post by kochpet »

hallo everybody,

i want to write a script , where i check services from 6 Computer. For every service i have a hostmon test , thats not the problem.

i want a test , where i can say . If more then 2 service of the 6 are bad , then the whole test is bad.

I dont know , how i can use my hostmon test in a script.

Can somebody help me ?

kind regards

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

Post by KS-Soft »

You don't need a script. You need dependant test. You may
- setup auxiliary test item (e.g. ping 127.0.0.1)
- select "This test depends on expression" option of the test
- use expression like "%FolderCurrent_BadTests% < 3" for "Perform test if" option
- set "OtherwiseStatus" option to Bad
- mark "Synchronize status&alerts" option

On the other hand... are you sure you need such item? May be you need just "advanced mode" action?
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction

Regards
Alex
Post Reply