Ad Widget

Collapse

Zabbix agent: Allow hostname instead of IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blinkiz
    Junior Member
    • Mar 2011
    • 27

    #1

    Zabbix agent: Allow hostname instead of IP

    In zabbix_agentd.conf I can read:
    Code:
    # List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
    # No spaces allowed. First entry is used for sending active checks.
    # Note that hostnames must resolve hostname->IP address and
    # IP address->hostname.
    Okay, so I put in the hostname instead.
    Code:
    #Server=77.72.77.11
    Server=nms3.mydomain.com
    Code:
     28572:20111206:131212.065 Listener error: Connection from [77.72.77.11] rejected. Allowed server is [nms3.mydomain.com] 
     28568:20111206:131212.990 In update_cpustats()
     28568:20111206:131212.990 End of update_cpustats()
     28574:20111206:131212.993 In send_buffer() host:'nms3.mydomain.com' port:10051 values:0/100
     28574:20111206:131212.993 End of send_buffer():SUCCEED
    nms3.mydomain.com resolve to 77.72.77.11.
    It works without problem if I put in the IP number instead.
    Zabbix agent version 1.8.5.
Working...