Page 2 of 4

Re: Can't acces Nagios web interface

Posted: Fri Aug 24, 2018 12:37 pm
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

Re: Can't acces Nagios web interface

Posted: Fri Aug 24, 2018 12:40 pm
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

Re: Can't acces Nagios web interface

Posted: Fri Aug 24, 2018 12:41 pm
by scottwilkerson
be sure to use sudo at the beginning of the command

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 3:34 am
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

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 8:00 am
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

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 9:49 am
by ThomasPrz
A lot of error message when i launch tail -50 /var/log/apache2/error.log

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 9:51 am
by scottwilkerson
Actually those are not error messages, those are just notices from when you restarted apache2

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 9:58 am
by ThomasPrz
The port 80 is already open so i don't think the probleme comes from there

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 10:38 am
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

Re: Can't acces Nagios web interface

Posted: Mon Aug 27, 2018 12:06 pm
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