nagios will not start up

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
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

nagios will not start up

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios will not start up

Post by tgriep »

Did the nagios service start after following the guide in that link?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: nagios will not start up

Post by mfrycke »

no .. nagios whant startup
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios will not start up

Post by dwhitfield »

Please run through our ubuntu instructions at https://support.nagios.com/kb/article.php?id=96
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: nagios will not start up

Post 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
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: nagios will not start up

Post 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
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: nagios will not start up

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios will not start up

Post 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.
Locked