[Pkg-nagios-devel] Bug#427782: nagios-common: /etc/init.d/nagios reload removes pid-file

Raoul Borenius raoul at shuttle.de
Wed Jun 6 09:52:04 UTC 2007


Package: nagios-common
Version: 2:1.4-3.1
Severity: normal


Reloading nagios leads to removal of pid-file which makes init-script
unusable:

root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
nagios   18405     1  0 11:33 ?        00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
root     18411 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~# /etc/init.d/nagios stop
Stopping nagios monitoring daemon: nagios.
root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
root     18426 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~# /etc/init.d/nagios start
Starting nagios monitoring daemon: nagios.
root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
nagios   18459     1  0 11:34 ?        00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
root     18465 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~# cat /var/log/nagios/nagios.lock
18459
root at www1:~# /etc/init.d/nagios reload
Reloading nagios monitoring daemon configuration files: nagios.
root at www1:~# cat /var/log/nagios/nagios.lock
cat: /var/log/nagios/nagios.lock: No such file or directory
root at www1:~# /etc/init.d/nagios reload
Reloading nagios monitoring daemon configuration files: nagios* Not running.
 failed!
root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
nagios   18459     1  0 11:34 ?        00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
root     18540 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~# /etc/init.d/nagios stop
Stopping nagios monitoring daemon: nagios.
root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
nagios   18459     1  0 11:34 ?        00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
root     18563 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~# killall /usr/sbin/nagios
root at www1:~# ps -ef | grep /etc/nagios/nagios.cfg
root     18567 14983  0 11:34 pts/0    00:00:00 grep /etc/nagios/nagios.cfg
root at www1:~#

As a workaroud I use 'killall -s 1 /usr/sbin/nagios'.

Just sending the report for now, I might dig into this deeper at a later
time.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages nagios-common depends on:
ii  adduser          3.102                   Add and remove users and groups
ii  apache2-mpm-pref 2.2.3-4                 Traditional model for Apache HTTPD
ii  coreutils        5.97-5.3                The GNU core utilities
ii  debconf [debconf 1.5.11                  Debian configuration management sy
ii  lsb-core         3.1-23.1                Linux Standard Base 3.1 core suppo
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  nagios-plugins   1.4.5-1                 Plugins for the nagios network mon
ii  nagios-plugins-b 1.4.5-1                 Plugins for the nagios network mon

nagios-common recommends no packages.

-- debconf information:
  nagios/configapache: Apache
  nagios/wwwsuid: true




More information about the Pkg-nagios-devel mailing list