Ad Widget

Collapse

zabbix 5.0.15 auto registered agent interface "connect to" always set to DNS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamil.lada
    Junior Member
    • Oct 2021
    • 3

    #1

    zabbix 5.0.15 auto registered agent interface "connect to" always set to DNS

    Hi,

    After upgrade from 5.0.13 to 5.0.15 all my windows host after auto registration have default "connect to" set to DNS despite configuration. When I have 5.0.13, for testing I've added "HostInterfaceItem=system.hostname" so all my hosts was connected via DNS, then i upgrade to 5.0.15 and want to back to connect to via IP but i cant. No matter what i change in config it always connect via DNS. I have 160 Win10 hosts, 2 physical servers, Nas and Ups. Proxy is a Centos8 VM on Win 2016 Server Hyper-V, server is on Contos8 GCP instance, both original images. I have cleared caches, restart both VMs. What I'm missing?

    Agent conf:
    Code:
    LogFile=c:\zabbix\zabbix_agent2.log
    LogFileSize=100
    DebugLevel=5
    Server=10.200.65.109
    ServerActive=10.200.65.109
    RefreshActiveChecks=60
    Timeout=30
    UnsafeUserParameters=1
    ControlSocket=\\.\pipe\agent.sock
    Plugins.SystemRun.LogRemoteCommands=1
    Proxy conf:
    Code:
    ProxyMode=0
    Server=11.22.33.44
    ServerPort=10051
    Hostname=ZbxProxy
    ListenPort=10051
    LogFile=/var/log/zabbix/zabbix_proxy.log
    LogFileSize=0
    DebugLevel=3
    EnableRemoteCommands=1
    PidFile=/var/run/zabbix/zabbix_proxy.pid
    SocketDir=/var/run/zabbix
    DBName=zabbix_proxy
    DBUser=user
    DBPassword=pass
    ConfigFrequency=3600
    DataSenderFrequency=10
    StartPollers=15
    StartIPMIPollers=10
    StartPollersUnreachable=15
    StartTrappers=10
    StartPingers=10
    StartDiscoverers=10
    SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
    StartSNMPTrapper=1
    CacheSize=64M
    StartDBSyncers=4
    HistoryCacheSize=64M
    HistoryIndexCacheSize=64M
    Timeout=30
    UnreachableDelay=20
    ExternalScripts=/usr/lib/zabbix/externalscripts
    LogSlowQueries=3000
    StatsAllowedIP=11.22.33.44
    Server conf:
    Code:
    ListenPort=10051
    LogFile=/var/log/zabbix/zabbix_server.log
    LogFileSize=0
    DebugLevel=3
    PidFile=/var/run/zabbix/zabbix_server.pid
    SocketDir=/var/run/zabbix
    DBName=zabbix
    DBUser=user
    DBPassword=pass
    StartPollers=2
    StartPreprocessors=1
    StartPollersUnreachable=4
    StartTrappers=2
    StartAlerters=1
    JavaGateway=127.0.0.1
    SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
    CacheSize=64M
    StartDBSyncers=3
    HistoryCacheSize=64M
    HistoryIndexCacheSize=64M
    TrendCacheSize=64M
    ValueCacheSize=256M
    Timeout=30
    AlertScriptsPath=/usr/lib/zabbix/alertscripts
    ExternalScripts=/usr/lib/zabbix/externalscripts
    LogSlowQueries=3000
    StartLLDProcessors=1
    StatsAllowedIP=127.0.0.1
    Click image for larger version

Name:	Screenshot_20211011_105115.png
Views:	689
Size:	20.6 KB
ID:	432954
  • kamil.lada
    Junior Member
    • Oct 2021
    • 3

    #2
    Small update:

    If i set up :
    Code:
    Hostname=K-001-19
    all is working fine but with

    Code:
    HostnameItem=system.run[hostname]
    or
    HostnameItem=system.hostname
    host is auto registered via DNS.

    There is nothing interesting in logs, even with DebugLevel = 5.
    Could it be related to DNS resolving issues on proxy VM?

    Comment

    Working...