Page 1 of 1

Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 12:24 pm
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

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 12:31 pm
by tmcdonald
Is the nagios process running? Run the following from the command line and post the output:

Code: Select all

service nagios restart

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 2:35 pm
by jgoo
Yes, Nagios is started.

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

Still doesn't work.

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 3:24 pm
by Box293
Is SELinux enabled on your host? I know it can cause issues.

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 3:27 pm
by jgoo
I did check the SELINUX. It was set to permissive mode.

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 3:29 pm
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.

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 3:45 pm
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.

Re: Nagios Core "Not Running" after new install

Posted: Thu Sep 25, 2014 4:12 pm
by sreinhardt
Thanks for letting us know its working!