Ad Widget

Collapse

Zabbix 1.6.4 Agent restart race?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lamont
    Member
    • Nov 2007
    • 89

    #1

    Zabbix 1.6.4 Agent restart race?

    from my zabbix_agentd.log file:

    22813:20090409:012849 Requested [vfs.dev.read[sda1,sectors]]
    22813:20090409:012849 Sending back [1865]
    22813:20090409:012849 Got signal. Exiting ...
    22808:20090409:012849 Got signal. Exiting ...
    22814:20090409:012849 Got signal. Exiting ...
    22808:20090409:012849 zbx_on_exit() called.
    22810:20090409:012849 Got signal. Exiting ...
    22808:20090409:012849 One child process died. Exiting ...
    22812:20090409:012849 Got signal. Exiting ...
    22808:20090409:012849 zbx_on_exit() called.
    22808:20090409:012849 Cannot remove PID file [/var/run/zabbix/zabbix_agentd.pid] [No such file or directory]
    22811:20090409:012849 Got signal. Exiting ...
    22808:20090409:012851 ZABBIX Agent stopped. ZABBIX 1.6.4.
    zabbix_agentd [17966]: DEBUG: ZABBIX semaphores already exist, trying to recreate.
    zabbix_agentd [17966]: Semaphore [0] error in semctl(SETVAL)
    zabbix_agentd [17966]: Unable to create mutex for log file

    that was the result of a simple /etc/rc.d/init.d/zabbix-agent restart which in the logs claimed that startup was successful, but the new agent logged that and apparently died.

    do i need to do something like:

    /etc/rc.d/init.d/zabbix-agent stop
    sleep 2
    /etc/rc.d/init.d/zabbix-agent start

    instead of just calling restart, so that the semaphores get cleaned up before attempting a start?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Welcome to my world. Though not in my agent log, but in the server log:

    /usr/sbin/zabbix_server [24370]: Semaphore [0] error in semctl(SETVAL)
    /usr/sbin/zabbix_server [24370]: Unable to create mutex for log file

    Comment

    • vhm3
      Junior Member
      • Jun 2008
      • 13

      #3
      I've got the same errors, running Zabbix 1.6.4 on FreeBSD 7.1. However, if I start Zabbix as root, rather than under the user "zabbix", all is fine. I haven't done any research into why yet, but will as soon as I get a chance to do so.

      Running another server (RHEL 4 & Zabbix 1.6.4), this problem does not exist, even running as a non-privledged user.

      Chip

      Comment

      • yield65
        Junior Member
        • Mar 2009
        • 2

        #4
        Same problem Freebsd 7.1

        I have the same problem here

        uname -a
        FreeBSD ns2.local.local 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 [email protected]:/usr/obj/usr/src/sys/GENERIC i386

        When zabbix tries to execute at boot time it doesn't because of the following error
        797:20090630:082459 [Z3001] Connection to database 'zabbix_db' failed: [2003] Can't connect to MySQL server on '127.0.0.1' (61)

        Then i run it as root directly from console and shows this:
        /usr/local/bin/zabbix_server [1173]: Semaphore [0] error in semctl(SETVAL)
        /usr/local/bin/zabbix_server [1173]: Unable to create mutex for log file

        But if i run it again, the second time it executes without trouble, i have only tried on freebsd 7.1 i386, freebsd 6.4 i386 and 6.2 SPARC, on the 6.4 and 6.2 SPARC i have no trouble at all.

        Regards.

        Comment

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

          #5
          The problem was resolved in 1.6.5. Please upgrade.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...