Page 2 of 2

Re: Nagios.Service start operation timed out. Terminating

Posted: Thu Sep 07, 2017 12:12 pm
by scottwilkerson
tastas wrote:Scott... you are a genius. That worked. Change the lock_file to /usr/local/nagios/var/run/nagios.pid worked. Just curious, does the nagios.pid file have to be in a particular location?

Thank you so much Scott.

-David
It has to match the location in your systemd service file, which in your case was:
tastas wrote:PIDFile=/usr/local/nagios/var/run/nagios.pid
Additionally, it needs to be in a location that is writable by the nagios user and systemd services. I don't know all the specifics but some locations are restricted on different systems on where systemd can write to.