Nagios Core "Not Running" after new install

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
jgoo
Posts: 5
Joined: Wed Sep 24, 2014 8:20 pm

Nagios Core "Not Running" after new install

Post by jgoo »

Hi,

I just installed Nagios 4.0.8 on a freshly installed Fedora 20 linux server.
I followed the instructions here:
http://nagios.sourceforge.net/docs/3_0/ ... edora.html

But when I try to open up the web page for Nagios (http://localhost/nagios), it's giving me an error.
There is a red X that says "Not Running".

When I try to click on Hosts or Services, I get another error:
Error: Could not read object configuration data!

Verifying Permissions gives me an OK:
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check

I'm guessing that this is some sort of permissions error, but I don't have any clue what I've done wrong.
I'm not really that versed in Linux.

Can someone please help?

Thanks,
Justin
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Core "Not Running" after new install

Post by tmcdonald »

Is the nagios process running? Run the following from the command line and post the output:

Code: Select all

service nagios restart
Former Nagios employee
jgoo
Posts: 5
Joined: Wed Sep 24, 2014 8:20 pm

Re: Nagios Core "Not Running" after new install

Post by jgoo »

Yes, Nagios is started.

[root@localhost var]# service nagios restart
Restarting nagios (via systemctl): [ OK ]

Still doesn't work.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Core "Not Running" after new install

Post by Box293 »

Is SELinux enabled on your host? I know it can cause issues.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jgoo
Posts: 5
Joined: Wed Sep 24, 2014 8:20 pm

Re: Nagios Core "Not Running" after new install

Post by jgoo »

I did check the SELINUX. It was set to permissive mode.
jgoo
Posts: 5
Joined: Wed Sep 24, 2014 8:20 pm

Re: Nagios Core "Not Running" after new install

Post by jgoo »

Okay, my friend may have helped me solve the problem.

Apparently, it was running, but not running as an init script. He told me to look at this:
http://nagios.sourceforge.net/docs/3_0/startstop.html

I ran it, and the website shows Nagios running now.
Now, I just have to make sure that it starts upon restarting and see if it works.
jgoo
Posts: 5
Joined: Wed Sep 24, 2014 8:20 pm

Re: Nagios Core "Not Running" after new install

Post by jgoo »

Okay, Nagios was not starting on boot up.

That turned out to be because of SELINUX (since I didn't turn it off permanently).

So, it looks like it's working now. Thanks for your help.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Core "Not Running" after new install

Post by sreinhardt »

Thanks for letting us know its working!
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.
Locked