Good day,
I'm using agent-to-server connection scheme: https://wiki.netxms.org/wiki/How_to_configure_agent_to_server_connection
How to change time interval beetwen agent's attepmts to establish tunnel communication with server?
fINT
Posts
-
How can I change time interval beetwen "trying to connect..." agents to server -
Agent to multiple IP (servers) connectionsThanks :).
-
Agent to multiple IP (servers) connectionsGood day.
I use Agent-to-Server connection in my configuration.
Like here: https://wiki.netxms.org/wiki/How_to_configure_agent_to_server_connection.
Office, where NetXMS server is located, have 2 internet channels from different ISP (and also 2 external IP addresses: IP1 and IP2).
Is it possible to use both channels (as failover) in ServerConnection parameter in nxagentd.conf?
When first (main) channel is down - agents connect to IP2, when it is up -agents connects to IP1. -
How to run application on the computer via NetXMS agent?Thanks. I read here: https://www.netxms.org/forum/configuration/action-execute-command-via-remote-agent/ that Agent by default is running as windows service and can't interact with the GUI. How should I install agent to interact with the Node GUI? I need to run applications on Node, visible to users.
-
Запустить приложение на компьютере с агентом.Английская версия вопроса здесь: https://www.netxms.org/forum/configuration/how-to-run-application-on-the-computer-via-netxms-agent/
-
How to run application on the computer via NetXMS agent?Good day,
Via the server management console, you can reboot (shut down, etc., the node with the installed agent): TOOLS -> Restart System. How to run an OS application installed on a computer with a working NetXMS agent? For example (in the case of Windows) a batch file? -
Запустить приложение на компьютере с агентом.Добрый день,
Через консоль управления сервером можно перегрузить (выключить и т.п. узел с установленным агентом): меню TOOLS -> Restart System. Как запустить произвольное приложение установленное на компьютере с работающим агентом NetXMS? Например (в случае с Windows), пакетный BAT-файл или иное ранее установленное приложение? -
NetXMS list of default portsOk, but how "server understand" what port to scan, during Active Network Discovery process?
-
Server and agents are separated by NATHi,
looks like in your setup you need agents connecting to server.
Yes, thats correct.
In NetXMS default configuration is when server connects to agents. Reverse configuration called "agent tunnel".
Thanks, for clarifications.
So, as I understand, I need (in my case):- Install one agent in office 2 as "Proxy Agent" (https://www.netxms.org/documentation/adminguide/agent-management.html#agent-proxy-node-configuration)
- Сonfigure server for accepting connections (from Proxy Agent): https://www.netxms.org/documentation/adminguide/server-management.html#server-configuration-for-agent-to-server-connection-tunnel-connection.
- Configure other agents in office 2 to work through Proxy Agent.
Correct?
Thanks
-
NetXMS list of default portsGood day.
Is it possible to change tcp/4700: server -> agent port?
If possible, how?
Didn't find any parameters in Configuration - Server configuration in Web Console. NetXMS version 2.2.12 -
Server and agents are separated by NATGood afternoon, members of the forum.
Perhaps the question will seem simple, but by virtue of the “patchiness” of knowledge on NetXMS, it has turned into a difficult task.
There are 2 local networks in different offices (office 1 and office 2). Both are behind NAT. Both have access to the Internet. Network addresses: 192.168.0.x (office 1) and 192.168.1.x (office 2).
NetXMS Server is installed on the 192.168.0.x network, 10 NetXMS agents are installed on the 192.168.1.x network. Office 1 (where the server is installed) has a static IP address. In office 2
(where agents are installed) - no static address. On the router in office 1, port 4700 (DNAT) was forwarded to the internal address of the NetXMS server.
How to configure NetXMS agents in office 2 so that they can transfer data to the NetXMS server in office 1?
Do you need any changes to the default server settings?
Can someone find a walkthrough?
Thank you in advance.Here is the agent configuration (in office 2):
MasterServers = x.x.x.x (External IP address of office 1)
ConfigIncludeDir =
\ NetXMS \ etc \ nxagentd.conf.d
LogFile = {syslog}
FileStore =
\ NetXMS \ var
SubAgent = filemgr.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
SubAgent = ups.nsmHere is the server configuration (in office 1):
Name Value Default value Restart
XMPPServer localhost localhost Yes
XMPPPort 5222 5222 Yes
XMPPPassword netxms netxms Yes
XMPPLogin netxms @ localhost netxms @ localhost Yes
UseSyslogForDiscovery 1 0 Yes
UseSNMPTrapsForDiscovery 1 0 Yes
UseInterfaceAliases Don't use aliases Don't use aliases No
UseIfXTable 1 1 No
UseFQDNForNodeNames 1 1 Yes
UseDNSNameForDiscoveredNodes 0 0 No
TrapSourcesInAllZones 0 0 Yes
TopologyPollingInterval 1800 1800 Yes
TopologyExpirationTime 900 900 No
TopologyDiscoveryRadius 3 3 No
TileServerURL http://tile.openstreetmap.org/ http://tile.openstreetmap.org/ No
ThresholdRepeatInterval 0 0 Yes
ThreadPool.Syncer.MaxSize 1 1 Yes
ThreadPool.Syncer.BaseSize 1 1 Yes
ThreadPool.Scheduler.MaxSize 64 64 Yes
ThreadPool.Scheduler.BaseSize 1 1 Yes
ThreadPool.Poller.MaxSize 250 250 Yes
ThreadPool.Poller.BaseSize 10 10 Yes
ThreadPool.Main.MaxSize 256 256 Yes
ThreadPool.Main.BaseSize 8 8 Yes
ThreadPool.DataCollector.MaxSize 250 250 Yes
ThreadPool.DataCollector.BaseSize 10 10 Yes
ThreadPool.Agent.MaxSize 256 256 Yes
ThreadPool.Agent.BaseSize 4 4 Yes
SyslogRetentionTime 90 90 No
SyslogNodeMatchingPolicy IP, then hostname IP, then hostname Yes
SyslogListenPort 514 514 Yes
SyslogIgnoreMessageTimestamp 0 0 No
SyncNodeNamesWithDNS 0 0 No
SyncInterval 60 60 Yes
StrictAlarmStatusFlow 0 0 No
StatusTranslation 1020304 1020304 Yes
StatusThresholds 503C2814 503C2814 Yes
StatusSingleThreshold 75 75 Yes
StatusShift 0 0 Yes
StatusPropagationAlgorithm Unchanged Unchanged Yes
StatusPollingInterval 60 60 Yes
StatusCalculationAlgorithm 1 1 Yes
SNMPTrapPort 162 162 Yes
SNMPTrapLogRetentionTime 90 90 No
SNMPRequestTimeout 1500 1500 Yes
SNMPPorts 161 161 No
SMTPServer localhost localhost No
SMTPRetryCount 10 1 No
SMTPPort 2525 25 No
SMTPFromName NetXMS Server NetXMS Server No
SMTPFromAddr netxms @ localhost netxms @ localhost No
SMSDrvConfig COM1: Yes
SMSDriver <none> <none> Yes
ServerName No
ServerCommandOutputTimeout 60 60 No
ServerColor No
RunNetworkDiscovery 0 0 Yes
RoutingTableUpdateInterval 300 300 Yes
ResolveNodeNames 1 1 No
ResolveDNSToIPOnStatusPoll 0 0 Yes
ReportingServerPort 4710 4710 Yes
ReportingServerHostname localhost localhost Yes
ReceiveForwardedEvents 0 0 No
RADIUSTimeout 3 3 No
RADIUSServer none none
RADIUSSecret netxms netxms No
RADIUSSecondaryServer none none
RADIUSSecondarySecret netxms netxms No
RADIUSSecondaryPort 1645 1645 No
RADIUSPort 1645 1645 No
RADIUSNumRetries 5 5 No
RADIUSAuthMethod PAP PAP No
PollCountForStatusChange 1 1 Yes
PasswordHistoryLength 0 0 No
PasswordExpiration 0 0 No
PasswordComplexity 0 0 No
OfflineDataRelevanceTime 86400 86400 Yes
NXSL.EnableFileIOFunctions 0 0 Yes
NXSL.EnableContainerFunctions 1 1 Yes
NumberOfUpgradeThreads 10 10 No
MobileDeviceListenerPort 4747 4747 Yes
MinViewRefreshInterval 1000 1000 No
MinPasswordLength 0 0 No
MessageOfTheDay No
MailEncoding utf8 utf8 No
LongRunningQueryThreshold 0 0 Yes
LogAllSNMPTraps 0 0 Yes
LockTimeout 60000 60000 Yes
LdapUserUniqueId No
LdapUserMappingName No
LdapUserDeleteAction Disable user Disable user No
LdapUserClass No
LdapSyncUserPassword No
LdapSyncUser No
LdapSyncInterval 0 0 No
LdapSearchFilter No
LdapSearchBase No
LdapPageSize 1000 1000 No
LdapMappingFullName displayName displayName No
LdapMappingDescription No
LdapGroupUniqueId No
LdapGroupMappingName No
LdapGroupClass No
LdapConnectionString ldap: // localhost: 389 ldap: // localhost: 389 No
KeepAliveInterval 60 60 Yes
JobRetryCount 5 5 No
JobHistoryRetentionTime 90 90 No
JiraServerURL http: // localhost http: // localhost Yes
JiraProjectComponent No
JiraProjectCode NETXMS NETXMS No
JiraPassword Yes
JiraLogin netxms netxms Yes
JiraIssueType Task Task No
IntruderLockoutTime 30 30 No
IntruderLockoutThreshold 0 0 No
InternalCA 0 0 Y -
Сервер и агенты разделены NAT'омДобрый день, форумчане.
Возможно вопрос покажется, простым, но в силу "лоскутности" знаний по NetXMS, он превратился в трудную задачу.
Еcть 2 локальные сети в различных офисах (офис 1 и офис 2). Обе находятся за NAT. У обоих есть выход в интернет. Адреса сетей: 192.168.0.х (офис 1) и 192.168.1.х (офис 2).
В сети 192.168.0.х установлен NetXMS Server, в сети 192.168.1.х установлено 10 NetXMS агентов. В офисе 1 (где установлен сервер) есть статический IP адрес. В офисе 2
(где установлены агенты) - нет статического адреса. На роутере в офисе 1, сделан проброс порта 4700 (DNAT) на внутренний адрес NetXMS сервера.
Как сконфигурировать агентов NetXMS в офисе 2, чтобы они могли передавать данные на сервер NetXMS в офис 1?
Нужны ли какие-то изменении в настройках сервера по-умолчанию?
Может кто-то находил пошаговое руководство?
Заранее спасибо.Вот конфигурация агента (в офисе 2):
MasterServers = x.x.x.x (Внешний IP адрес офиса 1)
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = filemgr.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
SubAgent = ups.nsmВот конфигурация сервера (в офисе 1):
Name Value Default value Restart
XMPPServer localhost localhost Yes
XMPPPort 5222 5222 Yes
XMPPPassword netxms netxms Yes
XMPPLogin netxms@localhost netxms@localhost Yes
UseSyslogForDiscovery 1 0 Yes
UseSNMPTrapsForDiscovery 1 0 Yes
UseInterfaceAliases Don't use aliases Don't use aliases No
UseIfXTable 1 1 No
UseFQDNForNodeNames 1 1 Yes
UseDNSNameForDiscoveredNodes 0 0 No
TrapSourcesInAllZones 0 0 Yes
TopologyPollingInterval 1800 1800 Yes
TopologyExpirationTime 900 900 No
TopologyDiscoveryRadius 3 3 No
TileServerURL http://tile.openstreetmap.org/ http://tile.openstreetmap.org/ No
ThresholdRepeatInterval 0 0 Yes
ThreadPool.Syncer.MaxSize 1 1 Yes
ThreadPool.Syncer.BaseSize 1 1 Yes
ThreadPool.Scheduler.MaxSize 64 64 Yes
ThreadPool.Scheduler.BaseSize 1 1 Yes
ThreadPool.Poller.MaxSize 250 250 Yes
ThreadPool.Poller.BaseSize 10 10 Yes
ThreadPool.Main.MaxSize 256 256 Yes
ThreadPool.Main.BaseSize 8 8 Yes
ThreadPool.DataCollector.MaxSize 250 250 Yes
ThreadPool.DataCollector.BaseSize 10 10 Yes
ThreadPool.Agent.MaxSize 256 256 Yes
ThreadPool.Agent.BaseSize 4 4 Yes
SyslogRetentionTime 90 90 No
SyslogNodeMatchingPolicy IP,, then hostname IP,, then hostname Yes
SyslogListenPort 514 514 Yes
SyslogIgnoreMessageTimestamp 0 0 No
SyncNodeNamesWithDNS 0 0 No
SyncInterval 60 60 Yes
StrictAlarmStatusFlow 0 0 No
StatusTranslation 1020304 1020304 Yes
StatusThresholds 503C2814 503C2814 Yes
StatusSingleThreshold 75 75 Yes
StatusShift 0 0 Yes
StatusPropagationAlgorithm Unchanged Unchanged Yes
StatusPollingInterval 60 60 Yes
StatusCalculationAlgorithm 1 1 Yes
SNMPTrapPort 162 162 Yes
SNMPTrapLogRetentionTime 90 90 No
SNMPRequestTimeout 1500 1500 Yes
SNMPPorts 161 161 No
SMTPServer localhost localhost No
SMTPRetryCount 10 1 No
SMTPPort 2525 25 No
SMTPFromName NetXMS Server NetXMS Server No
SMTPFromAddr netxms@localhost netxms@localhost No
SMSDrvConfig COM1: Yes
SMSDriver <none> <none> Yes
ServerName No
ServerCommandOutputTimeout 60 60 No
ServerColor No
RunNetworkDiscovery 0 0 Yes
RoutingTableUpdateInterval 300 300 Yes
ResolveNodeNames 1 1 No
ResolveDNSToIPOnStatusPoll 0 0 Yes
ReportingServerPort 4710 4710 Yes
ReportingServerHostname localhost localhost Yes
ReceiveForwardedEvents 0 0 No
RADIUSTimeout 3 3 No
RADIUSServer none none No
RADIUSSecret netxms netxms No
RADIUSSecondaryServer none none No
RADIUSSecondarySecret netxms netxms No
RADIUSSecondaryPort 1645 1645 No
RADIUSPort 1645 1645 No
RADIUSNumRetries 5 5 No
RADIUSAuthMethod PAP PAP No
PollCountForStatusChange 1 1 Yes
PasswordHistoryLength 0 0 No
PasswordExpiration 0 0 No
PasswordComplexity 0 0 No
OfflineDataRelevanceTime 86400 86400 Yes
NXSL.EnableFileIOFunctions 0 0 Yes
NXSL.EnableContainerFunctions 1 1 Yes
NumberOfUpgradeThreads 10 10 No
MobileDeviceListenerPort 4747 4747 Yes
MinViewRefreshInterval 1000 1000 No
MinPasswordLength 0 0 No
MessageOfTheDay No
MailEncoding utf8 utf8 No
LongRunningQueryThreshold 0 0 Yes
LogAllSNMPTraps 0 0 Yes
LockTimeout 60000 60000 Yes
LdapUserUniqueId No
LdapUserMappingName No
LdapUserDeleteAction Disable user Disable user No
LdapUserClass No
LdapSyncUserPassword No
LdapSyncUser No
LdapSyncInterval 0 0 No
LdapSearchFilter No
LdapSearchBase No
LdapPageSize 1000 1000 No
LdapMappingFullName displayName displayName No
LdapMappingDescription No
LdapGroupUniqueId No
LdapGroupMappingName No
LdapGroupClass No
LdapConnectionString ldap://localhost:389 ldap://localhost:389 No
KeepAliveInterval 60 60 Yes
JobRetryCount 5 5 No
JobHistoryRetentionTime 90 90 No
JiraServerURL http://localhost http://localhost Yes
JiraProjectComponent No
JiraProjectCode NETXMS NETXMS No
JiraPassword Yes
JiraLogin netxms netxms Yes
JiraIssueType Task Task No
IntruderLockoutTime 30 30 No
IntruderLockoutThreshold 0 0 No
InternalCA 0 0 Yes
InstanceRetentionTime 0 0 Yes
InstancePollingInterval 600 600 Yes
ImportConfigurationOnStartup 1 1 Yes
IcmpPingTimeout 1500 1500 Yes
IcmpPingSize 46 46 Yes
Housekeeper.Throttle.LowWatermark 50000 50000 No
Housekeeper.Throttle.HighWatermark 250000 250000 No
Housekeeper.StartTime 2:00 2:00 Yes
HelpDeskLink none none Yes
GraceLoginCount 5 5 No
FixedStatusValue 0 0 Yes
ExternalAuditTag netxmsd-audit netxmsd-audit Yes
ExternalAuditSeverity 5 5 Yes
ExternalAuditServer none none Yes
ExternalAuditPort 514 514 Yes
ExternalAuditFacility 13 13 Yes
ExtendedLogQueryAccessControl 0 0 No
EventStormEventsPerSecond 100 100 Yes
EventStormDuration 15 15 Yes
Events.Correlation.TopologyBased 1 1 No
EventLogRetentionTime 90 90 No
EscapeLocalCommands 0 0 No
EnableZoning 1 0 Yes
EnableXMPPConnector 0 0 Yes
EnableTimedAlarmAck 1 1 Yes
EnableSyslogReceiver 0 0 Yes
EnableSNMPTraps 1 1 Yes
EnableReportingServer 0 0 Yes
EnableObjectTransactions 0 0 Yes
EnableISCListener 0 0 Yes
EnableEventStormDetection 0 0 Yes
EnableCheckPointSNMP 0 0 No
EnableAuditLog 1 1 Yes
EnableAlarmSummaryEmails 0 0 No
EnableAgentRegistration 1 1 No
EnableAdminInterface 1 Yes
DiscoveryPollingInterval 14400 900 Yes
DiscoveryFilterFlags 0 0 No
DiscoveryFilter none none No
DeleteUnreachableNodesPeriod 0 0 No
DeleteEventsOfDeletedObject 1 1 No
DeleteEmptySubnets 0 0 Yes
DeleteAlarmsOfDeletedObject 1 1 No
DefaultSubnetMaskIPv6 64 64 No
DefaultSubnetMaskIPv4 24 24 No
DefaultMapBackgroundColor 0xffffff 0xffffff No
DefaultInterfaceExpectedState DOWN DOWN No
DefaultEncryptionPolicy Preferred Preferred Yes
DefaultDCIRetentionTime 30 30 No
DefaultDCIPollingInterval 60 60 No
DefaultConsoleTimeFormat HH:mm:ss HH:mm:ss No
DefaultConsoleShortTimeFormat HH:mm HH:mm No
DefaultConsoleDateFormat dd.MM.yyyy dd.MM.yyyy No
DefaultAgentProtocolCompressionMode Enabled Enabled No
DefaultAgentCacheMode Off Off Yes
DBWriter.MaxRecordsPerTransaction 1000 1000 Yes
DBWriter.DataQueues 1 1 Yes
DBConnectionPoolMaxSize 30 30 Yes
DBConnectionPoolMaxLifetime 14400 14400 Yes
DBConnectionPoolCooldownTime 300 300 Yes
DBConnectionPoolBaseSize 10 10 Yes
DataDirectory C:\NetXMS\var Yes
DataCollection.ScriptErrorReportInterval 86400 86400 No
DataCollection.OnDCIDelete.TerminateRelatedAlarms 1 1 No
DashboardDataExportEnableInterpolation 1 1 Yes
ConfigurationPollingInterval 3600 3600 Yes
ConditionPollingInterval 60 60 Yes
ClusterTemplateAutoApply 0 0 No
ClusterContainerAutoBind 0 0 No
ClientListenerPort 4701 4701 Yes
Client.ObjectBrowser.MinFilterStringLength 1 1 No
Client.ObjectBrowser.FilterDelay 300 300 No
Client.ObjectBrowser.AutoApplyFilter 1 1 No
Client.AlarmList.DisplayLimit 4096 4096 No
CheckTrustedNodes 1 0 Yes
CaseInsensitiveLoginNames 0 0 Yes
CapabilityExpirationTime 604800 604800 No
BlockInactiveUserAccounts 0 0 No
BeaconTimeout 1000 1000 Yes
BeaconPollingInterval 1000 1000 Yes
BeaconHosts Yes
AuditLogRetentionTime 90 90 No
ApplyDCIFromTemplateToDisabledDCI 1 1 Yes
AnonymousFileAccess 0 0 No
AllowTrapVarbindsConversion 1 1 Yes
AllowedCiphers 63 63 Yes
AllowDirectSMS 0 0 No
AlarmSummaryEmailSchedule 0 0 * * * 0 0 * * * No
AlarmSummaryEmailRecipients No
Alarms.IgnoreHelpdeskState 0 0 No
AlarmListDisplayLimit 4096 4096 No
AlarmHistoryRetentionTime 180 180 No
AgentUpgradeWaitTime 600 600 No
AgentTunnels.UnboundTunnelTimeoutAction Reset tunnel Reset tunnel No
AgentTunnels.UnboundTunnelTimeout 3600 3600 No
AgentTunnels.NewNodesContainer No
AgentTunnels.ListenPort 4703 4703 Yes
AgentDefaultSharedSecret netxms netxms No
AgentCommandTimeout 4000 4000 Yes
ActiveNetworkDiscovery 1 0 Yes
ActiveDiscoveryInterval 7200 7200 Yes