Can't acces Nagios web interface

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.
ThomasPrz
Posts: 16
Joined: Fri Jul 06, 2018 5:46 am

Can't acces Nagios web interface

Post 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
Attachments
Nagios 40.114.PNG
Help.PNG
User avatar
Pitone_Maledetto
Posts: 69
Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom

Re: Can't acces Nagios web interface

Post 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
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't acces Nagios web interface

Post by scottwilkerson »

Yes, the above, also, is httpd running

Code: Select all

service httpd status
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ThomasPrz
Posts: 16
Joined: Fri Jul 06, 2018 5:46 am

Re: Can't acces Nagios web interface

Post 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
ThomasPrz
Posts: 16
Joined: Fri Jul 06, 2018 5:46 am

Re: Can't acces Nagios web interface

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't acces Nagios web interface

Post by scottwilkerson »

What operating system is this?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ThomasPrz
Posts: 16
Joined: Fri Jul 06, 2018 5:46 am

Re: Can't acces Nagios web interface

Post by ThomasPrz »

I use Debian 9.0
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't acces Nagios web interface

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ThomasPrz
Posts: 16
Joined: Fri Jul 06, 2018 5:46 am

Re: Can't acces Nagios web interface

Post 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/...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't acces Nagios web interface

Post by scottwilkerson »

What does this show?

Code: Select all

sudo systemctl start apache2.service
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked