This bug seems to be a result of the last fix.

The pid file doesn't get created. The nagios-nrpe-server service runs as
nagios, and the permissions on /var/run are root:root 755.

This bug is extra frustrating, because the script says it stopped it or
restarted it. So you make a configuration change and think it should
take affect, but doesn't.


Error from /var/log/messages:
 Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges.

root@wgs32:/etc/apt/sources.list.d# ps ax | grep nrpe
 7317 pts/2    S+     0:00 grep nrpe
root@wgs32:/etc/apt/sources.list.d# /etc/init.d/nagios-nrpe-server start
 * Starting nagios-nrpe nagios-nrpe
   ...done.
root@wgs32:/etc/apt/sources.list.d# ps ax | grep nrpe
 7338 ?        Ss     0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
 7354 pts/2    R+     0:00 grep nrpe
root@wgs32:/etc/apt/sources.list.d# /etc/init.d/nagios-nrpe-server stop
 * Stopping nagios-nrpe nagios-nrpe
   ...done.
root@wgs32:/etc/apt/sources.list.d# ps ax | grep nrpe
 7338 ?        Ss     0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
 7373 pts/2    R+     0:00 grep nrpe

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883904

Title:
  nit.d script incorrectly assumes PID file --> can't stop service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/883904/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to