Ad Widget

Collapse

Сервер не получает/не видет данные с аген&

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Goodist
    Junior Member
    • Jun 2012
    • 4

    #1

    Сервер не получает/не видет данные с аген&

    Здравствуйте!
    У мя проблемка. Бьюсь уже не первый день.
    Агенты и сервер запускаются нормально. Порты прослушиваются:

    Code:
    root@happy:~# netstat -anp |grep 1005
    tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN      1514/zabbix_agentd
    tcp        0      0 0.0.0.0:10051           0.0.0.0:*               LISTEN      1468/zabbix_server
    tcp        0      0 192.168.1.201:10051     192.168.1.1:43535       TIME_WAIT   -
    tcp        0      0 192.168.1.201:10051     192.168.1.201:57572     TIME_WAIT   -
    tcp6       0      0 :::10051                :::*                    LISTEN      1468/zabbix_server
    Вот логи:
    Code:
     1476:20120625:155952.666 sleeping for 5 seconds
      1506:20120625:155953.544 In collect_selfmon_stats()
      1506:20120625:155953.545 End of collect_selfmon_stats()
      1506:20120625:155953.545 sleeping for 1 seconds
      1506:20120625:155954.545 In collect_selfmon_stats()
      1506:20120625:155954.545 End of collect_selfmon_stats()
      1506:20120625:155954.545 sleeping for 1 seconds
      1481:20120625:155955.445 Trapper got [{
            "request":"active checks",
            "host":"happy"}] len 46
      1481:20120625:155955.445 In send_list_of_active_checks_json()
      1481:20120625:155955.445 In get_hostid_by_host() host:'happy'
      1481:20120625:155955.445 query [txnlev:0] [select hostid,status from hosts where host='happy' and status in (0,1) and proxy_hostid is null and hostid between 0 and 99999999999999]
      1481:20120625:155955.445 End of get_hostid_by_host():SUCCEED
      1481:20120625:155955.445 query [txnlev:0] [select i.key_,i.delay,i.lastlogsize,i.mtime from items i,hosts h where i.hostid=h.hostid and h.status=0 and i.type=7 and i.flags<>2 and h.hostid=10096 and h.proxy_hostid is null and (i.status=0 or (i.status=3 and i.lastclock+600<=1340625595))]
      1481:20120625:155955.445 send_list_of_active_checks_json() sending [{
            "response":"success",
            "data":[]}]
      1481:20120625:155955.445 End of send_list_of_active_checks_json():SUCCEED
      1506:20120625:155955.545 In collect_selfmon_stats()
      1506:20120625:155955.545 End of collect_selfmon_stats()
      1506:20120625:155955.545 sleeping for 1 seconds
      1504:20120625:155955.663 In process_escalations()
      1504:20120625:155955.663 query [txnlev:1] [begin;]
      1504:20120625:155955.663 query [txnlev:1] [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status,nextcheck from escalations where 1=1 and escalationid between 0 and 99999999999999 order by actionid,triggerid,escalationid]
      1504:20120625:155955.663 query [txnlev:1] [commit;]
      1504:20120625:155955.663 End of process_escalations()
      1504:20120625:155955.663 escalator #1 spent 0.000254 seconds while processing escalations
      1504:20120625:155955.663 sleeping for 3 seconds
      1506:20120625:155956.545 In collect_selfmon_stats()
      1506:20120625:155956.545 End of collect_selfmon_stats()
      1506:20120625:155956.545 sleeping for 1 seconds
      1489:20120625:155956.763 Syncing ...
      1489:20120625:155956.790 In DCsync_history() history_first:0 history_num:0
      1489:20120625:155956.790 history syncer #1 spent 0.000056 seconds while processing 0 items
      1489:20120625:155956.791 sleeping for 5 seconds
      1503:20120625:155957.122 Syncing ...
      1503:20120625:155957.122 In DCsync_history() history_first:0 history_num:0
      1503:20120625:155957.122 history syncer #4 spent 0.000042 seconds while processing 0 items
      1503:20120625:155957.122 sleeping for 5 seconds
      1473:20120625:155957.122 In get_values()
      1473:20120625:155957.122 In DCconfig_get_poller_items() poller_type:0
      1473:20120625:155957.122 End of DCconfig_get_poller_items():0
      1473:20120625:155957.122 End of get_values():0
      1473:20120625:155957.122 poller #2 spent 0.000085 seconds while updating 0 values
      1473:20120625:155957.122 In DCconfig_get_poller_nextcheck() poller_type:0
      1473:20120625:155957.122 End of DCconfig_get_poller_nextcheck():-1
      1473:20120625:155957.122 sleeping for 5 seconds
      1475:20120625:155957.122 In get_values()
      1475:20120625:155957.122 In DCconfig_get_poller_items() poller_type:0
      1475:20120625:155957.122 End of DCconfig_get_poller_items():0
      1475:20120625:155957.122 End of get_values():0
      1475:20120625:155957.122 poller #4 spent 0.000080 seconds while updating 0 values
      1475:20120625:155957.122 In DCconfig_get_poller_nextcheck() poller_type:0
      1475:20120625:155957.122 End of DCconfig_get_poller_nextcheck():-1
      1475:20120625:155957.122 sleeping for 5 seconds
      1502:20120625:155957.387 Syncing ...
      1502:20120625:155957.387 In DCsync_history() history_first:0 history_num:0
      1502:20120625:155957.387 history syncer #3 spent 0.000018 seconds while processing 0 items
      1502:20120625:155957.387 sleeping for 5 seconds
      1501:20120625:155957.481 Syncing ...
      1501:20120625:155957.481 In DCsync_history() history_first:0 history_num:0
      1501:20120625:155957.481 history syncer #2 spent 0.000018 seconds while processing 0 items
      1501:20120625:155957.482 sleeping for 5 seconds
      1505:20120625:155957.482 In process_proxy()
      1505:20120625:155957.482 In DCconfig_get_proxypoller_hosts()
      1505:20120625:155957.482 End of DCconfig_get_proxypoller_hosts():0
      1505:20120625:155957.482 End of process_proxy()
      1505:20120625:155957.482 proxy poller #1 spent 0.000092 seconds while processing   0 proxies
      1505:20120625:155957.482 In DCconfig_get_proxypoller_nextcheck()
      1505:20120625:155957.482 End of DCconfig_get_proxypoller_nextcheck():-1
      1505:20120625:155957.482 sleeping for 5 seconds
      1477:20120625:155957.501 In get_values()
      1477:20120625:155957.501 In DCconfig_get_poller_items() poller_type:1
      1477:20120625:155957.501 End of DCconfig_get_poller_items():0
      1477:20120625:155957.501 End of get_values():0
      1477:20120625:155957.501 unreachable poller #1 spent 0.000099 seconds while updating 0 values
      1477:20120625:155957.501 In DCconfig_get_poller_nextcheck() poller_type:1
      1477:20120625:155957.501 End of DCconfig_get_poller_nextcheck():-1
      1477:20120625:155957.501 sleeping for 5 seconds
      1472:20120625:155957.503 In get_values()
      1472:20120625:155957.503 In DCconfig_get_poller_items() poller_type:0
      1472:20120625:155957.503 End of DCconfig_get_poller_items():0
      1472:20120625:155957.503 End of get_values():0
      1472:20120625:155957.503 poller #1 spent 0.000097 seconds while updating 0 values
      1472:20120625:155957.503 In DCconfig_get_poller_nextcheck() poller_type:0
      1472:20120625:155957.503 End of DCconfig_get_poller_nextcheck():-1
      1472:20120625:155957.503 sleeping for 5 seconds
      1474:20120625:155957.506 In get_values()
      1474:20120625:155957.506 In DCconfig_get_poller_items() poller_type:0
      1474:20120625:155957.507 End of DCconfig_get_poller_items():0
      1474:20120625:155957.507 End of get_values():0
      1474:20120625:155957.507 poller #3 spent 0.000104 seconds while updating 0 values
      1474:20120625:155957.507 In DCconfig_get_poller_nextcheck() poller_type:0
      1474:20120625:155957.507 End of DCconfig_get_poller_nextcheck():-1
      1474:20120625:155957.507 sleeping for 5 seconds
      1483:20120625:155957.507 In get_pinger_hosts()
      1483:20120625:155957.507 In DCconfig_get_poller_items() poller_type:3
      1483:20120625:155957.507 End of DCconfig_get_poller_items():0
      1483:20120625:155957.507 End of get_pinger_hosts():0
      1483:20120625:155957.507 In process_pinger_hosts()
      1483:20120625:155957.507 End of process_pinger_hosts()
      1483:20120625:155957.507 icmp pinger #1 spent 0.000102 seconds while processing 0 items
      1483:20120625:155957.507 In DCconfig_get_poller_nextcheck() poller_type:3
      1483:20120625:155957.507 End of DCconfig_get_poller_nextcheck():-1
      1483:20120625:155957.507 sleeping for 5 seconds
      1506:20120625:155957.545 In collect_selfmon_stats()
      1506:20120625:155957.545 End of collect_selfmon_stats()
      1506:20120625:155957.545 sleeping for 1 seconds
      1487:20120625:155957.573 In process_httptests()
      1487:20120625:155957.573 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1340625597 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 0 and 99999999999999]
      1487:20120625:155957.573 End of process_httptests()
      1487:20120625:155957.573 http poller #1 spent 0.000518 seconds while updating HTTP tests
      1487:20120625:155957.573 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 0 and 99999999999999]
      1487:20120625:155957.573 No httptests to process in get_minnextcheck.
      1487:20120625:155957.573 sleeping for 5 seconds
      1476:20120625:155957.666 In get_values()
      1476:20120625:155957.666 In DCconfig_get_poller_items() poller_type:0
      1476:20120625:155957.666 End of DCconfig_get_poller_items():0
      1476:20120625:155957.666 End of get_values():0
      1476:20120625:155957.666 poller #5 spent 0.000100 seconds while updating 0 values
      1476:20120625:155957.666 In DCconfig_get_poller_nextcheck() poller_type:0
      1476:20120625:155957.666 End of DCconfig_get_poller_nextcheck():-1
      1476:20120625:155957.666 sleeping for 5 seconds
    И дальше всё повторяется ..

    На запросы агент отзывается:

    Code:
    root@happy:~# zabbix_get -s 192.168.1.201 -k agent.version
    2.0.0
    В авто обнаружении находит всех агентов в виртуальной сети. Показывает, что агент обнаружен. А вот в вкладке "Узлы сети" упорно не хочет загораться значёк "Z" и как в следствии не получаю данные с агентов(( Куда копать не представляю. Есть у кого идеи?
    Заранее спасибо!
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Авто обнаружение оуществляется через активные проверки - когда агент спрашивает у сервера активные айтемы.

    А значек Z у хоста загорится крассным или зеленым только если будет хотя бы один пассивный айтем. Активные айтемы этот статус не меняют.

    http://www.zabbix.com/documentation/...work_discovery
    http://www.zabbix.com/documentation/...o_registration

    Comment

    • Goodist
      Junior Member
      • Jun 2012
      • 4

      #3
      Я так понимаю, что у мя всё нормально со значками и авто регистрацией. Но почему не видно полученных данных?
      Я не совсем понимаю, что там написано в логах. Есть ли признаки отправки/получения данный?

      Comment

      • Goodist
        Junior Member
        • Jun 2012
        • 4

        #4
        Снёс собранный из исходников zabbix. Поставил из репозиториев ubuntu 12.04
        Ситуация не изменилась( НА все команды отвлекается, а брать данные с агента не как не хочет( Неужели некто не сталкивался с таким?

        Comment

        • sergo
          Member
          • Dec 2009
          • 99

          #5
          Originally posted by goodist
          Снёс собранный из исходников zabbix. Поставил из репозиториев ubuntu 12.04
          Ситуация не изменилась( НА все команды отвлекается, а брать данные с агента не как не хочет( Неужели некто не сталкивался с таким?
          выложите конфиг агента
          выложите скриншот элементов которые пытаетесь забрать
          сильно подозреваю что проблема у вас именно с конфигурированием, при условии что локально пытаетесь забирать данные

          Comment

          • Goodist
            Junior Member
            • Jun 2012
            • 4

            #6
            Вот я ОЛЕНЬ!!!

            Всё заработало!! Оказалось, что бы проходили данные, помимо добавления узла в группу, ещё нужно было шаблон присоединить!! Я думал он автоматом присоединиться к группе..
            Спасибо тем кто откликнулся! теперь работает на ура))

            Comment

            Working...