Page 1 of 1

nagios3 fails to start

Posted: Tue Jan 24, 2017 3:23 pm
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!

Re: nagios3 fails to start

Posted: Tue Jan 24, 2017 3:34 pm
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!

Re: nagios3 fails to start

Posted: Tue Jan 24, 2017 3:36 pm
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

Re: nagios3 fails to start

Posted: Wed Jan 25, 2017 10:55 am
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.

Re: nagios3 fails to start

Posted: Wed Jan 25, 2017 11:03 am
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?

Re: nagios3 fails to start

Posted: Wed Jan 25, 2017 11:43 am
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 :)