nagios3 fails to start

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.
Locked
stcoyle
Posts: 4
Joined: Tue Jan 24, 2017 3:15 pm

nagios3 fails to start

Post by stcoyle »

so i have a nagios3 server that im migrating to a new box.
i installed everything and it worked. but then i migrated the cfg files over and now it fails to start up here is what i get

nagios3.service - Nagios Core Monitoring Daemon
Loaded: loaded (/etc/systemd/system/nagios3.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2017-01-24 15:12:02 EST; 40s ago
Process: 5120 ExecStart=/usr/lib/systemd/scripts/nagios3 start (code=exited, status=203/EXEC)

Jan 24 15:12:02 GAMES systemd[1]: Stopped Nagios Core Monitoring Daemon.
Jan 24 15:12:02 GAMES systemd[1]: Starting Nagios Core Monitoring Daemon...
Jan 24 15:12:02 GAMES systemd[1]: nagios3.service: Control process exited, code=exited status=203
Jan 24 15:12:02 GAMES systemd[1]: Failed to start Nagios Core Monitoring Daemon.
Jan 24 15:12:02 GAMES systemd[1]: nagios3.service: Unit entered failed state.
Jan 24 15:12:02 GAMES systemd[1]: nagios3.service: Failed with result 'exit-code'.





when i do nagios3 -v /etc/nagios3/nagios.cfg
i get 3 warnings about hosts that have no services with them. but then it says

Total Warnings: 3
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

any ideas? thanks in advance!
stcoyle
Posts: 4
Joined: Tue Jan 24, 2017 3:15 pm

Re: nagios3 fails to start

Post by stcoyle »

well answered my own question.

in my attempt to install something i made a custom .service file that it was looking at. and in that file it was trying to execute scripts that didnt exist. remove the custom .service file and we are in business.


thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios3 fails to start

Post by dwhitfield »

How are you doing the migration? Was this compiled from source or installed via repo? I would suggest compiling from source. It's pretty simple, although it will make your migration more complicated if you previously installed from a repo: https://support.nagios.com/kb/article.php?id=96

What OS/version are you moving to and from?

Since you are migrating, is there any reason you are moving to Nagios 4? https://assets.nagios.com/downloads/nag ... ading.html
stcoyle
Posts: 4
Joined: Tue Jan 24, 2017 3:15 pm

Re: nagios3 fails to start

Post by stcoyle »

dwhitfield wrote:How are you doing the migration? Was this compiled from source or installed via repo? I would suggest compiling from source. It's pretty simple, although it will make your migration more complicated if you previously installed from a repo: https://support.nagios.com/kb/article.php?id=96

What OS/version are you moving to and from?

Since you are migrating, is there any reason you are moving to Nagios 4? https://assets.nagios.com/downloads/nag ... ading.html

Ubuntu 16.04 to another box of the same OS i just used the apt-get to install nagios. is there a way to upgrade to 4 from an apt-get install?

i tried the upgrade method but it still has me on 3.5.1 its no big deal really its just used to monitor if a group of websites are up or down.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios3 fails to start

Post by dwhitfield »

3.5.1 is what they have in the repos. It works, but it has old bugs and fewer features. We are looking to higher more devs (https://www.nagios.com/careers/) which should mean we would have the ability to maintain packages, but unfortunately we are unable to do that now. If you know anyone in Minnesota, send them our way!

From your second post, it looks like you are good to go. Should I lock this up?
stcoyle
Posts: 4
Joined: Tue Jan 24, 2017 3:15 pm

Re: nagios3 fails to start

Post by stcoyle »

dwhitfield wrote:3.5.1 is what they have in the repos. It works, but it has old bugs and fewer features. We are looking to higher more devs (https://www.nagios.com/careers/) which should mean we would have the ability to maintain packages, but unfortunately we are unable to do that now. If you know anyone in Minnesota, send them our way!

From your second post, it looks like you are good to go. Should I lock this up?


yup its alive and kicking go ahead and lock it.

thanks so much :)
Locked