Page 1 of 1

nsca-ng won't start on ubuntu 16 server

Posted: Thu Mar 28, 2019 4:02 am
by licondam
All;
I'm trying to install nsca-ng version 1.5 on an Ubuntu 16 server and I am able to manually start it at the command line like so:

/usr/local/nagios/bin/nsca-ng -c /usr/local/nagios/etc/nsca-ng.cfg -P /var/run/nsca-ng/nsca-ng.pid -s

However, when I try to start it using the systemd command, I am getting the following error message.

nsca-ng: [FATAL] Cannot set up group list for user nagios: Operation not permitted

I am using the following for the nsca-ng.service file:

[Unit]
Description=Monitoring Command Acceptor
Documentation=man:nsca-ng(8) man:nsca-ng.cfg(5)
Requires=nsca-ng.socket

[Service]
ExecStart=/usr/local/nagios/bin/nsca-ng -c /usr/local/nagios/etc/nsca-ng.cfg -P /var/run/nsca-ng/nsca-ng.pid -s
Type=notify
User=nagios
StandardError=syslog
NonBlocking=true
Restart=on-failure
# Don't use this with systemd < 207 (see Red Hat bug #982379):
WatchdogSec=30

[Install]
Also=nsca-ng.socket

Any insight at all would be greatly appreciated.
Thanks;

Re: nsca-ng won't start on ubuntu 16 server

Posted: Thu Mar 28, 2019 7:24 am
by scottwilkerson
We are not the authors of nsca-ng, I would suggest opening an issue on the projects Github page
https://github.com/weiss/nsca-ng/issues