<?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[Scan for a certain service across all servers]]></title><description><![CDATA[<p dir="auto">GOAL: My goal is to be able to scan for a service like MSSQLServer and get a report back on all servers running that service.</p>
<p dir="auto">I created a DCI table (Services) and applied it to all server nodes. I would like to run a DCI summary table or a Dashboard to scan for a certain service running across all servers in my environment.</p>
<p dir="auto">I thought a DCI Table for services would collect all services running. Next would be a DCI Summary Table or Dashboard to run across the whole Infrastructure Services. Then I can take that info and make sure the proper templates are being applied.</p>
<p dir="auto">What would be the best way to accomplish this? Any ideas would be awesome.</p>
<p dir="auto">Thanks Guys!</p>
]]></description><link>https://forum.netxms.org/topic/3972/scan-for-a-certain-service-across-all-servers</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:13:23 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3972.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Sep 2015 09:07:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scan for a certain service across all servers on Fri, 16 Oct 2015 15:34:24 GMT]]></title><description><![CDATA[<p dir="auto">This worked great thanks Victor.  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Cheers!</p>
]]></description><link>https://forum.netxms.org/post/17987</link><guid isPermaLink="true">https://forum.netxms.org/post/17987</guid><dc:creator><![CDATA[sharpspro]]></dc:creator><pubDate>Fri, 16 Oct 2015 15:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to Scan for a certain service across all servers on Tue, 08 Sep 2015 07:06:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">so ultimately you only need some mark that MS SQL is running on node to be able to apply templates? Then it could be accomplished much easier using configuration poll hook:</p>
<ol>
<li>Create script in script library named Hook::ConfigurationPoll like this:</li>
</ol>
<pre><code>if ($node-&gt;isAgent)
{
   state = AgentReadParameter($node, "System.ServiceState(mssqlserver)");
   if (state == 0)
   {
      SetCustomAttribute($node, "sqlServer", "true");
   }
}
</code></pre>
<p dir="auto">it will set custom attribute <strong>sqlServer</strong> to <strong>true</strong> if service is running. Please note that service name might be different, I cannot remember correct name for SQL Server service.</p>
<ol start="2">
<li>To auto apply templates, use the following auto-apply filter script:</li>
</ol>
<pre><code>return GetCustomAttribute($node, "sqlServer") == "true";
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17739</link><guid isPermaLink="true">https://forum.netxms.org/post/17739</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Sep 2015 07:06:57 GMT</pubDate></item></channel></rss>