[Reload] Job for nagios.service invalid

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
jfarnsworth
Posts: 11
Joined: Fri Oct 19, 2018 10:16 am

Re: [Reload] Job for nagios.service invalid

Post 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.
Attachments
nagios.txt
(8.05 KiB) Downloaded 197 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: [Reload] Job for nagios.service invalid

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfarnsworth
Posts: 11
Joined: Fri Oct 19, 2018 10:16 am

Re: [Reload] Job for nagios.service invalid

Post by jfarnsworth »

That did it, thank you so much for all your help!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: [Reload] Job for nagios.service invalid

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked