Ad Widget

Collapse

Problem zabbix_agentd v1.4.2 on Sparc Solaris 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lreger
    Junior Member
    • Jun 2006
    • 4

    #1

    Problem zabbix_agentd v1.4.2 on Sparc Solaris 8

    I've already successfully installed the previous version 1.4.1
    on SunOS 5.8 sparc SUNW,Sun-Fire-V440

    I compiled successfully the new version 1.4.2 on this machine but
    if I try to start the zabbix_agentd, I get the following error:
    zabbix_agentd [12234]: Can not create Semaphore [No space left on device]
    zabbix_agentd [12234]: Unable to create mutex for log file

    I used exactly the same configuration for v1.4.1 and v1.4.2, I've checked
    all devices there is enough space. After I rolled back to v1.4.1 the agentd
    started without any problems.

    Than I tried to start the new v1.4.2 zabbix_agentd on a different machine
    SunOS 5.8 sparc SUNW,Sun-Fire-480R (the patch level on this machine
    is older than the patches applied on the other machine), but here the
    agentd starts without any problems.

    Any idea?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Check per-user limits on IPC resources. I am prettry sure you hit some limit.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • hannibal20
      Junior Member
      • Jan 2007
      • 22

      #3
      turn off all zabbix instances, then do:
      # ipcs
      if you see any resources held by the user which runs usually zabbix's processes, then use
      # ipcrm [flag] [id]
      to delete the resource. Start your agents afterwards.

      Comment

      • lreger
        Junior Member
        • Jun 2006
        • 4

        #4
        I used

        # ipcs -A

        to find out which shared memory segments are currently used then I removed
        some currently allocated but unused segments for the zabbix user (no zabbix process is running):

        # ipcrm -S semkey -M shmkey

        after that I tried to restart the the new zabbix_agentd v1.4.2 but now I run into another problem which seems to be also the result of a unsuccessfull shmget() system call:
        Can't allocate shared memory for collector. [Invalid argument]

        have you changed the amount of allocated shared memory size from v1.4.1 to v1.4.2 in the zabbix_agent code?

        It may be that some system wide kernel parameters according to shmget
        operation have to be changed for the machine. I will check that.

        Comment

        • lreger
          Junior Member
          • Jun 2006
          • 4

          #5
          Solaris 8 has a default of 1 MB max allocateable shared memory size, this is
          a bit to small for zabbix (2 MB should be work) in Solaris 9 this default value is increased to 8 MB.

          I will increase the max shared memory size to 100 MB (Note: this is more than enough)
          shmsys:shminfo_shmmax = 104857600

          in /etc/system and reboot the system, after that it should work
          Last edited by lreger; 22-08-2007, 15:17.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Originally posted by lreger
            Solaris 8 has a default of 1 MB max allocateable shared memory size, this is
            a bit to small for zabbix (2 MB should be work) in Solaris 9 this default value is increased to 8 MB.

            I will increase the max shared memory size to 100 MB (Note: this is more than enough)
            shmsys:shminfo_shmmax = 104857600
            in /etc/system and reboot the system, after that it should work
            2MB of shared memory is normally enough for ZABBIX agent. The memory is used to store pre-CPU statistics of up-to 16 CPUs.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            Working...