Windows installer adds PING and SSH subagents to agent configuration on server
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 5 Sep 2016 15:03:57 +0000 (18:03 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 5 Sep 2016 15:03:57 +0000 (18:03 +0300)
src/agent/subagents/ssh/session.cpp
src/server/tools/nxconfig/nxconfig.cpp

index 44a517a..449dfdf 100644 (file)
@@ -191,7 +191,7 @@ StringList *SSHSession::execute(const TCHAR *command)
                curr = eol + 1;
                eol = strchr(curr, '\n');
             }
-            offset = strlen(curr);
+            offset = (int)strlen(curr);
             if (offset > 0)
                memmove(buffer, curr, offset);
             nbytes = ssh_channel_read(channel, &buffer[offset], sizeof(buffer) - offset - 1, 0);
index c9e959d..e463ae7 100644 (file)
@@ -248,7 +248,7 @@ void CNxconfigApp::CreateAgentConfig()
       }
       _ftprintf(fp, _T("FileStore = %s\\var\n"), m_szInstallDir);
       _ftprintf(fp, _T("RequireAuthentication = no\n"));
-      _ftprintf(fp, _T("SubAgent = winperf.nsm\nSubAgent = portcheck.nsm\n"));
+      _ftprintf(fp, _T("SubAgent = winperf.nsm\nSubAgent = portcheck.nsm\nSubAgent = ping.nsm\nSubAgent = ssh.nsm\n"));
       fclose(fp);
    }
 }