Ad Widget

Collapse

Сломался ping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 4te
    Junior Member
    • Dec 2011
    • 25

    #1

    Сломался ping

    Прошу помощи.
    Сломался триггер icmpping. На сервере fping от zabbix-юзера запускается и работает норм, хост живой, но сервер почему то сливает в базу значения как будто хост не пингуется.
    Подскажите в чем может быть проблема?
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #2
    А файлы вида zabbix_server_20649.pinger в /tmp/ есть?

    Comment

    • 4te
      Junior Member
      • Dec 2011
      • 25

      #3
      да, появляется один на некоторое время

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #4
        Проверяйте так
        Файл temp с IP адресами
        Code:
        172.16.36.76
        127.0.0.1
        172.16.36.1
        На команду
        su - zabbix
        cat temp | fping -q -C3
        Должны получить примерно следующее
        Code:
        172.16.36.76 : 1.91 0.67 0.68
        127.0.0.1    : 0.06 0.05 0.06
        172.16.36.1  : - - -

        Comment

        • SergeniuS
          Member
          • Jan 2012
          • 68

          #5
          а что в логах сервера? При необходимости можно включить debug level = 4

          Comment

          • 4te
            Junior Member
            • Dec 2011
            • 25

            #6
            Code:
            Query [select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1328181167 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) ]
             30624:20120202:141248 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1328181167 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1328181167 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=1 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
             30624:20120202:141248 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
             30624:20120202:141248 End get_values()
             30624:20120202:141248 Spent 1 seconds while updating values
             30624:20120202:141248 Query [select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1328181167 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=1 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) ]
             30626:20120202:141248 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1328181167 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
             30626:20120202:141248 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
             30626:20120202:141248 No items to update for minnextcheck.
             30626:20120202:141248 Nextcheck:-1 Time:1328181168
             30626:20120202:141248 Sleeping for 5 seconds
            понятия не имею что это =)

            Comment

            • dima_dm
              Senior Member
              • Dec 2009
              • 2697

              #7
              Проверили fping как написано в 4-м комментарии?

              Comment

              • 4te
                Junior Member
                • Dec 2011
                • 25

                #8
                да, получаю норм вывод

                Comment

                • dima_dm
                  Senior Member
                  • Dec 2009
                  • 2697

                  #9
                  Originally posted by 4te
                  да, получаю норм вывод
                  Путь к fping правильно прописан?
                  /etc/zabbix/zabbix_server.conf
                  ### Option: FpingLocation
                  # Location of fping.
                  # Make sure that fping binary has root ownership and SUID flag set!
                  #
                  # Mandatory: no
                  # Default:
                  FpingLocation=/usr/sbin/fping

                  ### Option: Fping6Location
                  # Location of fping6.
                  # Make sure that fping binary has root ownership and SUID flag set
                  #
                  # Mandatory: no
                  # Default:
                  # Fping6Location=/usr/sbin/fping6


                  И права на утилиту
                  ls -l fping
                  -rws--s--- 1 root zabbix 60106 Feb 22 16:44 fping

                  Comment

                  • 4te
                    Junior Member
                    • Dec 2011
                    • 25

                    #10
                    да. права верные.
                    из фронтэнда (и из консоли под пользователям zabbix-а) могу запустить fping и ping и все хорошо.

                    Comment

                    • 4te
                      Junior Member
                      • Dec 2011
                      • 25

                      #11
                      пересобрал, все заработало. Мистика.
                      Вопрос в догонку, что нужно сделать чтобы очистить всю историю треггеров и событий? Чтобы заббикс заработал с чистого листа.

                      Comment

                      • dima_dm
                        Senior Member
                        • Dec 2009
                        • 2697

                        #12
                        Почисть таблицы events и acknowledges

                        Comment

                        • 4te
                          Junior Member
                          • Dec 2011
                          • 25

                          #13
                          Originally posted by dima_dm
                          Почисть таблицы events и acknowledges
                          Спасибо. Заработало.
                          Только теперь при добавлении какого-либо триггера, в колонке "Возраст" в мониторинге триггеров сразу ставится возраст в 50 минут. И со временем уменьшается, когда доходит до нуля - считает в нормальную сторону. Подскажите как это поборость??

                          Comment

                          Working...