Nagios Not Running

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.
mcortada
Posts: 9
Joined: Mon Jan 19, 2015 11:04 am

Nagios Not Running

Post by mcortada »

Hi,

I am new to Nagios, I installed Nagios in a fresh Ubuntu 13.10 server but when access the web interface is show "Not Running", please refer to attached file.

I already read Nagios Core "Not Running" after new install but that didn't help.


I need help?

Thanks in advance
Attachments
nagios.docx
Refer to attached file
(48.53 KiB) Downloaded 528 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Not Running

Post by abrist »

Is nagios running?

Code: Select all

service nagios status
If not, start it:

Code: Select all

service nagios start
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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Not Running

Post by Box293 »

I have a guide for getting Nagios Core running on Ubuntu 13.10, it may have some steps which may help:

http://sites.box293.com/nagios/guides/i ... untu-13-10
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Not Running

Post by slansing »

Thanks for the link Box! OP, let us know if you need further help.
mcortada
Posts: 9
Joined: Mon Jan 19, 2015 11:04 am

Re: Nagios Not Running

Post by mcortada »

Hi team,

First of all thanks for your time and your reply. I was in a seminar that's why the delay.

Nagios is running:

jng@ubuntu:~$ service nagios status
nagios (pid 1027) is running...
jng@ubuntu:~$

I'm checking the link you shared Box to see if I missed something.

Myt
mcortada
Posts: 9
Joined: Mon Jan 19, 2015 11:04 am

Re: Nagios Not Running

Post by mcortada »

Hi

Going through Box steps, the make install-webconf command returned an error as follow:

/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file ‘/etc/httpd/conf.d/nagios.conf’: No such file or directory
Makefile:296: recipe for target 'install-webconf' failed
make: *** [install-webconf] Error 1

Then I typed:

mkdir /etc/httpd
mkdir /etc/httpd/conf.d
make install-webconf

Will this make any difference?

Is there something else I can check?

Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Not Running

Post by slansing »

Looks like you may have followed a rhel based compilation guide, you will probably want to follow either boxes guide from top to bottom to recompile, or this one:

http://assets.nagios.com/downloads/nagi ... Source.pdf
mcortada
Posts: 9
Joined: Mon Jan 19, 2015 11:04 am

Re: Nagios Not Running

Post by mcortada »

It workssssssssssssssss Thanksss Box293 your post it's complete.

I was missing:

Type iptables -I INPUT -p tcp --destination-port 80 -j ACCEPT and press Enter
Type apt-get install -y iptables-persistent and press Enter
Press Enter on Yes to save current IPv4 rules
Type a2enmod rewrite and press Enter
Type a2enmod cgi and press Enter
Type service apache2 restart and press Enter

I did it now and restart both services and it's workinggggggggggggggggg

Thanks one more time.

:D :D :D :D
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Not Running

Post by Box293 »

Excellent, glad to hear you got it working.

FYI, in my guide it uses this command which takes into account the correct directory.

Code: Select all

./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled 
/etc/apache2/sites-enabled or /etc/apache2/conf-available are both valid from what I understand.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mcortada
Posts: 9
Joined: Mon Jan 19, 2015 11:04 am

Re: Nagios Not Running

Post by mcortada »

Thanks

You made my day
Locked