天天看點

系統預設配置設定的共享記憶體太小,導緻zabbix_server無法啟動一例

 某台在重新開機zabbix_server<安裝在ubuntu server上>後,一啟動zabbix_server程序,發現端口沒有成功偵聽。

檢視日志有報:

  1717:20120915:143945.838 starting zabbix server. zabbix 1.8.10 (revision 24303).

  1717:20120915:143945.838 ****** enabled features ******

  1717:20120915:143945.838 snmp monitoring:           yes

  1717:20120915:143945.838 ipmi monitoring:            no

  1717:20120915:143945.839 web monitoring:            yes

  1717:20120915:143945.839 jabber notifications:      yes

  1717:20120915:143945.839 ez texting notifications:  yes

  1717:20120915:143945.839 odbc:                       no

  1717:20120915:143945.839 ssh2 support:               no

  1717:20120915:143945.839 ipv6 support:               no

  1717:20120915:143945.839 ******************************

  1717:20120915:143945.844 cannot allocate shared memory of size 33795295: [22] invalid argument

  1717:20120915:143945.844 cannot allocate shared memory for history cache

解決方法: http://www.zabbix.org/wiki/how_to/configure_shared_memory

将配置設定的記憶體共享空間調大

# vim /etc/sysctl.conf

kernel.shmmax = 67108864

kernel.shmall = 67108864

再次啟動,解決。