Ad Widget

Collapse

Zabbix_agentd And server Restart (DEBIAN)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benito103e
    Junior Member
    • Jun 2010
    • 24

    #1

    Zabbix_agentd And server Restart (DEBIAN)

    Hi everybody,

    I've Zabbix 1.8.2 on a Debian 5.0

    First problem

    I noticed a problem when i want to restart my agentd or server with

    Code:
    /etc/init.d/zabbix-agent restart
    -zabbix can't kill the running process

    In fact zabbix can't find the pid file because of in my /etc/init.d/zabbix-agent

    Code:
    NAME=zabbix_agentd
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
    DAEMON=/home/zabbix/bin/${NAME}
    DESC="Zabbix agent daemon"
    [COLOR="red"]PID=/var/tmp/$NAME.pid[/COLOR]
    Explication
    - I have to change the /var/tmp/$NAME.pid to /tmp/$NAME.pid



    Second problem
    After That i noticed that restart bug and i have to make a stop start manually :

    I think we should have to add a sleep between stop and start on the restart :

    Code:
    restart|force-reload)
    	$0 stop
            [COLOR="Red"]sleep 2[/COLOR]
    	$0 start

    Perhaps it's me who have make a bad installation ??

    I hope it'll help somebody
    Last edited by benito103e; 09-06-2010, 17:16.
  • benito103e
    Junior Member
    • Jun 2010
    • 24

    #2
    I've checked an installation of agent with :

    Code:
    apt-get install zabbix-agent
    And the configuration files are good :
    - "sleep" command in the restart
    - directory of PID files

    Thus the problem expressed above concerns only the installation with downloaded .tar.gz

    But the version of agent with aptitude installation is 1.4.6

    I hope it'll help somebody

    Comment

    Working...