Ad Widget

Collapse

Zabbix agentd not working properly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kollathodi
    Junior Member
    • Apr 2006
    • 7

    #1

    Zabbix agentd not working properly

    Hi all,
    I have installed Zabbix and the agentd doesn't seem to be running correctly. Relavant details are,
    OS - CentOS 4.3
    zabbix(RPM installation )
    zabbix-phpfrontend-1.0-2.el4.at
    zabbix-agent-1.0-%atrelease2
    zabbix-1.0-2.el4.at
    zabbix-debuginfo-1.0-%atrelease2

    PROBLEM DESCRIPTION:
    I can access the web interface and do almost everything. BUT the problem is that I cannot add items of type "Zabbix agent" (simple check and snmp works perfectly). when added items of this type, its showing as "Not supported" ( I tried many). I tried to telnet to port 10051 and its not working. Even netstat confirms that its not listening in 10051 port. But "ps -aux | grep zabbix" shows all the zabbix_suckerd , zabbix_agentd and zabbix_trapperd daemons correctly. I can telnet to port 10050 successfully also.

    Relevant portion of the various config files under /etc/zabbix
    1. zabbix_server.conf

    Server=1
    ListenPort=10051
    #DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=*****

    2. zabbix_suckerd.conf
    DBName=zabbix
    DBUser=zabbix
    DBPassword=*****

    3. zabbix_agentd.conf

    Server=127.0.0.1,172.16.1.66
    ServerPort=10051
    Hostname=127.0.0.1
    ListenPort=10050
    #DisableActive=1 ( I changed this to 0 and tried too)


    there is nothing usefull in any of the log files I could see(even in the debug option).

    Can someone please tell me why its not listening on 10051 for active checks and hence(?) I am unable to add items of zabbix type ? I tried to change the hostname/IP parameters to all the possible combination but still failed. Any suggestion would be appreciated .
    Thanx a lot in advance,
    Nasir
  • krusty
    Senior Member
    • Oct 2005
    • 222

    #2
    Hi, have you insert the ports 10050 and 10051 into the /etc/services file?

    Perhaps that is your problem.

    Comment

    • kollathodi
      Junior Member
      • Apr 2006
      • 7

      #3
      Re: Zabbix agentd not working

      Hi krusty,
      Many thanx indeed for your reply !. But unfortunately thats not my problem . This is what I have in my /etc/services

      # Local services
      zabbix_agent 10050/tcp
      zabbix_trap 10001/tcp


      any idea ? I searched the forum and docs thorougly and still failed.

      Comment

      • kollathodi
        Junior Member
        • Apr 2006
        • 7

        #4
        agentd not working properly( small correction in the last reply)

        hi all,
        There is a mistake in my previous mail. The content in my /etc/services is as follows,
        # Local services
        zabbix_agent 10050/tcp
        zabbix_trap 10051/tcp

        In the previous mail, I had mentioned the second port as 10001 wrongly. Its actually 10051 as seen above. So please ignore the previous one and take this.
        Any idea why its not working for me ?
        Thanx again,
        Nasir

        Comment

        • krusty
          Senior Member
          • Oct 2005
          • 222

          #5
          Okay, that looks fine.

          Could you get snmp stats from your host? Does the connection among server and host works? Any firewall between?

          Comment

          • kollathodi
            Junior Member
            • Apr 2006
            • 7

            #6
            Hi ,
            > Could you get snmp stats from your host?

            Yes, I am able to get snmp stats from my host using items of snmp types . it works perfect.

            > Does the connection among server and host works?

            Indeed. (actually the server and host is the same machine as I am testing this from the same machine. is that a problem BTW ?)

            > Any firewall between?

            No not at all.

            Thanx a lot again for your great heart to help people. Please let me know if you need any more info
            Naisr

            Comment

            • krusty
              Senior Member
              • Oct 2005
              • 222

              #7
              Okay,

              then check pleas this.

              Change to the frontend and select hosts and then your host you want to monitor with the agent. Then change to the configuration of this host and set the following.

              Use IP address "yes"
              IP address "127.0.0.1"
              Port "10050"
              Status "Monitored"

              BTW i checked the server with this configuration, and i use zabbix_agentd too. It works fine. Please try it and report.

              Comment

              • kollathodi
                Junior Member
                • Apr 2006
                • 7

                #8
                Hi ,

                > Use IP address "yes"
                > IP address "127.0.0.1"
                > Port "10050"
                > Status "Monitored"

                I had tried this earlier itself and had no luck with it. It gives the same error "Not supported" .But I can manually bind to 10050 port using telnet and its open there. My REAL problem is that port 10051 is not opened at all !! . Why zabbix_agent(or whatever daemon suppose to do that) is unable to open up and accept connection at that port ? any idea ?

                thanx,
                Nasir

                Comment

                Working...