Host Variables and Backslash Characters
Host Variables and Backslash Characters
Is there a variable like %Host% or %HostAddr% that can be used with tests like UNC, Performance Counter, Text Log etc that returns the host name without the \\ characters at the start of the string?
That would be terrific. Some of the problems that this would solve for me include:
- Being able to use an expression for a master dependency such as '%::%hostaddr%: Ping::SimpleStatus%'=='UP'
Being able to use %hostaddr% in custom menu parameters that need a hostname without the \\ prefix.
There is update at www.ks-soft.net/download/hm911.zip
If you are using version 9.10, you need to stop HostMonitor, unzip file, replace hostmon.exe module, create backup copy of your test list (HML file), add HostAddr_IncludeSlashes=0 line into [Misc] section of hostmon.ini file and start HostMonitor.
If you are using older version, check if your license valid for version 9.10 (using menu Help->Update check), update entire package, then apply this unofficial update.
Regarding backup copy of HML file: this version will add some new fields to test list that will be used in future versions so version 9.10 will not be able to use new test list. If you will need to downgrade for some reason, you will need backup.
Actually HostMonitor creates backup copy when it modifies structure of test list but one extra copy will never hurt.
Regards
Alex
If you are using version 9.10, you need to stop HostMonitor, unzip file, replace hostmon.exe module, create backup copy of your test list (HML file), add HostAddr_IncludeSlashes=0 line into [Misc] section of hostmon.ini file and start HostMonitor.
If you are using older version, check if your license valid for version 9.10 (using menu Help->Update check), update entire package, then apply this unofficial update.
Regarding backup copy of HML file: this version will add some new fields to test list that will be used in future versions so version 9.10 will not be able to use new test list. If you will need to downgrade for some reason, you will need backup.
Actually HostMonitor creates backup copy when it modifies structure of test list but one extra copy will never hurt.
Regards
Alex
The update to hm911 worked fine on the server and the ini file changed correctly removed the backslash characters, however the 9.10 RCC.exe failed to launch with the following error:
Will a new version of RCC.exe be required before we can deploy 911 on our production server?
Code: Select all
Retrieving test list... String is too long. File may be corrupt.
The 9.12 upgrade has fixed the issue with RCC.exe not being able to connect, however in the RCC client %host% and %hostaddr% still return the backslash characters.
In Hostmon.exe %host% and %hostaddr% have the backslash characters removed.
Does the 'HostAddr_IncludeSlashes=0' need to be added to the RCC.INI file in addition to the Hostmon.ini file or is this a bug in RCC?
In Hostmon.exe %host% and %hostaddr% have the backslash characters removed.
Does the 'HostAddr_IncludeSlashes=0' need to be added to the RCC.INI file in addition to the Hostmon.ini file or is this a bug in RCC?