Ad Widget

Collapse

Zabbix не получается завести на FreeBSD 8.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fox
    Junior Member
    • Jul 2011
    • 1

    #1

    Zabbix не получается завести на FreeBSD 8.2

    Доброе время суток.
    Поставил я забика, но он не запускается в лог пишет при полной отладке вод такой сабж:
    PHP Code:
     cat /var/log/zabbix_server.log

      1137
    :20110722:203930.034 Starting Zabbix ServerZabbix 1.8.5 (revision 19050).
      
    1137:20110722:203930.035 ****** Enabled features ******
      
    1137:20110722:203930.035 SNMP monitoring:           YES
      1137
    :20110722:203930.035 IPMI monitoring:            NO
      1137
    :20110722:203930.035 WEB monitoring:            YES
      1137
    :20110722:203930.035 Jabber notifications:      YES
      1137
    :20110722:203930.035 Ez Texting notifications:  YES
      1137
    :20110722:203930.035 ODBC:                       NO
      1137
    :20110722:203930.035 SSH2 support:              YES
      1137
    :20110722:203930.035 IPv6 support:               NO
      1137
    :20110722:203930.035 ******************************
      
    1137:20110722:203930.035 Connect to the database
      1137
    :20110722:203930.134 Query [txnlev:0] [SET NAMES utf8]
      
    1137:20110722:203930.135 Query [txnlev:0] [SET CHARACTER SET utf8]
      
    1137:20110722:203930.135 Query [txnlev:0] [select refresh_unsupported from config where 1=and configid between 000000000000000 and 099999999999999]
      
    1137:20110722:203930.238 In init_database_cache()
      
    1137:20110722:203930.238 In zbx_mem_required_size() size:8420916 chunks_num:4 descr:'history cache' param:'HistoryCacheSize'
      
    1137:20110722:203930.238 End of zbx_mem_required_size() size:8421263
      1137
    :20110722:203930.238 In zbx_mem_create() descr:'history cache' param:'HistoryCacheSize' size:8421263
      1137
    :20110722:203930.239 valid user addresses: [0x28d000d00x29507f88total size8421048
      1137
    :20110722:203930.239 End of zbx_mem_create()
      
    1137:20110722:203930.240 In zbx_mem_required_size() size:16777216 chunks_num:1 descr:'history text cache' param:'HistoryTextCacheSize'
      
    1137:20110722:203930.240 End of zbx_mem_required_size() size:16777479
      1137
    :20110722:203930.240 In zbx_mem_create() descr:'history text cache' param:'HistoryTextCacheSize' size:16777479
      1137
    :20110722:203930.240 valid user addresses: [0x295080d80x2a508100total size16777256
      1137
    :20110722:203930.240 End of zbx_mem_create()
      
    1137:20110722:203930.240 In zbx_mem_required_size() size:4194304 chunks_num:1 descr:'trend cache' param:'TrendCacheSize'
      
    1137:20110722:203930.240 End of zbx_mem_required_size() size:4194554
      1137
    :20110722:203930.240 In zbx_mem_create() descr:'trend cache' param:'TrendCacheSize' size:4194554
      1137
    :20110722:203930.240 valid user addresses: [0x2a5090c80x2a9090f0total size4194344
      1137
    :20110722:203930.240 End of zbx_mem_create()
      
    1137:20110722:203930.240 End of init_database_cache()
      
    1137:20110722:203930.240 In init_configuration_cache() size:8388608
      1137
    :20110722:203930.241 In zbx_mem_create() descr:'configuration cache' param:'CacheSize' size:7130317
      1137
    :20110722:203930.241 Cannot allocate shared memory of size 7130317 [Cannot allocate memory]
      
    1137:20110722:203930.241 cannot allocate shared memory for configuration cache 
    Помогите разобратся.
    Спасибо за внимание...
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Посмотрите на ограничения по максимальному размеру shared memory накладываемые системой. Запустите 'sysctl -a'.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • alp
      Member
      • Nov 2009
      • 90

      #3
      Как получилось побороть проблему?

      У меня два гига памяти, параметры sysctl такие:
      [3|root@gw| ~ ] sysctl -a |grep shm
      kern.ipc.shmmax: 124085069
      kern.ipc.shmmin: 1
      kern.ipc.shmmni: 192
      kern.ipc.shmseg: 128
      kern.ipc.shmall: 8192
      kern.ipc.shm_use_phys: 0
      kern.ipc.shm_allow_removed: 0

      uname -a
      FreeBSD gw.jlq.su 6.4-RELEASE-p9 FreeBSD 6.4-RELEASE-p9 #0: Sat Apr 3 22:01:11 MSD 2010 [email protected]:/usr/obj/usr/src/sys/MYKERN i386

      Сообщение заббикс-сервера так же неоднозначно твердит:

      35458:20111017:121120.644 Cannot allocate shared memory of size 114085069 [Cannot allocate memory]
      35458:20111017:121120.644 cannot allocate shared memory for configuration cache

      Comment

      • alp
        Member
        • Nov 2009
        • 90

        #4
        У меня получилось путём тюнинга параметров
        CacheSize=2M
        HistoryCacheSize=4M
        HistoryTextCacheSize=8M
        TrendCacheSize=2M

        В конфиге заббикс-сервера. Стоит сказать, что первый параметр я тюнил постепенно уменьшая, а три остальных в таком же виде нашёл на форуме лиссяры http://forum.lissyara.su/viewtopic.p...399d0&start=50

        Comment

        Working...