nagios2 init script has wrong PID file.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios2-common
The init script for nagios2 (from nagios2-common) references the wrong PID file. This will only be an issue if the PID file can't be obtained from the nagios.cfg file.
Line 118 of /etc/init.
[ -n "$THEPIDFILE" ] || THEPIDFILE=
This should read:
[ -n "$THEPIDFILE" ] || THEPIDFILE=
(note: nagios2.pid and not nagios.pid)
Version information:
Package: nagios2-common
Priority: optional
Section: universe/net
Installed-Size: 404
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-
Architecture: all
Source: nagios2
Version: 2.9-1
This was noted in gusty.
Related branches
Changed in nagios2: | |
status: | New → Confirmed |
I confirm d/nagios2 restart" because it starts a second nagios2 without stopping the first one. Either one responds randomly to requests on the Web interface, one with the old and one with the new configuration.
This is a problem when calling "/etc/init.