Ad Widget

Collapse

ZBX_TCP_READ() failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Casper
    Member
    • Oct 2010
    • 67

    #1

    ZBX_TCP_READ() failed

    Get value from agent failed: ZBX_TCP_READ() failed [Interrupted system call]
    Как бороться?
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #2
    Нужно увеличить таймауты для zabbix_agent и zabbix_server
    /etc/zabbix/zabbix_agentd.conf
    Timeout=30
    /etc/zabbix/zabbix_server.conf
    Timeout=30
    И рестартовать zabbix_agent и zabbix_server
    По умолчанию там 3 сек Timeout

    Comment

    • Casper
      Member
      • Oct 2010
      • 67

      #3
      Выставленно именно так... тоже не помагает, при выполнении с командной строки:
      zabbix_get -s IP -k agent.ping

      zabbix_get [21025]: Timeout while executing operation.

      В Zabbix выдаёт всё ту же ошибку: Get value from agent failed: ZBX_TCP_READ() failed [Interrupted system call]
      Last edited by Casper; 05-10-2010, 10:36.

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #4
        Ищите проблемы в конфигурации Zabbix Agentd, на сети, настройки firewall, Security фичи на OS и т.д.

        Comment

        • Casper
          Member
          • Oct 2010
          • 67

          #5
          Get value error: ZBX_TCP_READ() failed [Connection reset by peer]

          Сейчас пишет это...
          Да всё работало, правда потом подправился малость конфиг, перезаупстили агента... и началась эта проблема.
          Вернули всё до рабочего состояния, всё равно проблема не исчезла...

          Comment

          • dima_dm
            Senior Member
            • Dec 2009
            • 2697

            #6
            Покажите netstat -na и конфиг Zabbix Agentd.

            Comment

            • Casper
              Member
              • Oct 2010
              • 67

              #7
              Code:
              # This is config file for zabbix_agentd
              # To get more information about ZABBIX, go http://www.zabbix.com
              
              ############ GENERAL PARAMETERS #################
              
              # 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.
              Server=myserver.com
              
              # Server port for sending active checks
              ServerPort=10051
              
              # Unique hostname. Required for active checks.
              Hostname=myhost.ru
              
              # Listen port. Default is 10050
              ListenPort=10050
              
              # IP address to bind agent
              # If missing, bind to all available IPs
              #ListenIP=127.0.0.1
              
              # Number of pre-forked instances of zabbix_agentd.
              # Default value is 5
              # This parameter must be between 1 and 16
              StartAgents=5
              
              # How often refresh list of active checks. 2 minutes by default.
              #RefreshActiveChecks=120
              
              # Disable active checks. The agent will work in passive mode listening server.
              DisableActive=0
              #DisablePassive=1
              
              # Enable remote commands for ZABBIX agent. By default remote commands disabled.
              EnableRemoteCommands=0
              
              # Specifies debug level
              # 0 - debug is not created
              # 1 - critical information
              # 2 - error information
              # 3 - warnings
              # 4 - information (default)
              # 5 - for debugging (produces lots of information)
              DebugLevel=2
              
              LogUnresolvedSymbols=yes
              
              
              # Name of PID file
              PidFile=c:\zabbix\var\zabbix_agentd.pid
              
              # Name of log file.
              # If not set, syslog will be used
              LogFile=c:\zabbix\var\log\zabbix_agentd.log
              
              # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
              #LogFileSize=1
              
              # Spend no more than Timeout seconds on processing
              # Must be between 1 and 30
              Timeout=30
              
              ####### USER-DEFINED MONITORED PARAMETERS #######
              # Format: UserParameter=<key>,<shell command>
              # Note that shell command must not return empty string or EOL only
              #UserParameter=system.test,who|wc -l
              ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
              ### Change -u<username> and add -p<password> if required
              #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
              #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
              #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
              #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
              #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
              #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
              #UserParameter=mysql.version,mysql -V
              
              #UserParameter=wmi.freespace,cscript //nologo c:\zabbix\etc\scripts\diskspace.vbs
              #UserParameter=wmi.usedspace,cscript //nologo c:\zabbix\etc\scripts\diskspace2.vbs
              UserParameter=snmp.temp_cpu1,cscript.exe /nologo "C:\zabbix\etc\scripts\snmp_temp_cpu1.vbs"
              UserParameter=snmp.temp_cpu2,cscript.exe /nologo "C:\zabbix\etc\scripts\snmp_temp_cpu2.vbs"
              
              
              
              #network monitoring
              UserParameter=localPing[*],C:\zabbix\etc\scripts\pingTest.exe $1
              UserParameter=FPingSec[*],C:\zabbix\etc\scripts\monping\fpingsec.bat $1
              UserParameter=BackUpCheck[*],C:\zabbix\etc\scripts\bckchk.bat $1
              netstat -na
              PHP Code:
                TCP    192.168.160.82:10050     192.168.183.92:3891     CLOSE_WAIT
                TCP    192.168.160.82
              :10050     192.168.183.92:3905     CLOSE_WAIT
                TCP    192.168.160.82
              :10050     192.168.183.92:3970     CLOSE_WAIT
                TCP    192.168.160.82
              :10050     192.168.183.92:3971     CLOSE_WAIT
                TCP    192.168.160.82
              :10050     192.168.183.92:3972     CLOSE_WAIT
                TCP    192.168.160.82
              :10050     192.168.183.92:3973     CLOSE_WAIT 

              Comment

              • dima_dm
                Senior Member
                • Dec 2009
                • 2697

                #8
                Code:
                Server=myserver.com
                Так можно писать, если имя резолвиться в две стороны прямая и обратная зона и они совпадают смотрите RFC 1912 пункт 2.1 (Запись DNS A и PTR) либо имя определено через файл hosts операционной системы.
                Я обычно пишу IP адрес Zabbix Server, так проще и проблем меньше.

                По поводу статистики, netstat -na не видно запущенного Zabbix Agentd.
                Code:
                 Имя    Локальный адрес        Внешний адрес          Состояние
                 TCP    0.0.0.0:10050             0.0.0.0:0              LISTENING
                Last edited by dima_dm; 06-10-2010, 10:00.

                Comment

                • Casper
                  Member
                  • Oct 2010
                  • 67

                  #9
                  в netstat их 2 шт. там есть
                  PHP Code:
                    TCP    0.0.0.0:10050          0.0.0.0:0              LISTENING
                    TCP    0.0.0.0
                  :10050          0.0.0.0:0              LISTENING 

                  Comment

                  • Casper
                    Member
                    • Oct 2010
                    • 67

                    #10
                    Люди... help!!!
                    Куда копать чтобы исправить это????

                    Comment

                    • des
                      Junior Member
                      • May 2009
                      • 26

                      #11
                      zabbix_agentd.conf

                      Server=...

                      нужно указать IP откуда ты запускаешь zabbix_get.

                      Comment

                      • Casper
                        Member
                        • Oct 2010
                        • 67

                        #12
                        прописываю IP ....эффекта 0, смотрю netstat -na:

                        PHP Code:
                          TCP    0.0.0.0:10050          0.0.0.0:0              LISTENING
                          TCP    0.0.0.0
                        :10050          0.0.0.0:0              LISTENING
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3891     CLOSE_WAIT
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3905     CLOSE_WAIT
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3970     CLOSE_WAIT
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3971     CLOSE_WAIT
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3972     CLOSE_WAIT
                          TCP    192.168.160.82
                        :10050     192.168.183.92:3973     CLOSE_WAIT 
                        Хотя IP в .conf указан 192.168.8.8

                        в логах пишет:

                        Code:
                          5472:20101006:150506 In send_buffer('192.168.8.8','10051')
                          5472:20101006:150506 Values in the buffer 0 Max 100
                          5472:20101006:150506 Sleeping for 1 seconds
                          2096:20101006:150507 In collect_cpustat()

                        Comment

                        • dima_dm
                          Senior Member
                          • Dec 2009
                          • 2697

                          #13
                          Originally posted by Casper
                          прописываю IP ....эффекта 0, смотрю netstat -na:

                          PHP Code:
                            TCP    0.0.0.0:10050          0.0.0.0:0              LISTENING
                            TCP    0.0.0.0
                          :10050          0.0.0.0:0              LISTENING
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3891     CLOSE_WAIT
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3905     CLOSE_WAIT
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3970     CLOSE_WAIT
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3971     CLOSE_WAIT
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3972     CLOSE_WAIT
                            TCP    192.168.160.82
                          :10050     192.168.183.92:3973     CLOSE_WAIT 
                          Хотя IP в .conf указан 192.168.8.8

                          в логах пишет:

                          Code:
                            5472:20101006:150506 In send_buffer('192.168.8.8','10051')
                            5472:20101006:150506 Values in the buffer 0 Max 100
                            5472:20101006:150506 Sleeping for 1 seconds
                            2096:20101006:150507 In collect_cpustat()
                          Так Вы определитесь, что Вы настраиваете. Zabbix Agent в активном или пассивном режиме?
                          http://www.zabbix.com/documentation/...rotocols/agent

                          Comment

                          • Casper
                            Member
                            • Oct 2010
                            • 67

                            #14
                            Пытаюсь в активном.
                            Сейчас в конфиге прописанно:
                            Code:
                            # Disable active checks. The agent will work in passive mode listening server.
                            DisableActive=0
                            #DisablePassive=1

                            Comment

                            • dima_dm
                              Senior Member
                              • Dec 2009
                              • 2697

                              #15
                              Originally posted by Casper
                              Пытаюсь в активном.
                              Сейчас в конфиге прописанно:
                              Code:
                              # Disable active checks. The agent will work in passive mode listening server.
                              DisableActive=0
                              #DisablePassive=1
                              Вы плохо читали документацию
                              http://www.zabbix.com/documentation/...bix_agentd_win
                              Такие параметры для Windows не заявлены.

                              Comment

                              Working...