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

Re: Can't acces Nagios web interface

Post by ThomasPrz »

Thanks a lot to help me bro ...

I have now this problem
Failed to start apache2.service: The name org.freedesktop.PolicyKit1 was not pro vided by any .service files
See system logs and 'systemctl status apache2.service' for details.


And details :

Code: Select all

inzeR@nagios:~$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-08-24 08:34:20 UTC; 9h ago
  Process: 452 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 505 (apache2)
    Tasks: 6 (limit: 19660)
   CGroup: /system.slice/apache2.service
           ├─505 /usr/sbin/apache2 -k start
           ├─596 /usr/sbin/apache2 -k start
           ├─597 /usr/sbin/apache2 -k start
           ├─598 /usr/sbin/apache2 -k start
           ├─599 /usr/sbin/apache2 -k start
           └─600 /usr/sbin/apache2 -k start
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 »

this looks like it is already running, maybe it just needs to be re-started?

Code: Select all

sudo systemctl restart apache2.service
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

be sure to use sudo at the beginning of the command
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 , there isn't error message with sudo systemctl start apache2.service now , but i always cannot access with web interface

I don't understand why , it's very strange , i'm tried to change different elements in sites-available and sites-enabled but doesn't works ...

Thanks a lot
Attachments
access nagios.PNG
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 are getting a timed out error, which could be a firewall issue, is port 80 open?

Also are their any errors in the apache error log?

Code: Select all

tail -50 /var/log/apache2/error.log
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 »

A lot of error message when i launch tail -50 /var/log/apache2/error.log
Attachments
error.PNG
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 »

Actually those are not error messages, those are just notices from when you restarted apache2
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 »

The port 80 is already open so i don't think the probleme comes from there
Attachments
80.PNG
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 »

Are you sure you have the correct IP? According to the last image your server is on 10.0.0.4 but you are connecting to 40.114.210.46
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 »

Yeah of course , i rent this server on Microsoft Azure and they give me this IP address , the VM is automatically config so for sur that's good
Locked