<?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[ServiceCheck.Custom parameters?]]></title><description><![CDATA[<p dir="auto">Hi, I'm trying to monitor from a node if it can reach a TCP port on another machine.</p>
<p dir="auto">The ServiceCheck.Custom appears to be the most logical data collection item.</p>
<p dir="auto">However, I can't find a description of the parameters</p>
<p dir="auto">What would be the parameters to check if for example port 8080 gives a response on IP  10.1.2.3 (it's not HTTP)</p>
<p dir="auto">Thanks,<br />
Ted</p>
]]></description><link>https://forum.netxms.org/topic/928/servicecheck.custom-parameters</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:53:20 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/928.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jun 2010 12:50:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ServiceCheck.Custom parameters? on Mon, 14 Jun 2010 06:36:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, that works. Now I'm getting a 2 for status as expected.</p>
]]></description><link>https://forum.netxms.org/post/4260</link><guid isPermaLink="true">https://forum.netxms.org/post/4260</guid><dc:creator><![CDATA[tedv]]></dc:creator><pubDate>Mon, 14 Jun 2010 06:36:12 GMT</pubDate></item><item><title><![CDATA[Reply to ServiceCheck.Custom parameters? on Fri, 11 Jun 2010 08:51:12 GMT]]></title><description><![CDATA[<p dir="auto">Most likely the problem is that default timeout for receiving data from agent is smaller then default connection timeout. I suggest to set connection timeout in port check subagent to some small value, and increase agent response timeout on server.</p>
<p dir="auto">For example, to set agent response timeout to 5 seconds and connect timeout in port checker to 4 seconds, do the following:</p>
<p dir="auto">Set server configuration variable AgentCommandTimeout to 5000;<br />
Add the following to nxagentd.conf on node with port checker:</p>
<p dir="auto">*portCheck<br />
Timeout = 4000</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4258</link><guid isPermaLink="true">https://forum.netxms.org/post/4258</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 11 Jun 2010 08:51:12 GMT</pubDate></item><item><title><![CDATA[Reply to ServiceCheck.Custom parameters? on Wed, 09 Jun 2010 08:44:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/4253">ServiceCheck.Custom parameters?</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">ServiceCheck.Custom accepts two arguments - host name or IP address and port number. For example, to check port 8080 on address 10.1.2.3, use</p>
<p dir="auto">ServiceCheck.Custom(10.1.2.3,8080)</p>
<p dir="auto">All ServiceCheck.* parameters return the following values:</p>
<p dir="auto">0 - success (server was connected and return expected response);<br />
1 - invalid arguments was passed;<br />
2 - cannot connect to server;<br />
3 - bad server's response.</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">Thanks Victor - that works.<br />
However, when I (for testing purposed) make sure that the node can't reach the other host, the value of the DCI doesn't change, it just does not get updated anymore. So, I can't put a threshold on it?</p>
<p dir="auto">Example</p>
<p dir="auto">My data collection does ServiceCheck.Custom(10.1.2.3,8080) - that gives 0 as response every 30 seconds (the interval).</p>
<p dir="auto">When I trick the machine that it can't reach the other host (10.1.2.3), the value stays at 0 and the timestamp isn't updated.</p>
<p dir="auto">Any suggestions?</p>
<p dir="auto">Thanks,<br />
Ted</p>
]]></description><link>https://forum.netxms.org/post/4257</link><guid isPermaLink="true">https://forum.netxms.org/post/4257</guid><dc:creator><![CDATA[tedv]]></dc:creator><pubDate>Wed, 09 Jun 2010 08:44:34 GMT</pubDate></item><item><title><![CDATA[Reply to ServiceCheck.Custom parameters? on Tue, 08 Jun 2010 09:25:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">ServiceCheck.Custom accepts two arguments - host name or IP address and port number. For example, to check port 8080 on address 10.1.2.3, use</p>
<p dir="auto">ServiceCheck.Custom(10.1.2.3,8080)</p>
<p dir="auto">All ServiceCheck.* parameters return the following values:</p>
<p dir="auto">0 - success (server was connected and return expected response);<br />
1 - invalid arguments was passed;<br />
2 - cannot connect to server;<br />
3 - bad server's response.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4253</link><guid isPermaLink="true">https://forum.netxms.org/post/4253</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Jun 2010 09:25:02 GMT</pubDate></item></channel></rss>