Ad Widget

Collapse

Zabbix 1.8 FreeBSD "Can't allocate shared memory"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zebr
    Junior Member
    • Dec 2008
    • 5

    #1

    Zabbix 1.8 FreeBSD "Can't allocate shared memory"

    Hi, guys.
    Several weeks agog I've posted, that zabbix 1.7.1 doesn't work on my FreeBSD installation.
    So I've installed zabbix 1.8 from ports on FreeBSD 7.2 and have the same stuff
    Code:
      27642:20091214:155603.597 Starting zabbix_server. Zabbix 1.8 (revision 8565).
     27642:20091214:155603.597 **** Enabled features ****
     27642:20091214:155603.597 SNMP monitoring:       YES
     27642:20091214:155603.597 IPMI monitoring:        NO
     27642:20091214:155603.598 WEB monitoring:        YES
     27642:20091214:155603.598 Jabber notifications:  YES
     27642:20091214:155603.598 ODBC:                   NO
     27642:20091214:155603.598 SSH2 support:           NO
     27642:20091214:155603.598 IPv6 support:          YES
     27642:20091214:155603.598 **************************
     27642:20091214:155603.598 Connect to the database
     27642:20091214:155603.605 Query [txnlev:0] [SET NAMES utf8]
     27642:20091214:155603.605 Query [txnlev:0] [SET CHARACTER SET utf8]
     27642:20091214:155603.605 Query [txnlev:0] [select refresh_unsupported from config where 1=1 and configid between 000000000000000 and 099999999999999]
     27642:20091214:155603.606 Query [txnlev:0] [select masterid from nodes where nodeid=0]
     27642:20091214:155603.607 In DBupdate_triggers_after_restart()
     27642:20091214:155603.607 Query [txnlev:1] [begin;]
     27642:20091214:155603.607 Query [txnlev:1] [select distinct t.triggerid,t.expression,t.description,t.status,t.priority,t.value,t.url,t.comments from hosts h,items i,triggers t,functions f where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=t.triggerid and h.status in (0) and i.status in (0) and t.status in (0) and i.type not in (2) and i.key_ not in ('status','zabbix[log]')]
     27642:20091214:155603.609 Query [txnlev:1] [commit;]
     27642:20091214:155603.609 End of DBupdate_triggers_after_restart()
     27642:20091214:155603.610 In init_database_cache() size:29361092
     27642:20091214:155603.610 Can't allocate shared memory of size 29361092 [Cannot allocate memory]
     27642:20091214:155603.610 Can't allocate shared memory for database cache.
    Any ideas how to fix this?
    Last edited by zebr; 14-12-2009, 15:57.
  • varnav
    Member
    • Jul 2009
    • 36

    #2
    Same problem
    Zabbix working in jail

    Try these commands:

    sysctl kern.ipc.shmall=409600
    sysctl kern.ipc.shmmax=204800000

    Run them on jail host if you have zabbix in jail.

    But I'm really not sure that it's the correct workaround.
    Last edited by varnav; 14-12-2009, 16:25.

    Comment

    • zebr
      Junior Member
      • Dec 2008
      • 5

      #3
      Thanks, Varnav.

      That worked for me.
      At least zabbix_server started successfully. (:

      Comment

      Working...