View for items with an expression on "this test depends

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
merce
Posts: 2
Joined: Wed Apr 27, 2016 4:15 am

View for items with an expression on "this test depends

Post by merce »

Hi!

I have a lot of tets with and expression on "This test depends on" like:

('%::Ping: %Folder%::SimpleStatus%'=="UP")

They're status is Unkown a lot of times, althoug the ping alert is OK, so I want to modify all of them to "This test depends on another test" and insert there the test of the ping directly.

I need a view to see quickly which tests I need to modify, but I'm trying to do something like this in the view properties and it doesn't work:

Select items using expresson
%MasterTest%=="('%::Ping: %Folder%::SimpleStatus%'=="UP")"

Can anyone help me?

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

Post by KS-Soft »

I have a lot of tets with and expression on "This test depends on" like:
('%::Ping: %Folder%::SimpleStatus%'=="UP")
You are using another variable instead of test name?
I don't think we ever officially supported such option :roll:
They're status is Unkown a lot of times, althoug the ping alert is OK, so I want to modify all of them to "This test depends on another test" and insert there the test of the ping directly.
Why do you think "Unknown" status caused by Master expression?
What exactly error do you see in Reply field?
Test method?
HostMonitor version?
I need a view to see quickly which tests I need to modify, but I'm trying to do something like this in the view properties and it doesn't work:
Select items using expresson
%MasterTest%=="('%::Ping: %Folder%::SimpleStatus%'=="UP")"
This should not work. %MasterTest% is name of the test item, even if you setup "depends on expression" option, this variable returns test name.

If you want to find such tests, probably the only "quick" option - export tests into text file (menu File->Export...)

Regards
Alex
merce
Posts: 2
Joined: Wed Apr 27, 2016 4:15 am

Post by merce »

Hello and thanks for you fast support!

I'm a bit new with this... i will try to answer you:
KS-Soft wrote:
I have a lot of tets with and expression on "This test depends on" like:
('%::Ping: %Folder%::SimpleStatus%'=="UP")
You are using another variable instead of test name?
I don't think we ever officially supported such option :roll:
I have a hostname as a folder, and then, inside each folder, a lot of tests depending on this expression, that pretends to do a ping to the hostname.
KS-Soft wrote:
They're status is Unkown a lot of times, althoug the ping alert is OK, so I want to modify all of them to "This test depends on another test" and insert there the test of the ping directly.
Why do you think "Unknown" status caused by Master expression?
What exactly error do you see in Reply field?
Test method?
HostMonitor version?
Sorry... i mistake there. The status is waiting for master, althoug the machine does ping. If I change the master expresion to a "another test" and I put there a ping test to the machine, the status is never waiting for master if the machine does ping.

It happens in different test methods, count files, process, services...

My HM version is: 10.10

KS-Soft wrote:
I need a view to see quickly which tests I need to modify, but I'm trying to do something like this in the view properties and it doesn't work:
Select items using expresson
%MasterTest%=="('%::Ping: %Folder%::SimpleStatus%'=="UP")"
This should not work. %MasterTest% is name of the test item, even if you setup "depends on expression" option, this variable returns test name.

If you want to find such tests, probably the only "quick" option - export tests into text file (menu File->Export...)
Thanks, i will try to.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you have test named "Ping hostname.com" then you may use exression ('%::Ping hostname.com::SimpleStatus%'=="UP")
On the other hand, its better to use "This test depends on another test" option for such simple expressions.

Regards
Alex
Post Reply