Ad Widget

Collapse

Agent on Mac complains about lack of shared memory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Armagon
    Junior Member
    • Jun 2009
    • 1

    #1

    Agent on Mac complains about lack of shared memory

    Greetings.

    When I run the Zabbix Agent on the Mac, I get this in my logs:

    Code:
     81196:20090617:173111 zabbix_agentd started. ZABBIX 1.6.5 (revision 7442).
     81196:20090617:173111 Can't allocate shared memory for collector. [Cannot allocate memory]
    I saw that there is an issue where some machines don't allocate enough shared memory (2 MB is required). I changed the amount of shared memory from 4 MB to 2 GB. (ie. "sudo sysctl -w kern.sysv.shmmax=2147483648" and it still doesn't work).

    I configured it thusly:

    env LIBS="-lresolv" ./configure --enable-agent --with-net-snmp --with-ldap --with-libcurl --enable-ipv6 --prefix=/Library/Zabbix

    After configuring it, I have to open up include/common.h and put in a line that says, "#undef HAVE_FUNCTION_SYSCTLBYNAME", or it will not compile. (See [urlhttp://www.zabbix.com/forum/showpost.php?p=37458&postcount=4[/url] ; it is not clear to me that this is the correct fix, but the application does compile).

    I had been having the same issue with 1.6.4 and tried upgrading. I compiled it on Mac OS X 10.5.7 (and, with similar flags, version 1.6.4 on Mac OS X Server 10.4.11.) I have not been able to get the agent to run properly yet.
Working...