DNS Test getting resolved domains in reply and History Chart

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
Gavin
Posts: 58
Joined: Thu Sep 24, 2009 8:44 am

DNS Test getting resolved domains in reply and History Chart

Post by Gavin »

Hi,

I am using the "DNS Test" test method. What I am looking to do is get the MX records for a certain domain. This works fine in the test properties when I click "Test" and it brings back a result which contains the mx records, but this does not actually populate any column I can see. It lists the reply as 22 ms - I actually want the reply to be the resolved mx record. Any ideas?

A seperate question; is there any way to make the history chart bigger? At the moment the four graphs returned are quite small.

Thanks!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

DNS Test getting resolved domains in reply and History Chart

Post by KS-Soft Europe »

I am using the "DNS Test" test method. What I am looking to do is get the MX records for a certain domain. This works fine in the test properties when I click "Test" and it brings back a result which contains the mx records, but this does not actually populate any column I can see. It lists the reply as 22 ms - I actually want the reply to be the resolved mx record. Any ideas?
You may use "Tune up Reply value" option, located on Test properties dialog, with macro-variables like %DnsResults% or %DnsResult%

Quote from manual:
http://www.ks-soft.net/hostmon.eng/mfra ... #currmacro
the following variables provide information about the results of DNS tests
%DnsResults% Provides information about all entities received from DNS server (items separated by CRLF characters)
%DnsResult% Provides information about 1st entity only
Please check the manual or visit our web site for more information at:
Tune up Reply value option: http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
Gavin
Posts: 58
Joined: Thu Sep 24, 2009 8:44 am

Post by Gavin »

Excellent, thank you. Could you show me an example expression to change the reply if the test reports a certain item.

For example, I have the test setup at the moment and the reply is pure4.maildistiller.compure1.maildistiller.compure2.maildistiller.compure3.maildistiller.com. Basically I want to search for the existence of the word maildistiller in the returned string and make the reply simply Maildistiller.

As above is there any way to make the history charts bigger?

Thanks again!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

"Tune up Reply value" option may look like:

Code: Select all

if ("maildistiller" in "%DnsResults%") Maildistiller
Also, you may use "Use Warning status if" option, located on Test properties dialog with expression like:

Code: Select all

not ("maildistiller" in "%DnsResults%")
With this option, Test item will get "Warning" status if %DnsResults% will return record without word "maildistiller".
As above is there any way to make the history charts bigger?
You may use Log Analyzer to get full screen charts (menu View->Log Analyzer)
Post Reply