Ad Widget

Collapse

Перестал работать сервер ошибка " zabbix server is not runnig "

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IT_DIMEX
    Junior Member
    • Apr 2019
    • 2

    #1

    Перестал работать сервер ошибка " zabbix server is not runnig "

    Внезапно перестал работать сервер, веб интерфейс выдает следующею ошибку
    " zabbix server is not runnig: the information displayd may not be current "

    В логах:

    апр 11 14:24:06 zabbix systemd[1]: zabbix-agent.service: Failed to parse PID from file /run/zabbix/zabbix_agentd.pid: Invalid argument
    апр 11 14:24:06 zabbix systemd[1]: zabbix-agent.service: Supervising process 22528 which is not our child. We'll most likely not notice when it exits.
    апр 11 14:24:06 zabbix systemd[1]: Started Zabbix Agent.
    апр 11 14:39:53 zabbix systemd[1]: Stopping Zabbix Agent...
    апр 11 14:39:53 zabbix systemd[1]: Stopped Zabbix Agent.
    апр 11 14:39:53 zabbix systemd[1]: Starting Zabbix Agent...
    апр 11 14:39:53 zabbix systemd[1]: zabbix-agent.service: Supervising process 25311 which is not our child. We'll most likely not notice when it exits.
    апр 11 14:39:53 zabbix systemd[1]: Started Zabbix Agent.


    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Лог агента

    25311:20190411:143953.383 using configuration file: /etc/zabbix/zabbix_agentd.conf
    25311:20190411:143953.384 agent #0 started [main process]
    25315:20190411:143953.385 agent #1 started [collector]
    25317:20190411:143953.386 agent #2 started[listener #1]
    25320:20190411:143953.386 agent #5 started [active checks #1]
    25318:20190411:143953.388 agent #3 started[listener #2]
    25319:20190411:143953.389 agent #4 started[listener #3]
    25320:20190411:143953.395 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Лог сервера

    27295:20190411:145106.559 Starting Zabbix Server. Zabbix 4.0.6 (revision 91685).
    27295:20190411:145106.560 ****** Enabled features ******
    27295:20190411:145106.560 SNMP monitoring: YES
    27295:20190411:145106.560 IPMI monitoring: YES
    27295:20190411:145106.560 Web monitoring: YES
    27295:20190411:145106.560 VMware monitoring: YES
    27295:20190411:145106.560 SMTP authentication: YES
    27295:20190411:145106.561 Jabber notifications: YES
    27295:20190411:145106.561 Ez Texting notifications: YES
    27295:20190411:145106.561 ODBC: YES
    27295:20190411:145106.561 SSH2 support: YES
    27295:20190411:145106.561 IPv6 support: YES
    27295:20190411:145106.561 TLS support: YES
    27295:20190411:145106.561 ******************************
    27295:20190411:145106.561 using configuration file: /etc/zabbix/zabbix_server.conf
    27295:20190411:145106.595 current database version (mandatory/optional): 04000000/04000003
    27295:20190411:145106.595 required mandatory version: 04000000
    27295:20190411:145107.526 __mem_malloc: skipped 11 asked 366104 skip_min 272 skip_max 319576
    27295:20190411:145107.526 [file:dbconfig.c,line:94] zbx_mem_realloc(): out of memory (requested 366104 bytes)
    27295:20190411:145107.526 [file:dbconfig.c,line:94] zbx_mem_realloc(): please increase CacheSize configuration parameter
    27295:20190411:145107.526 === memory statistics for configuration cache ===
    27295:20190411:145107.526 free chunks of size 24 bytes: 310
    27295:20190411:145107.526 free chunks of size 32 bytes: 40
    27295:20190411:145107.526 free chunks of size >= 256 bytes: 11
    27295:20190411:145107.527 min chunk size: 24 bytes
    27295:20190411:145107.527 max chunk size: 319576 bytes
    27295:20190411:145107.527 memory of total size 8388232 bytes fragmented into 77904 chunks
    27295:20190411:145107.527 of those, 396616 bytes are in 361 free chunks
    27295:20190411:145107.527 of those, 6745168 bytes are in 77543 used chunks
    27295:20190411:145107.527 ================================
    27295:20190411:145107.527 === Backtrace: ===
    27295:20190411:145107.527 13: /usr/sbin/zabbix_server(zbx_backtrace+0x44) [0x55e64d976fa6]
    27295:20190411:145107.527 12: /usr/sbin/zabbix_server(__zbx_mem_realloc+0x14d) [0x55e64d97274f]
    27295:20190411:145107.527 11: /usr/sbin/zabbix_server(+0xcb893) [0x55e64d93c893]
    27295:20190411:145107.527 10: /usr/sbin/zabbix_server(zbx_hashset_reserve+0xc1) [0x55e64d97c2cc]
    27295:20190411:145107.527 9: /usr/sbin/zabbix_server(zbx_hashset_insert_ext+0xef) [0x55e64d97c544]
    27295:20190411:145107.528 8: /usr/sbin/zabbix_server(+0xcc4fe) [0x55e64d93d4fe]
    27295:20190411:145107.528 7: /usr/sbin/zabbix_server(DCstrpool_replace+0x55) [0x55e64d93d5ff]
    27295:20190411:145107.528 6: /usr/sbin/zabbix_server(+0xd18ed) [0x55e64d9428ed]
    27295:20190411:145107.528 5: /usr/sbin/zabbix_server(DCsync_configuration+0xa27) [0x55e64d948b97]
    27295:20190411:145107.528 4: /usr/sbin/zabbix_server(MAIN_ZABBIX_ENTRY+0x6b6) [0x55e64d8aa463]
    27295:20190411:145107.528 3: /usr/sbin/zabbix_server(daemon_start+0x315) [0x55e64d9766ef]
    27295:20190411:145107.528 2: /usr/sbin/zabbix_server(main+0x305) [0x55e64d8a9d97]
    27295:20190411:145107.528 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f8ab15eab97]
    27295:20190411:145107.528 0: /usr/sbin/zabbix_server(_start+0x2a) [0x55e64d8a8eda]

    Как я понял не может достучаться на 10051 порт. Куда дальше копать не понятно.
    Система Linux zabbix 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • astrix89
    Senior Member
    • Jun 2017
    • 149

    #2
    27295:20190411:145107.526 [file:dbconfig.c,line:94] zbx_mem_realloc(): please increase CacheSize configuration parameter...

    Comment

    • IT_DIMEX
      Junior Member
      • Apr 2019
      • 2

      #3
      Спасибо за ответ. Успели уже сами разобраться. Потребовалось увеличть кеш.

      Фрагменты конфа если кому понадобится.

      ### Option: CacheSize
      # Size of configuration cache, in bytes.
      # Shared memory size for storing host, item and trigger data.
      #
      # Mandatory: no
      # Range: 128K-8G
      # Default:
      CacheSize=96M

      ----------------------------------------------------------------------------------------------


      ### Option: TrendCacheSize
      # Size of trend cache, in bytes.
      # Shared memory size for storing trends data.
      #
      # Mandatory: no
      # Range: 128K-2G
      # Default:
      TrendCacheSize=96M

      -----------------------------------------------------------------------------------------------

      Comment

      • sashok272
        Member
        • Apr 2019
        • 37

        #4
        Originally posted by IT_DIMEX
        Спасибо за ответ. Успели уже сами разобраться. Потребовалось увеличть кеш.

        Фрагменты конфа если кому понадобится.

        ### Option: CacheSize
        # Size of configuration cache, in bytes.
        # Shared memory size for storing host, item and trigger data.
        #
        # Mandatory: no
        # Range: 128K-8G
        # Default:
        CacheSize=96M

        ----------------------------------------------------------------------------------------------


        ### Option: TrendCacheSize
        # Size of trend cache, in bytes.
        # Shared memory size for storing trends data.
        #
        # Mandatory: no
        # Range: 128K-2G
        # Default:
        TrendCacheSize=96M

        -----------------------------------------------------------------------------------------------
        Столкнулся сегодня с такой-же проблемой. До этого какое значение было? Или вообще закомментирована строка была?

        Comment


        • IT_DIMEX
          IT_DIMEX commented
          Editing a comment
          Достаточно раскоментировать строки и указать необходимый размер кеша.
      Working...