Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#689460: nsca: Cannot remove pidfile '/var/run/nsca.pid'

60 views
Skip to first unread message

oz

unread,
Oct 2, 2012, 6:30:04 PM10/2/12
to
Package: nsca
Version: 2.9.1-2
Severity: normal

Dear Maintainer,

/etc/init.d/nsca stop is not able to remove the nsca.pid that was generated at start:

Oct 1 23:42:07 dallas nsca[19572]: Caught SIGTERM - shutting down...
Oct 1 23:42:07 dallas nsca[19572]: Cannot remove pidfile '/var/run/nsca.pid' - check your privileges.
Oct 1 23:42:07 dallas nsca[19572]: Daemon shutdown

The daemon is running with the default user and pid:
nsca.cfg:
nsca_user=nagios
pid_file=/var/run/nsca.pid

A work-around is to change pid_file to a path, that is owned by user nagios. I chose the already existing
pid_file=/var/run/icinga/nsca.pid

ls -la /var/run/icinga/
total 8
drwxr-xr-x 2 nagios nagios 80 Oct 3 00:07 .
drwxr-xr-x 17 root root 600 Oct 2 23:57 ..
-rw-r--r-- 1 nagios nagios 5 Oct 3 00:07 icinga.pid
-rw-r--r-- 1 nagios nogroup 5 Oct 3 00:07 nsca.pid

cheers,
oz

-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nsca depends on:
ii confget 1.03-1
ii debconf [debconf-2.0] 1.5.46
ii libc6 2.13-35
ii libmcrypt4 2.5.8-3.1
ii nsca-client 2.9.1-2

nsca recommends no packages.

Versions of packages nsca suggests:
ii nagios-plugins 1.4.16-1
ii nagios-plugins-basic 1.4.16-1
pn nagios3 <none>

-- Configuration Files:
/etc/nsca.cfg changed [not included]

-- debconf information:
nsca/run-nsca-daemon:


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
0 new messages