<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DNS Service monitor]]></title><description><![CDATA[<p dir="auto">Hi , as title , is it possible to monitoring the dns server , Thanks .</p>
]]></description><link>https://forum.netxms.org/topic/2418/dns-service-monitor</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 17:05:20 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2418.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jun 2013 08:00:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DNS Service monitor on Thu, 13 Jun 2013 11:16:03 GMT]]></title><description><![CDATA[<p dir="auto">I wanted to add to this thread a Windows equivalent which I needed for myself. I've added two new DCI's to my agent's config file:</p>
<pre><code>ExternalParameter = DNS.Lookup(*):dig +noall +short @$1 $2 A
ExternalParameterShellExec = DNS.Check(*):dig +noall +short @$1 $2 A | find /c "$3"
</code></pre>
<p dir="auto">The first returns the IP looked up as I wanted to be able to check it for myself, the second is the equivalent of the example from Victor that returns just a code. The reason for the "ShellExec" is because "find" is a built-in function of the command-prompt, and "/c" returns the count.</p>
<p dir="auto">You'll also need a copy of "dig" for Windows which can be found <a href="http://members.shaw.ca/nicholas.fong/dig/" rel="nofollow ugc">here</a>.</p>
]]></description><link>https://forum.netxms.org/post/10534</link><guid isPermaLink="true">https://forum.netxms.org/post/10534</guid><dc:creator><![CDATA[Taomyn]]></dc:creator><pubDate>Thu, 13 Jun 2013 11:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to DNS Service monitor on Fri, 07 Jun 2013 03:43:20 GMT]]></title><description><![CDATA[<p dir="auto">yes , thank you very much , it work perfect .  ;D</p>
]]></description><link>https://forum.netxms.org/post/10483</link><guid isPermaLink="true">https://forum.netxms.org/post/10483</guid><dc:creator><![CDATA[kafachan]]></dc:creator><pubDate>Fri, 07 Jun 2013 03:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to DNS Service monitor on Thu, 06 Jun 2013 11:32:35 GMT]]></title><description><![CDATA[<p dir="auto">You should set a threshold on your DCI (with condition "last values equals 0"), and add rule in event processing policy to generate an alarm. Here is a tutorial for a similar task: <a href="http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low" rel="nofollow ugc">http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low</a> - it should help you understand the concept.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/10468</link><guid isPermaLink="true">https://forum.netxms.org/post/10468</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 06 Jun 2013 11:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to DNS Service monitor on Thu, 06 Jun 2013 09:54:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
  thank you for the reply . i did it and it can report value 1 , but i face another problem , how can i set it pop up alarm when the value is 0 ? Thank you very much .</p>
]]></description><link>https://forum.netxms.org/post/10467</link><guid isPermaLink="true">https://forum.netxms.org/post/10467</guid><dc:creator><![CDATA[kafachan]]></dc:creator><pubDate>Thu, 06 Jun 2013 09:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to DNS Service monitor on Wed, 05 Jun 2013 11:38:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">It's possible only with external tools. You can define external parameter on any agent like this:</p>
<p dir="auto">ExternalParameter = DNS.Check(*):/usr/bin/dig +noall +short @$1 $2 A | grep $3 | wc -l</p>
<p dir="auto">You'll get new agant parameter DNS.Check, which accepts 3 arguments: DNS server address, DNS name to test, expected IP address. It will return 1 for successful test and 0 for failed. For example, in my network I can call it like</p>
<p dir="auto">DNS.Check(172.30.30.1,<a href="http://www.netxms.org" rel="nofollow ugc">www.netxms.org</a>,5.9.19.37)</p>
<p dir="auto">to check that my local DNS server at 172.30.30.1 resolves DNS name <a href="http://www.netxms.org" rel="nofollow ugc">www.netxms.org</a> to correct IP address (5.9.19.37).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/10455</link><guid isPermaLink="true">https://forum.netxms.org/post/10455</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 05 Jun 2013 11:38:53 GMT</pubDate></item></channel></rss>