I am new to Icinga2 (new to Monitoring in general) but I have been tasked to install and configure Icinga2 and Icinga2Web on a Ubuntu 18.04 System. I followed a Guide on how to do that and was successful in getting into IcingaWeb2. Now 2 weeks after setting that up I now get a “Page not Found” message when I try to access the login Page for IcingaWeb2. I did not make any changes to the System in the 2 weeks when I was not present and to my knowledge no one touched it so I am not sure what changed. Any help would be appreciated.
What web server are you running here? Apache, nginx or something else? Is it reverse proxied to php-fpm? If the services are up and running without any obvious issues, we’ll want to take a look at your config.
Thank you for the quick reply!
I am running Apache. I am not sure what you mean by reverse proxied to php-fpm but when I list all my running services it lists php7.1-fpm. Is that what you mean? What config should I take a look at?
Hm, do you have a link to the guide you went off of?
With “Page not found”, I would try restarting php-fpm and then Apache, then check your http access logs to see if you get a clue there. The documentation will quickly give me an idea of how you set it up though.
The config is in english so I can tell what’s going on. I didn’t notice the icingaweb2 package includes a default Apache config file because I’m an Nginx guy. Make sure you have a valid symlink from /etc/apache2/conf-available/icingaweb2.conf to /etc/apache2/conf-enabled/icingaweb2.conf.
So php-fpm is definitely serving it based on this and Apache is running a reverse proxy to it. If you’re still getting “Page not found” after restarting and verifying the symlink, look for the php-fpm log folder (not sure where it’ll be located on Ubuntu, try locate) and check for errors. If nothing’s there, we’ll want to look at the httpd logs.
I’m not sure what a symlink is and how I know whether mine is valid but I can show you screenshots of the two files you were pointing me to. Both look exactly the same and they look like this
Something I forgot to mention is that I had to downgrade php7.2 to php7.1 because I was getting an error when I first tried to open up icingaweb2
Change into /etc/apache2/conf-enabled and do ls -l . That’ll show you what the files in there are pointing to. If you don’t see icingaweb2.conf or it’s pointing somewhere that doesn’t exist, that means Apache isn’t even loading it.
Oh no. I cannot believe this. I am so sorry to take up someones time for this because of a typo. Thank you Blake for helping me and Thank you log1c for pointing out that mistake. I am seeing the login page now again. I’m going to be more careful next time