Page 1 of 1

nagios will not start up

Posted: Fri Mar 24, 2017 9:23 am
by mfrycke
Hi
I have install a unbutu 16.04.2 server and nagios 4.2.4
i have finally come to the end with the istallation when i try to start up nagios
service start nagios
--it ask for the password--
Failed to start nagios service unit nagios.service was not found.

have follow this guide
https://www.howtoforge.com/tutorial/ubuntu-nagios/
and try this

Now edit the Nagios file:
vim /etc/init.d/nagios


DESC="Nagios"
NAME=nagios
DAEMON=/usr/local/nagios/bin/$NAME
DAEMON_ARGS="-d /usr/local/nagios/etc/nagios.cfg"
PIDFILE=/usr/local/nagios/var/$NAME.lock
Make it executable and start Nagios:
chmod +x /etc/init.d/nagios
service apache2 restart
servuce nagios start

Re: nagios will not start up

Posted: Fri Mar 24, 2017 2:11 pm
by tgriep
Did the nagios service start after following the guide in that link?

Re: nagios will not start up

Posted: Sat Mar 25, 2017 12:25 am
by mfrycke
no .. nagios whant startup

Re: nagios will not start up

Posted: Sun Mar 26, 2017 8:08 pm
by dwhitfield
Please run through our ubuntu instructions at https://support.nagios.com/kb/article.php?id=96

Re: nagios will not start up

Posted: Mon Mar 27, 2017 2:16 am
by mfrycke
now i can start up nagios/apache 2 but when i try to open the url http://x.x.x.x/nagios
Not Found

The requested URL /nagios:80 was not found on this server.

Apache/2.4.18 (Ubuntu) Server at 10.10.1.134 Port 80

Re: nagios will not start up

Posted: Mon Mar 27, 2017 3:59 am
by mfrycke
when i write "sudo systemctl1 start nagios"
it just accept the command.. but when i write /etc/init.d/nagios status it answare * nagios is not running

Re: nagios will not start up

Posted: Mon Mar 27, 2017 5:02 am
by mfrycke
now i have reinstall servern witvh ubuntu 14 an follow the guide u whant.

But when i come ti
Downloading the Source
follow ubuntu 14.
Ubuntu

cd /tmp/nagioscore-nagios-4.3.1/
ubuntu answare -bash: cd /tmp/nagioscore-nagios-4.3.1/: No such file or directory :evil:


I have not follow


sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
sudo make all

Re: nagios will not start up

Posted: Mon Mar 27, 2017 9:18 am
by dwhitfield
mfrycke wrote: cd /tmp/nagioscore-nagios-4.3.1/
What's the output of ls -la /tmp? My guess is you just missed the extraction step...or the extraction failed for some reason.