<?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[Service.Check]]></title><description><![CDATA[<p dir="auto">We are working to monitor a number of services that per the manual have cURL support and hence should be using the Service.Check agent command.</p>
<p dir="auto">We are working to get POP3 working at the moment and have:</p>
<pre><code>Service.Check(pop3://username:password@mail.mydomain.com/,^.*OK Authenticated.*)
</code></pre>
<p dir="auto">If we put in actual values and run this using from the command line using the curl -v command we get valid results.  However, when we run it from a DCI it always comes up with 3.  How can we see the value being returned from the check.  Also, it states the Service.Check.XXXXX are to be considered deprecated in the documentation.  Wondering why since they seem to offer more complete testing of common protocols?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netxms.org/topic/7355/service.check</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:49:01 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7355.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Apr 2022 19:46:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Service.Check on Thu, 21 Apr 2022 19:55:07 GMT]]></title><description><![CDATA[<p dir="auto">Dumped it and found out the response is CRLF (0a 0d).  Sure enough monitored for that and works.</p>
]]></description><link>https://forum.netxms.org/post/31249</link><guid isPermaLink="true">https://forum.netxms.org/post/31249</guid><dc:creator><![CDATA[lweidig]]></dc:creator><pubDate>Thu, 21 Apr 2022 19:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to Service.Check on Thu, 21 Apr 2022 19:01:42 GMT]]></title><description><![CDATA[<p dir="auto">Threw the agent into debug 9 and see the following which does not help:</p>
<pre><code>2022.04.21 14:13:54.851 *D* [comm.cs.17         ] Requesting metric "Service.Check(pop3://username:password@mail.mydomain.com/,^.*OK Authenticated.*)"
2022.04.21 14:13:54.851 *D* [netsvc             ] H_CheckService(pop3://username:password@mail.mydomain.com/): pattern=^.*OK Authenticated.*
2022.04.21 14:13:54.977 *D* [netsvc             ] H_CheckService(pop3://username:password@mail.mydomain.com/): got reply: 2 bytes
2022.04.21 14:13:54.977 *D* [netsvc             ] H_CheckService(pop3://username:password@mail.mydomain.com/): not matched
2022.04.21 14:13:54.977 *D* [comm.cs.17         ] GetParameterValue("Service.Check(pop3://username:password@mail.mydomain.com/,^.*OK Authenticated.*)"): 0 (SUCCESS) value = "3"
</code></pre>
<p dir="auto">If only I knew what the 2 bytes were...</p>
]]></description><link>https://forum.netxms.org/post/31248</link><guid isPermaLink="true">https://forum.netxms.org/post/31248</guid><dc:creator><![CDATA[lweidig]]></dc:creator><pubDate>Thu, 21 Apr 2022 19:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to Service.Check on Thu, 21 Apr 2022 11:50:18 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately that does not seem to be the issue.  This is the NetXMS agent on Windows server:</p>
<pre><code>2022.04.21 07:47:13.062 *D* [init.curl          ] cURL initialized (version: libcurl/7.56.1 WinSSL zlib/1.2.11 WinIDN)
2022.04.21 07:47:13.062 *D* [init.curl          ] cURL supported protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
2022.04.21 07:47:13.062 *D* [netsvc             ] Using cURL version: libcurl/7.56.1 WinSSL zlib/1.2.11 WinIDN
2022.04.21 07:47:13.062 *D* [netsvc             ] Supported protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
2022.04.21 07:47:13.062 *I* [subagents          ] Subagent "NETSVC" (netsvc.nsm) loaded successfully (version 4.0.2157)
</code></pre>
]]></description><link>https://forum.netxms.org/post/31246</link><guid isPermaLink="true">https://forum.netxms.org/post/31246</guid><dc:creator><![CDATA[lweidig]]></dc:creator><pubDate>Thu, 21 Apr 2022 11:50:18 GMT</pubDate></item><item><title><![CDATA[Reply to Service.Check on Thu, 21 Apr 2022 08:53:58 GMT]]></title><description><![CDATA[<p dir="auto">On start agent reports list of protocols supported by libcurl (on debug level 3, I think):</p>
<pre><code>2022.04.21 11:52:37.320 *D* [init.curl          ] cURL supported protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
</code></pre>
<p dir="auto">Check that you have pop3 available in this list.</p>
]]></description><link>https://forum.netxms.org/post/31245</link><guid isPermaLink="true">https://forum.netxms.org/post/31245</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 21 Apr 2022 08:53:58 GMT</pubDate></item></channel></rss>