Ad Widget

Collapse

how to repair this? file[/var/tmp/zabbix_server.pid]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • migstage
    Junior Member
    • Jun 2007
    • 12

    #1

    how to repair this? file[/var/tmp/zabbix_server.pid]

    Hi people!

    with
    cat /tmp/zabbix_server.log

    I have this message when I try to start the server and checks for errors

    ./zabbix_server [13567]: File [/var/tmp/zabbix_server.pid] exists and locked. Is this process already running ?
    ./zabbix_server [13567]: ERROR: File [/var/tmp/zabbix_server.pid] exists and locked. Is this process already running ?


    how I should repair this?

    thanks
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #2
    Is zabbix already running?

    If you run ps -C zabbix_server and it looks like below Zabbix is already running. If no entries come up then zabbix probably crashed badly and it is somewhat safe to delete the pid file (rm /var/tmp/zabbix_server.pid) and try restarting.

    Code:
    # ps -C zabbix_server
      PID TTY          TIME CMD
    18046 ?        00:02:38 zabbix_server
    18051 ?        00:00:36 zabbix_server
    18052 ?        00:00:43 zabbix_server
    18054 ?        00:00:53 zabbix_server
    18056 ?        00:03:42 zabbix_server
    18057 ?        08:07:12 zabbix_server
    18058 ?        00:00:23 zabbix_server
    18061 ?        00:00:23 zabbix_server
    18063 ?        00:00:23 zabbix_server
    18065 ?        00:00:23 zabbix_server
    18067 ?        00:00:23 zabbix_server
    Scott

    Comment

    • arix
      Junior Member
      • May 2007
      • 15

      #3
      I'm using FreeBSD 6.2 w/ Zabbix 1.4 now.
      I found the File /var/tmp/zabbix_server.pid will not remove, if I just reboot the server by command "shutdown".
      So when you restart the PC, the zabbix_server will report error "/var/tmp/zabbix_server.pid existed and locked:.
      It will not happen if you shutdown the zabbix, then restart the PC.

      I think it because the rc script does not shutdown the zabbix correctly.
      My solution is mkdir softlink of /var/tmp to /tmp, then add clear_tmp_enable="YES" in /etc/rc.conf. It will clear the /tmp everytime the FreeBSD starup.

      BTW I don't think it work on linux, because the starup script is not the same.
      Maybe someone can make change of the starup script of zabbix.

      Comment

      • vikty
        Senior Member
        • Jul 2007
        • 104

        #4
        Web-graph with gap

        I have a similar problem.
        Code:
        /usr/local/bin/zabbix_server [19407]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19407]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19410]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19410]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19413]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19413]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19416]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19416]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19401]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19401]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19419]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19419]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19422]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19422]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19425]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19425]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19428]: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        /usr/local/bin/zabbix_server [19428]: ERROR: File [/var/run/zabbix/zabbix_server.pid] exists and locked. Is this process already running ?
        when this happen I saw any gap in web-scenario graph.

        Have someone anyidea?
        Attached Files

        Comment

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

          #5
          The locked PID file indicates that ZABBIX server is already running!
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • vikty
            Senior Member
            • Jul 2007
            • 104

            #6
            But, is there a difference between Pollers procees and HTTPPollers proces?

            I think that the procees, that try to start, is a HTTPPollers...
            it is a only explanation that I have....

            The worry thing is that: the web-scenario have only one step (the home page), and this error have happened...
            I image what happen with many steps in many scenarios......

            Code:
            # Number of pre-forked instances of pollers
            # Default value is 5
            # This parameter must be between 0 and 255
            StartPollers=90
            
            # Number of pre-forked instances of pollers for unreachable hosts
            # Default value is 1
            # This parameter must be between 0 and 255
            StartPollersUnreachable=1
            
            # Number of pre-forked instances of trappers
            # Default value is 5
            # This parameter must be between 0 and 255
            StartTrappers=1
            
            # Number of pre-forked instances of ICMP pingers
            # Default value is 1
            # This parameter must be between 0 and 255
            StartPingers=1
            
            # Number of pre-forked instances of discoverers
            # Default value is 1
            # This parameter must be between 0 and 255
            StartDiscoverers=1
            
            # Number of pre-forked instances of HTTP pollers
            # Default value is 1
            # This parameter must be between 0 and 255
            StartHTTPPollers=1

            Comment

            Working...