Page 1 of 4

Can't acces Nagios web interface

Posted: Thu Jul 26, 2018 4:44 am
by ThomasPrz
Hello everybody,

After few weeks to install Nagios on my server Microsoft Azure, It finally works when i check : service nagios status
But i don't understand why i can't access on my web interface ...
Maybe an Apache 2 sites-available ? How can i check my log because Nagios seems 'works' ..

Thanks you a lot , sorry for my english

Re: Can't acces Nagios web interface

Posted: Thu Jul 26, 2018 6:14 am
by Pitone_Maledetto
Hi Thomas,
please share your nagios apache configuration under /etc/apache2/sites-enabled/

Moreover have you looked the error/access logs under /var/log/apache2/ for clues?
Regards

Re: Can't acces Nagios web interface

Posted: Thu Jul 26, 2018 7:05 am
by scottwilkerson
Yes, the above, also, is httpd running

Code: Select all

service httpd status

Re: Can't acces Nagios web interface

Posted: Thu Aug 23, 2018 3:22 am
by ThomasPrz
Hi

Thanks you for your reply
About : service httpd status
I have this problem : Unit httpd.service could not be found.
But i install Apache2 and it works , i don't know why i have this problem. I looked on internet to fix and install only httpd service but i don't find nothing :/

Thanks you all

Re: Can't acces Nagios web interface

Posted: Thu Aug 23, 2018 3:27 am
by ThomasPrz
Hello guys thanks for you reply

I have a lotof problem and don't know how fix them.
I tried the command service https status and the reply

root@nagios:/var/log/apache2# Unit httpd.service could not be found.

My apache installation is correct but there isn't the httpd service strange ..


And for my nagios apache configuration under /etc/apache2/sites-enabled/
I have 3 different file :
- 000-default.conf
- nagios.conf
- nagios4.conf

Thanks you so much

Re: Can't acces Nagios web interface

Posted: Thu Aug 23, 2018 7:25 am
by scottwilkerson
What operating system is this?

Re: Can't acces Nagios web interface

Posted: Thu Aug 23, 2018 12:35 pm
by ThomasPrz
I use Debian 9.0
Thanks

Re: Can't acces Nagios web interface

Posted: Thu Aug 23, 2018 2:32 pm
by scottwilkerson
you should be able to install apache with the following

Code: Select all

sudo apt install apache2
You are also going to need php if it is not installed

Code: Select all

sudo apt install php

Re: Can't acces Nagios web interface

Posted: Fri Aug 24, 2018 2:59 am
by ThomasPrz
Thanks a lot but i've already install Apache2 , but httpd is not, it's very strange .

I can access at Apache2 by cd /etc/apache2/...

Re: Can't acces Nagios web interface

Posted: Fri Aug 24, 2018 8:08 am
by scottwilkerson
What does this show?

Code: Select all

sudo systemctl start apache2.service