Page 1 of 2
Nagios Not Running
Posted: Mon Jan 19, 2015 1:39 pm
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
Re: Nagios Not Running
Posted: Mon Jan 19, 2015 4:17 pm
by abrist
Is nagios running?
If not, start it:
Re: Nagios Not Running
Posted: Mon Jan 19, 2015 7:40 pm
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
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 10:43 am
by slansing
Thanks for the link Box! OP, let us know if you need further help.
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 1:54 pm
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
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 4:02 pm
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
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 4:16 pm
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
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 4:39 pm
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.

Re: Nagios Not Running
Posted: Tue Jan 20, 2015 4:48 pm
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.
Re: Nagios Not Running
Posted: Tue Jan 20, 2015 4:52 pm
by mcortada
Thanks
You made my day