Patterns

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
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Patterns

Post by Kris »

Hiya all,

I'm working on the patterns for several tests.
We always use the hostname as first part of the test-name.
However, with some tests the hostname/target starts with "\\"
Would it be possible to strip these, something like:

Code: Select all

=Replace(%host%,"\\","")
or

Code: Select all

=Right(%host%, len(%host%)-2)
oakyuz
Posts: 74
Joined: Thu Feb 08, 2007 5:48 am

Post by oakyuz »

Hi

You can use %HostAddrB% variable in Test Name field.
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

oakyuz wrote:You can use %HostAddrB% variable in Test Name field.
Unfortunately that's not allowed in the Patterns...
Does work in the individual tests though. Thanks! :wink:
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Unfortunately that's not allowed in the Patterns...
Do not see any problems using %HostAddrB% in Patterns.

Could you describe how exactly %HostAddrB% "not allowed in the Patterns"?
HostMonitor version?
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Hmmmm maybe I'm doing something wrong then.

I goto "Profiles" --> "Patterns"
For the "CPU usage" template I try to set the "Testname template" column to:
"%HostAddrB%: CPU Usage"

I then receive the error:
"TestName pattern does not provide enough information about test item
Template should contain either %host% or %path% or %object% or ((%folder% or %FCommentLine<N>% or %agent%) and (%testmethod%))"

It will save the input, but disable the template.

HM9.80B
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This was changed in version 9.82 (should be available soon)

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Ah... thanks!
You're the best! 8)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Done, version 9.82 Beta available for download.

Regards
Alex
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

Post by Kris »

Works perfectly. Thanks!
Post Reply