<?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[Agent lost contact]]></title><description><![CDATA[<p dir="auto">I have installed an agent on windows with the option "ServerConnection = &lt;some ip&gt;". At start it make connection the the server and actived a tunnel. Bus after some minutes the download certificates are saved. As soon the certificates are saved, the connection doesn't work anymore.</p>
<p dir="auto">2018.01.05 14:17:20.812 *I* Successfully registered on management server &lt;server ip&gt;<br />
2018.01.05 14:17:20.813 *D* [tunnel             ] Tunnel manager started<br />
2018.01.05 14:17:20.822 *D* [tunnel             ] &lt;server ip&gt;: Cannot open file "&lt;some path&gt;\nxagentd\certificates\CAD4EAF5F8DCF4FCEA57D70611528A9EEBE98007.crt" (No such file or directory)<br />
2018.01.05 14:17:20.822 *D* [tunnel             ] &lt;server ip&gt;: Cannot open file "&lt;some path&gt;\nxagentd\certificates\060285B36125000000000000000000000000.crt" (No such file or directory)<br />
2018.01.05 14:17:20.836 *D* [tunnel             ] &lt;server ip&gt;: Server certificate subject is &lt;some data&gt;<br />
2018.01.05 14:17:20.836 *D* [tunnel             ] &lt;server ip&gt;: Server certificate issuer is &lt;some data&gt;<br />
2018.01.05 14:17:20.837 *D* [VCS-1] Requesting parameter "System.PlatformName"<br />
2018.01.05 14:17:20.837 *D* [VCS-1] GetParameterValue(): result is 0 (SUCCESS)<br />
2018.01.05 14:17:20.837 *D* [VCS-1] Requesting parameter "System.UName"<br />
2018.01.05 14:17:20.837 *D* [VCS-1] GetParameterValue(): result is 0 (SUCCESS)<br />
2018.01.05 14:17:20.838 *D* [tunnel             ] &lt;server ip&gt;: Sending message CMD_SETUP_AGENT_TUNNEL<br />
2018.01.05 14:17:20.842 *D* [tunnel             ] &lt;server ip&gt;: Received message CMD_REQUEST_COMPLETED<br />
2018.01.05 14:17:20.842 *D* [tunnel             ] &lt;server ip&gt;: Tunnel is active<br />
2018.01.05 14:17:21.813 *D* [db.query           ] {0000017DCADD11E0} Successful prepare: "SELECT value FROM registry WHERE attribute=?" [0 ms]<br />
2018.01.05 14:17:21.813 *D* [db.query           ] {0000017DCADD11E0} bind at pos 1: "upgrade.file"<br />
2018.01.05 14:17:21.814 *D* [db.query           ] Successful prepared sync query: "SELECT value FROM registry WHERE attribute=?" [0 ms]<br />
2018.01.05 14:17:21.815 *D* [db.query           ] Successful sync query: "SELECT guid,type FROM agent_policy" [0 ms]<br />
2018.01.05 14:17:21.816 *I* NetXMS Agent started<br />
2018.01.05 14:17:50.843 *D* [tunnel             ] &lt;server ip&gt;: Sending message CMD_KEEPALIVE<br />
2018.01.05 14:17:50.847 *D* [tunnel             ] &lt;server ip&gt;: Received message CMD_KEEPALIVE<br />
2018.01.05 14:17:58.419 *D* [tunnel             ] &lt;server ip&gt;: Received message CMD_BIND_AGENT_TUNNEL<br />
2018.01.05 14:17:58.511 *D* [tunnel             ] &lt;server ip&gt;: Sending message CMD_REQUEST_CERTIFICATE<br />
2018.01.05 14:17:58.518 *D* [tunnel             ] &lt;server ip&gt;: Received message CMD_NEW_CERTIFICATE<br />
2018.01.05 14:17:58.529 *D* [tunnel             ] &lt;server ip&gt;: Certificate and private key saved<br />
2018.01.05 14:17:58.529 *D* [tunnel             ] &lt;server ip&gt;: Sending message CMD_REQUEST_COMPLETED<br />
2018.01.05 14:17:58.533 *D* [tunnel             ] &lt;server ip&gt;: Received message CMD_RESET_TUNNEL<br />
2018.01.05 14:17:58.534 *D* [tunnel             ] &lt;server ip&gt;: Receiver thread stopped (tunnel reset)<br />
2018.01.05 14:18:20.573 *D* DataCollector: sleeping for 60 seconds<br />
2018.01.05 14:18:20.848 *D* [tunnel             ] &lt;server ip&gt;: Resetting tunnel<br />
2018.01.05 14:18:20.863 *D* [tunnel             ] &lt;server ip&gt;: Certificate and private key loaded<br />
2018.01.05 14:18:20.881 *D* [tunnel             ] &lt;server ip&gt;: TLS handshake failed (error:00000001:lib(0):func(0):reason(1))<br />
2018.01.05 14:18:50.892 *D* [tunnel             ] &lt;server ip&gt;: Certificate and private key loaded<br />
2018.01.05 14:18:50.909 *D* [tunnel             ] &lt;server ip&gt;: TLS handshake failed (error:00000001:lib(0):func(0):reason(1))<br />
2018.01.05 14:19:20.573 *D* DataCollector: sleeping for 60 seconds</p>
]]></description><link>https://forum.netxms.org/topic/5384/agent-lost-contact</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:58:39 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5384.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Jan 2018 15:59:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Agent lost contact on Wed, 24 Jan 2018 22:51:00 GMT]]></title><description><![CDATA[<p dir="auto">I was able to resolve my issue (which, according to the logs, is the same as yours) and perhaps this will help. I'm going to start at the beginning even though you already have of the steps completed (since you get the tunnel to come up initially)</p>
<p dir="auto">I'm on Windows 2008R2<br />
I port forwarded TCP 4703 to my NetXMS server on my firewall<br />
NetXMS server program is already added to Windows firewall (but check on this)<br />
I have a Linux Mint Virtualbox that i used for the openssl commands. Windows openssl I imagine would work, but I had the Linux box and it was faster than formatting the provided openssl.conf files to a Windows install.<br />
Follow creating the root pair as shown here:<br />
<a href="https://jamielinux.com/docs/openssl-certificate-authority/create-the-root-pair.html" rel="nofollow ugc">https://jamielinux.com/docs/openssl-certificate-authority/create-the-root-pair.html</a><br />
Make sure you copy the config file from the Appendix as it is says in the directions<br />
Follow creating the intermediate pair as shown here:<br />
<a href="https://jamielinux.com/docs/openssl-certificate-authority/create-the-intermediate-pair.html" rel="nofollow ugc">https://jamielinux.com/docs/openssl-certificate-authority/create-the-intermediate-pair.html</a><br />
Make sure you copy the config file from the Appendix as it is says in the directions<br />
When it says chmod 400, I did 444, so I could edit the files (later step)<br />
You do not need to create the certificate chain file, as it will not be used (I tried, it doesn't work)<br />
Edit the intermediate.cert.pem file and add the text from the intermediate.key.pem at the bottom so you have<br />
-----BEGIN CERTIFICATE-----<br />
stuff<br />
-----END CERTIFICATE-----<br />
-----BEGIN RSA PRIVATE KEY-----<br />
stuff<br />
-----END RSA PRIVATE KEY-----<br />
I <em>think</em> you need a blank line at the end of the pem files. So make sure can put the cursor down under the -----END RSA PRIVATE KEY----- indicating there is a blank line there<br />
Copy ca.cert.pem and intermediate.cert.pem to your NetXMS server. I put them in D:\NetXMS\etc\cert<br />
Add the following to netxmsd.conf<br />
ServerCACertificate = D:\NetXMS\etc\cert\ca.cert.pem<br />
ServerCertificate = D:\NetXMS\etc\cert\intermediate.cert.pem<br />
ServerCertificatePassword = secretpassword<br />
Restart the NetXMS Core service</p>
<p dir="auto">On the node/agent add the following to the nxagentd.conf where the x's are your public IP (or whatever the nodes will be tunneling to)<br />
MasterServers = <a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a><br />
ServerConnection = <a href="http://xxx.xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx.xxx</a><br />
Restart the NetXMS Agent service</p>
<p dir="auto">In NetXMS Management Console go to Configuration/Agent Tunnel Manager. You should see the Unbound tunnel. Right click and create node and bind. I left the Primary host name blank. Although I have seen posts where you set it to 0.0.0.0 or the IP of the agent (not sure if that is the public or the local IP). When I set it to 0.0.0.0 it changes the name to not what I want. I left it blank, it has been working and I get the name I set.</p>
<p dir="auto">Most of what I have here isn't new. I just consolidated it into one place.<br />
This post was a big help <a href="https://www.netxms.org/forum/configuration/agent-to-server-connections/msg22308/#msg22308" rel="nofollow ugc">https://www.netxms.org/forum/configuration/agent-to-server-connections/msg22308/#msg22308</a></p>
]]></description><link>https://forum.netxms.org/post/23736</link><guid isPermaLink="true">https://forum.netxms.org/post/23736</guid><dc:creator><![CDATA[gdodd]]></dc:creator><pubDate>Wed, 24 Jan 2018 22:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to Agent lost contact on Wed, 24 Jan 2018 17:18:03 GMT]]></title><description><![CDATA[<p dir="auto">I am having the same error message of TLS handshake failed (error:00000001:lib(0):func(0):reason(1)).<br />
This is my first tunnel created.<br />
NetXMS 2.2.1<br />
I am on Windows 2008R2. I downloaded openssl for Windows. The below openssl.cnf is default as installed.</p>
<p dir="auto">On the NetXMS server, I did the following:<br />
openssl genrsa -out rootCA.key 2048<br />
openssl req -config "C:\Program Files (x86)\GnuWin32\share\openssl.cnf" -x509 -new -key rootCA.key -days 2038 -out rootCA.crt<br />
openssl genrsa -out server.key 2048<br />
openssl req -config "C:\Program Files (x86)\GnuWin32\share\openssl.cnf" -new -key server.key -out server.csr<br />
openssl x509 -req -in server.csr -CA rootca.crt -CAkey rootca.key -CAcreateserial -out server.crt -days 2038</p>
<p dir="auto">I placed rootCA.crt, server.crt, and server.key into D:\NetXMS\etc\cert</p>
<p dir="auto">I added the following to netxmsd.conf and restarted the NetXMS core service</p>
<p dir="auto">ServerCACertificate = D:\NetXMS\etc\cert\rootCA.crt<br />
ServerCertificate = D:\NetXMS\etc\cert\server.crt<br />
ServerCertificateKey = D:\NetXMS\etc\cert\server.key</p>
<p dir="auto">On the agent I have the following in the nxagentd config file</p>
<p dir="auto">MasterServers = 172.16.0.47<br />
ServerConnection = <a href="http://24.xx.xxx.xxx" rel="nofollow ugc">24.xx.xxx.xxx</a></p>
<p dir="auto">The agent connects to the server and I see the tunnel in the tunnel manager. After I bind the tunnel to a node, I get the TLS handshake failed error. My log messages appear in the agent log just as posted by danny.richardson.</p>
]]></description><link>https://forum.netxms.org/post/23734</link><guid isPermaLink="true">https://forum.netxms.org/post/23734</guid><dc:creator><![CDATA[gdodd]]></dc:creator><pubDate>Wed, 24 Jan 2018 17:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Agent lost contact on Sun, 07 Jan 2018 21:25:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">do you have other tunnels working? It could be certificate validation issue - you can check tunnel log on server side for more information.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/23632</link><guid isPermaLink="true">https://forum.netxms.org/post/23632</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 07 Jan 2018 21:25:56 GMT</pubDate></item></channel></rss>