Ad Widget

Collapse

Zabbix Configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maruscya
    Senior Member
    Zabbix Certified Specialist
    • Jul 2007
    • 129

    #1

    Zabbix Configuration

    Hello Guys.

    I'm a new user for zabbix service. I have installed zabbix on gentoo box.
    On a client i have installed zabbix agent (gentoo again) and start it. On client appear this message

    Code:
    009076:20070907:105757 get_active_checks: host[activecheck.guttadauro-local.com ] port[5010]
    009076:20070907:105757 gethostbyname() failed [Unknown host]
    009076:20070907:105757 Getting list of active checks failed. Will retry after 60 seconds
    I don't understand if the problem is client side or server side. Server name is correctly resolved by dns IP <-> Name.

    This is my server configuration...

    Server=1
    StartPollers=6
    StartTrappers=5
    #ListenIP=192.168.1.122
    ListenPort=5010
    HousekeepingFrequency=1
    SenderFrequency=30
    #DisableHousekeeping=1
    DebugLevel=3
    Timeout=5
    UnreachablePeriod=45
    UnavailableDelay=15
    UnavailableDelay=60
    PidFile=/var/run/zabbix/zabbix_server.pid
    LogFile=/var/log/zabbix/zabbix_server.log
    AlertScriptsPath=/var/lib/zabbix/scripts
    FpingLocation=/usr/sbin/fping
    PingerFrequency=30
    ...etc
    Someone could help me to fix my problem ???
    Last edited by maruscya; 13-09-2007, 09:18.
  • marc
    Senior Member
    • Oct 2004
    • 146

    #2
    we need an FAQ..
    this problem occurs if the Hostname from zabbix_agentd.conf differs from the one you have taken in gui.
    Also each Hostname mut be uniq.

    e.g. zabbix_agentd.conf
    Hostname=localhost (default)

    in GUI:
    Hostname=myhost.mydomain.tld

    change ether zabbix_agentd.conf to fqdn or in GUI to shortname and use ip for connect- your choice.-

    Comment

    • maruscya
      Senior Member
      Zabbix Certified Specialist
      • Jul 2007
      • 129

      #3
      Hello !!!

      Thanks for your reply. I check my configuration on client side, and the host name is the same name that appear on web interface.

      I have added this host on GUI:

      Code:
      Name: digimon
      IP: <No IP>
      Port: 5010
      Status: Monitored
      Availability: Unknow
      This is the configuration parameters on client side

      Code:
      Server=activecheck.guttadauro-local.com
      ServerPort=5010
      Hostname=digimon
      ListenPort=5011
      #ListenIP=127.0.0.1
      StartAgents=5
      RefreshActiveChecks=60
      #DisableActive=1
      EnableRemoteCommands=1
      [...cut...]
      I try restart services server and client too, but into log appear always the same message

      Code:
      009076:20070907:105757 get_active_checks: host[activecheck.guttadauro-local.com ] port[5010]
      009076:20070907:105757 gethostbyname() failed [Unknown host]
      009076:20070907:105757 Getting list of active checks failed. Will retry after 60 seconds

      Please could you help me ??!?!

      MaruscyA

      Comment

      • elgoretto
        Junior Member
        • Sep 2007
        • 28

        #4
        Is your value in /etc/conf.d/hostname correctly set in your gentoo agent box?
        I have set shortnames in OS and zabbix conf files, and it works fine here.

        Comment

        • maruscya
          Senior Member
          Zabbix Certified Specialist
          • Jul 2007
          • 129

          #5
          Hello Guys

          I have fixed my problem.
          In the error appear this line
          Code:
          009076:20070907:105757 get_active_checks: host[activecheck.guttadauro-local.com ] port[5010]
          After the host name into [] there was a white space. I check the configuration files on client side and i change the host name, removing the withe space at the end.

          Now client can reach the server !!

          I don't know if this is possible zabbix bug or not...

          Maruscya

          Comment

          Working...