Ad Widget

Collapse

1.4.2 and 1.6: Can't allocate shared memory for collector. [Invalid argument]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • just2blue4u
    Senior Member
    • Apr 2006
    • 347

    #1

    1.4.2 and 1.6: Can't allocate shared memory for collector. [Invalid argument]

    I had to restart my Zabbix agent (1.4.2) on a Red Hat 8 Server. I got that error, so i decided to update the agent to 1.6. This didn't solve the problem so i googled and found out about SHMMAX:
    [root@oracle-1-shk etc]# grep shmmax /etc/sysctl.conf
    # kernel.shmmax = 2147483648
    kernel.shmmax = 4294967296
    This should REALLY be enough (maybe too much? It's that high because of the Oracle DB).

    Then i saw something about ipcs and deleted everything that had to do with zabbix:
    [root@oracle-1-shk etc]# ipcs

    ----- Gemeinsamer Speicher: Segmente -----
    key shmid Besitzer Rechte Bytes nattch Status
    0x34928d90 32769 oracle 640 859832320 40

    ----- Semaphorenfelder -----
    key semid Besitzer Rechte nsems Status
    0xc3157e1c 131073 oracle 640 152
    0xc3157e1d 163842 oracle 640 152
    0xc3157e1e 196611 oracle 640 152

    ----- Nachrichtenwarteschlangen -----
    key msqid Besitzer Rechte used-bytes messages
    But still my agent dies directly after it's started:
    [root@oracle-1-shk etc]# /etc/init.d/zabbix_agentd start
    Zabbix Agent starten: [ OK ]
    [root@oracle-1-shk etc]# ps -efa|grep zabbix
    [root@oracle-1-shk etc]# tail -n2 /var/log/zabbix/agentd.log
    13329:20081028:144410 zabbix_agentd started. ZABBIX 1.6.
    13329:20081028:144410 Can't allocate shared memory for collector. [Invalid argument]
    Could it be bacause of less memory availible?
    Code:
    [root@oracle-1-shk etc]# free
                 total       used       free     shared    buffers     cached
    Mem:       3704552    3684660      19892          0     181376    3333936
    -/+ buffers/cache:     169348    3535204
    Swap:      4096564      65728    4030836
    It's a DB-Server, so i'd really like to have it monitored asap again... :-/

    Best thanks,
    Heiner
    Big ZABBIX is watching you!
    (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)
Working...