Page 2 of 2

Re: [Reload] Job for nagios.service invalid

Posted: Mon Nov 12, 2018 12:54 pm
by jfarnsworth
Here you go, had to rename the file from "nagios" to "nagios.txt" since the attachment function doesn't like it not having an extension.

Re: [Reload] Job for nagios.service invalid

Posted: Mon Nov 12, 2018 2:00 pm
by tgriep
The nagios.lock file location in the /etc/init.d/nagios file

Code: Select all

NagiosRunFile=/run/nagios.lock
is not the same location from the /usr/local/nagios/etc/nagios.cfg file.

Code: Select all

lock_file=/usr/local/nagios/var/nagios.lock

Make sure that the nagios.lock file in both of the config files are the same and that the nagios user can create the files in that folder.
Then kill off all of the nagios processes if there are any running and see if the scripts runs after that.

Re: [Reload] Job for nagios.service invalid

Posted: Mon Nov 12, 2018 2:37 pm
by jfarnsworth
That did it, thank you so much for all your help!

Re: [Reload] Job for nagios.service invalid

Posted: Mon Nov 12, 2018 2:43 pm
by tgriep
Your welcome. Glad to help. I'l lock the post for you but feel free to open a new one in the future if needed.