Ad Widget

Collapse

PIDFILE should be removed in Redhat init script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hwmpd
    Junior Member
    • May 2005
    • 3

    #1

    PIDFILE should be removed in Redhat init script

    In the redhat init script zabbix_agentd_ctl, if the PIDFILE is found, but the process is
    not running, the PIDFILE should be removed. Otherwise, when the agent daemon
    starts up and attempts to create the pidfile, it will report an error, and exit immediately.

    This situation can occur if zabbix agentd is running on a host which crashes (or is
    rebooted or experiences a power failure without things being properly stopped).
    The PIDFILE is still around, but the process isn't.
  • Wolfgang
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Apr 2005
    • 116

    #2
    This is also true for a debian install.
    Basically, zabbix uses /var/tmp for the pid file. But debian keeps files in the \var tree after a reboot which is compliant to the FHS standard.

    The pid files should be located in \tmp which is automatically cleaned after a reboot.

    I know that the location of the pid files can be configured in the zabbix config files, but it is not a default in the current release.

    To remove the existing pid file in the intit script using "start", is not an option, becaues it could be that there is a running process.
    However it could be an option in the init script using "stop" and therefore "restart"
    http://www.intellitrend.de
    Specialised in monitoring large environments and Zabbix API programming.

    Comment

    Working...