Добрый день, форумчане.
Возможно вопрос покажется, простым, но в силу "лоскутности" знаний по 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
Ответил в английской ветке: https://www.netxms.org/forum/configuration/server-and-agents-are-separated-by-nat/msg25297/#msg25297 (https://www.netxms.org/forum/configuration/server-and-agents-are-separated-by-nat/msg25297/#msg25297)