New Nagios 4 installation will not start up

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.
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

Hi Guys,
for the past 9 years I have tried every single year to get Nagios up and running to no avail. I spend days and days every year trying to get it going before I eventually give up.
there always seems to be some problem with it.

so this is truly the final time I am putting my heart back into it again :(

I have installed a brand new version of Ubuntu 13.10 server edition.

I have followed this tutorial to the T.....

http://www.ubuntugeek.com/how-to-instal ... ander.html

apache is working fine, but when I try to start nagios I get the following error (Attached)

I honestly do not know what to call this problem, as I have trolled the web for an answer :(

Please help me.!!
Attachments
nagios_screenshot.jpg
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: New Nagios 4 installation will not start up

Post by sreinhardt »

Well let's start with the easy ones, where are your nagios binaries (/usr/bin/nagios ?) and where are your nagios configs(/etc/nagios?) What I would like to do is start with a config verification and move on from there.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

Re: New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

Hi,
The bins are in;
/usr/local/nagios

config's are in;
/usr/local/nagios/etc/nagios.cfg
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: New Nagios 4 installation will not start up

Post by slansing »

Lets verify your configuration files what is the output of:

Code: Select all

/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

Re: New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

cannot open main configuration file......error processing main config file...
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

Re: New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

but when I do a

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
I get
0 Warnings
0 Errors.


Is it my imagination or are all my Nagios directories all over the place like?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New Nagios 4 installation will not start up

Post by abrist »

Looks like you may have init script issues. Can you try starting nagios manually?

Code: Select all

/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

Re: New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

no errors came back when I done that....but still nothing is coming up in my browser.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: New Nagios 4 installation will not start up

Post by slansing »

Before we go further, I would like to recommend you use our quick install guide, and not a random one off the web, though I am sure it works fine. Since it sounds like for whatever reason you constantly have issues getting Nagios up and running in your environment, it might be a good idea to spool up a new VM or server, and BE SURE to follow the outlines we provide. Do not use anything other than a Fresh, clean, minimal Ubuntu installation "NO GUI, or anything like that."

http://assets.nagios.com/downloads/nagi ... Source.pdf
Bigpaddy_Irl
Posts: 31
Joined: Sun Oct 06, 2013 5:48 am

Re: New Nagios 4 installation will not start up

Post by Bigpaddy_Irl »

Hi, I did install a fresh install of 13.10 on a vm just for this type of occasion.
I will follow your guide and let ye know how I get on.

Cheers
Locked