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
script with Hostmon Test
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
- 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