Host Variables and Backslash Characters

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
lollbackj
Posts: 8
Joined: Wed Jul 20, 2011 8:11 pm

Host Variables and Backslash Characters

Post by lollbackj »

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you never need address with backslashes, we can add some switch so HostMonitor will remove \\ in %HostAddr% variable...

Regards
Alex
lollbackj
Posts: 8
Joined: Wed Jul 20, 2011 8:11 pm

Post by lollbackj »

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.
Many thanks for the prompt reply and the willingness to accomodate a change.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
lollbackj
Posts: 8
Joined: Wed Jul 20, 2011 8:11 pm

Post by lollbackj »

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:

Code: Select all

Retrieving test list...  String is too long. File may be corrupt.
Will a new version of RCC.exe be required before we can deploy 911 on our production server?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We will upload version 9.12 today (including RCC)

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

Post by KS-Soft »

There is new version
http://www.ks-soft.net/hostmon.eng/downpage.htm

Regards
Alex
lollbackj
Posts: 8
Joined: Wed Jul 20, 2011 8:11 pm

Post by lollbackj »

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Oh, you need this option for RCC as well?
Ok, will be implemented later

Regards
Alex
Post Reply