Ad Widget

Collapse

No information back

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malik
    Junior Member
    • Jan 2012
    • 26

    #1

    No information back

    Hello,

    I have two problems :

    1) I have Red Hat server in ZABBIX, zabbix icon is not green (and not red, it's gray).
    I use a zabbix proxy, commands TELNET are OK, zabbix agent file is configured and logs are not critical, but I can not find the solution.

    2) Too, I have a other linux wich has the zabbix logo green but, nothing information back to zabbix server. Yet, commands TELNET is OK too and nothing in logs, why ?

    Thank for your help.

    Malik.
    Last edited by malik; 22-02-2012, 12:28.
  • Davidus
    Senior Member
    • Dec 2010
    • 281

    #2
    can be agent`s config file issue

    Comment

    • frankymryao
      Member
      • Oct 2011
      • 52

      #3
      while a host is no data trans to server(or proxy), try:

      1.agent down?
      2./usr/local/zabbix/bin/zabbix_get -s IP -k KEY(usually system.hostname or some key else you want to check)
      3.review agent log

      Comment

      • malik
        Junior Member
        • Jan 2012
        • 26

        #4
        For the agent, I think it is ok

        The problems of icons ZABBIX gray was the routing, now they are ok, servers totality are green, but I have nothing in "Latest Data" always.

        1. Agent is up, I have restart.
        2. I don't understand this, can you explain ?
        3. In agent log, I have nothing, but proxy log, I have this :


        Code:
        Item [my-host:rg.log.error] error: Get value from agent failed:ZBX_TCP_READ() failed [Connection reset by peer]
        
        [Z3005] Query failed: [2006] MySQL server has gone away [begin;]
          
        Zabbix Host [my-host]: another network error, wait for 15 seconds
          
        Zabbix Host [my-host]: first network error, wait for 15 seconds

        Comment

        • frankymryao
          Member
          • Oct 2011
          • 52

          #5
          Originally posted by malik
          For the agent, I think it is ok

          The problems of icons ZABBIX gray was the routing, now they are ok, servers totality are green, but I have nothing in "Latest Data" always.

          1. Agent is up, I have restart.
          2. I don't understand this, can you explain ?
          3. In agent log, I have nothing, but proxy log, I have this :


          Code:
          Item [my-host:rg.log.error] error: Get value from agent failed:ZBX_TCP_READ() failed [Connection reset by peer]
          
          [Z3005] Query failed: [2006] MySQL server has gone away [begin;]
            
          Zabbix Host [my-host]: another network error, wait for 15 seconds
            
          Zabbix Host [my-host]: first network error, wait for 15 seconds
          1. agent restart successfully? check agent log?
          2. '/usr/local/zabbix/bin/zabbix_get' allows you to get value in command line. For example, I want to get the hostname from 127.0.0.1, I can use '/usr/local/zabbix/bin/zabbix_get -s 127.0.0.1 -k system.hostname' to get. You can use it to check your item is working well. Details for it you can find in zabbix manual.
          3. ZBX_TCP_READ() failed perhaps occurred because there are wrong ip(or hostname) in your zabbix_proxy.conf. I've encounted this issue long ago. Sorry I cannot remember it. You can google for it.
          4. From log, something is wrong with MySQL of your proxy

          Comment

          • malik
            Junior Member
            • Jan 2012
            • 26

            #6
            1. Restart agent is successful, nothing in logs.

            Code:
            [user@host ~]# /etc/init.d/zabbix_agentd stop
            Stopping zabbix_agentd:                                    [  OK  ]
            [user@host ~]# /etc/init.d/zabbix_agentd start
            Starting zabbix_agentd:                                    [  OK  ]
            
            cat /var/log/local/zabbix_agentd.log
              12550:20120203:093707.554 Got signal
            [signal:15(SIGTERM),sender_pid:25106,sender_uid:0,reason:0]. Exiting ...
              12542:20120203:093707.554 One child process died (PID:12550,exitcode/signal:255). Exiting ...
              12542:20120203:093709.556 Zabbix Agent stopped. Zabbix 1.8.3 (revision 13936).
              25139:20120203:093712.524 Zabbix Agent started. Zabbix 1.8.3 (revision 13936).
              25141:20120203:093712.524 zabbix_agentd collector started
              25142:20120203:093712.525 zabbix_agentd listener started
              25143:20120203:093712.526 zabbix_agentd listener started
              25144:20120203:093712.526 zabbix_agentd listener started
              25145:20120203:093712.526 zabbix_agentd listener started
              25146:20120203:093712.527 zabbix_agentd listener started
              25147:20120203:093712.527 zabbix_agentd listener started

            2. Zabbix is not exist in "/usr/local/", it's normal ?

            3. I verified in zabbix_proxy.conf, all is OK.

            4. I restart mysqld, I waiting and I look logs after.

            Thank for your help.

            Comment

            • frankymryao
              Member
              • Oct 2011
              • 52

              #7
              Originally posted by malik
              1. Restart agent is successful, nothing in logs.

              Code:
              [user@host ~]# /etc/init.d/zabbix_agentd stop
              Stopping zabbix_agentd:                                    [  OK  ]
              [user@host ~]# /etc/init.d/zabbix_agentd start
              Starting zabbix_agentd:                                    [  OK  ]
              
              cat /var/log/local/zabbix_agentd.log
                12550:20120203:093707.554 Got signal
              [signal:15(SIGTERM),sender_pid:25106,sender_uid:0,reason:0]. Exiting ...
                12542:20120203:093707.554 One child process died (PID:12550,exitcode/signal:255). Exiting ...
                12542:20120203:093709.556 Zabbix Agent stopped. Zabbix 1.8.3 (revision 13936).
                25139:20120203:093712.524 Zabbix Agent started. Zabbix 1.8.3 (revision 13936).
                25141:20120203:093712.524 zabbix_agentd collector started
                25142:20120203:093712.525 zabbix_agentd listener started
                25143:20120203:093712.526 zabbix_agentd listener started
                25144:20120203:093712.526 zabbix_agentd listener started
                25145:20120203:093712.526 zabbix_agentd listener started
                25146:20120203:093712.527 zabbix_agentd listener started
                25147:20120203:093712.527 zabbix_agentd listener started

              2. Zabbix is not exist in "/usr/local/", it's normal ?

              3. I verified in zabbix_proxy.conf, all is OK.

              4. I restart mysqld, I waiting and I look logs after.

              Thank for your help.
              Don't mention it

              My zabbix is installed in /usr/local. The exact place depends on your prefix while you install. A simple method to found it is to check your /etc/init.d/zabbix_proxy (vi/vim).

              In my opinion, it is nessessary to check item with zabbix_get first

              Comment

              • malik
                Junior Member
                • Jan 2012
                • 26

                #8
                Yes, my file "zabbix_get" is in "/usr/local/bin/"

                Code:
                '/usr/local/zabbix/bin/zabbix_get -s 127.0.0.1 -k system.hostname'
                But, the command return nothing.

                Comment

                • frankymryao
                  Member
                  • Oct 2011
                  • 52

                  #9
                  Originally posted by malik
                  Yes, my file "zabbix_get" is in "/usr/local/bin/"

                  Code:
                  '/usr/local/zabbix/bin/zabbix_get -s 127.0.0.1 -k system.hostname'
                  But, the command return nothing.
                  Have you replace "127.0.0.1" to the IP you installed zabbix_agent in? 'system.hostname' is the basic key in zabbix. If you cannot get the value of any agent, there must be wrong

                  Comment

                  • malik
                    Junior Member
                    • Jan 2012
                    • 26

                    #10
                    On zabbix proxy :
                    - The file zabbix_agentd : hostname = qwerty
                    - The file zabbix_proxy : hostname = qwerty

                    I use this command :
                    Code:
                     /usr/local/bin/zabbix_get -s qwerty -k system.hostname
                    Command return this error :
                    Code:
                    zabbix_get [7323]: Get value error: gethost() failded for address 'qwerty' [success]
                    Why this error ?

                    Thank you,

                    Malik.

                    Comment

                    • frankymryao
                      Member
                      • Oct 2011
                      • 52

                      #11
                      Originally posted by malik
                      On zabbix proxy :
                      - The file zabbix_agentd : hostname = qwerty
                      - The file zabbix_proxy : hostname = qwerty

                      I use this command :
                      Code:
                       /usr/local/bin/zabbix_get -s qwerty -k system.hostname
                      Command return this error :
                      Code:
                      zabbix_get [7323]: Get value error: gethost() failded for address 'qwerty' [success]
                      Why this error ?

                      Thank you,

                      Malik.
                      you should use IP to replace to qwerty

                      Comment

                      • malik
                        Junior Member
                        • Jan 2012
                        • 26

                        #12
                        I tried replace "qwerty" by IP of server zabbix, but nothing in command return.

                        Comment

                        • frankymryao
                          Member
                          • Oct 2011
                          • 52

                          #13
                          Originally posted by malik
                          I tried replace "qwerty" by IP of server zabbix, but nothing in command return.
                          NOTHING?“ZBX_NOT_SUPPORTED” showed ?

                          if not, the link between your agent and server DID NOT work any more

                          Comment

                          • malik
                            Junior Member
                            • Jan 2012
                            • 26

                            #14
                            Sorry, I think I did a error.

                            I executed this command on zabbix proxy
                            Code:
                            /usr/local/bin/zabbix_get -s IP-server-zabbix -k system.hostname
                            Response :
                            Code:
                            zabbix_get [9388] : Timout while executing operation

                            Comment

                            • frankymryao
                              Member
                              • Oct 2011
                              • 52

                              #15
                              Originally posted by malik
                              Sorry, I think I did a error.

                              I executed this command on zabbix proxy
                              Code:
                              /usr/local/bin/zabbix_get -s IP-server-zabbix -k system.hostname
                              Response :
                              Code:
                              zabbix_get [9388] : Timout while executing operation
                              telnet 10050(zabbix default port)?

                              Comment

                              Working...