|
View previous topic :: View next topic |
Author |
Message |
Gavin
Joined: 24 Sep 2009 Posts: 58
|
Posted: Thu Jun 02, 2011 4:50 am Post subject: DNS Test getting resolved domains in reply and History Chart |
|
|
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! |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Jun 02, 2011 6:05 am Post subject: DNS Test getting resolved domains in reply and History Chart |
|
|
Quote: | 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/mframe.htm#actions.htm#currmacro
Quote: | 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/mframe.htm#tests.htm#tuneupreply |
|
Back to top |
|
|
Gavin
Joined: 24 Sep 2009 Posts: 58
|
Posted: Thu Jun 02, 2011 7:20 am Post subject: |
|
|
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! |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Jun 02, 2011 7:50 am Post subject: |
|
|
"Tune up Reply value" option may look like:
Code: | if ("maildistiller" in "%DnsResults%") Maildistiller |
Also, you may use "Use Warning status if" option, located on Test properties dialog with expression like:
Code: | not ("maildistiller" in "%DnsResults%") |
With this option, Test item will get "Warning" status if %DnsResults% will return record without word "maildistiller".
Quote: | 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) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|