Hello
I installed Hostmonitor and tools for clients
but I didn't find an easy way to use hostnames ( DNS Names )
instead IP for reports headers and mails body variables
Hostmonitor is using mainly IP to work, and IT, Managers, etc knows servers with names and not IP.
I got some ideas with scripts but nothing easy and reliable.
What I need is:
- Get the DN of all servers and remove the DNS suffix
- add the short DNS server name to each test, lets say in a comment var or elsewhere
- Make this var appear in a column ( left to testname ) with custom field selection -> this is easy
- use this var for Reports ( replace IP with server DN Name, or add it )
- use this var added in mail body aside %testname%
I didn't find a simple way to do it,
We can't change the test name as we can't use replicator after this. ( Master test and other fields use IP to replicate tests )
Is an ideas about this ?
thanks !
despite this detail, HostMonitor is a very nice software !
keep it cool !
Johann
DNS / Hostnames
Sorry I don't understand the problem. Every test method supports both IP address and hostname. If you want to use hostname or domain name, I do not see any problem hereinstead IP for reports headers and mails body variables
Hostmonitor is using mainly IP to work,
Thank youdespite this detail, HostMonitor is a very nice software !
keep it cool !
Regards
Alex
well
Yes, for example I can Ping the IP or ping the server hostname,
As we use IP for the whole management system, I can"t setup HM only with names, so we did it with IPs.
We just need to have The server name used with each test for some limited purpose.
then we can add it as comment in HM folder list, Reports rows headers and also in bad condition email body aside with IP.
IP will still be %Hostname% var, but another Var with DNname used for some IT communications, alerts display, Email, ect
the probleme is not to use IP or Names, but to use IP as main var. with names as complement and comment.
sorry if i'm not clear enough, english not my first language.
thanks
Johann
Yes, for example I can Ping the IP or ping the server hostname,
As we use IP for the whole management system, I can"t setup HM only with names, so we did it with IPs.
We just need to have The server name used with each test for some limited purpose.
then we can add it as comment in HM folder list, Reports rows headers and also in bad condition email body aside with IP.
IP will still be %Hostname% var, but another Var with DNname used for some IT communications, alerts display, Email, ect
the probleme is not to use IP or Names, but to use IP as main var. with names as complement and comment.
sorry if i'm not clear enough, english not my first language.
thanks
Johann
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
In this case, you may specify the server name into "Comment" field and use "%CommentLine1%", "%CommentLine2%", etc variables in reports, mail templates etc.johanns wrote:We just need to have The server name used with each test for some limited purpose.
then we can add it as comment in HM folder list, Reports rows headers and also in bad condition email body aside with IP.
IP will still be %Hostname% var, but another Var with DNname used for some IT communications, alerts display, Email, ect
the probleme is not to use IP or Names, but to use IP as main var. with names as complement and comment.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... #currmacro
===============
%CommentLine1% Represents 1st line of test's comment
%CommentLine2% Represents 2nd line of test's comment
... ...
%CommentLine99% Represents 99th line of test's comment
===============
Regards,
Max
Hello Max
yes , I saw this %comment1% var, and also thought using it for Serversd names,
but as we have already hundreds tests running on more than 50 servers,
I was looking for an automatic method to fill each test %CommentLine2% with the related Server Name,
and I didn't found any working ...........
thanks for help
Johann
yes , I saw this %comment1% var, and also thought using it for Serversd names,
but as we have already hundreds tests running on more than 50 servers,
I was looking for an automatic method to fill each test %CommentLine2% with the related Server Name,
and I didn't found any working ...........
thanks for help
Johann
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Aha, now I understand. I think you may use "HMS Script" with "SetTestParam" or "ReplaceTestParam" commands for such purposes: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
So, you should create a simple text file with .hms extension, that contains follofing entries:
You may execute foregoing script using menu "File" -> "Execute Script"
Regards,
Max
So, you should create a simple text file with .hms extension, that contains follofing entries:
Code: Select all
SetCurrentFolder Root\
SetTestParam "TestName1" CommentLine02 HostName1
SetTestParam "TestName2" CommentLine02 HostName2
..
SetTestParam "TestNameNN" CommentLine02 HostNameNN
Regards,
Max