Page 1 of 1

Nagios and Wordpress

Posted: Fri Mar 15, 2019 2:28 pm
by jonno117
Good Evening,

Little bit of a dilemma I have. I'm currently using a free hosted website with the company I work for and no issues with the server itself. I was running a Wordpress based website using LAMP (obviously) and was told I needed some sort of monitoring setup as part of the teaching and learning I'm doing for other members of the team. I chose Nagios as used it in previous roles etc but it doesn't seem to like installing alongside Wordpress. It doesn't overwrite it just puts itself at the top layer and I'm not sure how to switch it that it uses the Wordpress site and not the Nagios login using the main website address.

Any help would be much appreciated - not even sure you can run a webserver alongside Nagios to be honest but worth a shout just in case someone has got this working.

P.S. it might be worth noting I still would like to be able to get to the monitoring by visiting https://website/nagiosxi but don't want it to show when visiting https://website if you get me :D

Re: Nagios and Wordpress

Posted: Fri Mar 15, 2019 2:38 pm
by cdienger
XI installs /var/www/html/index.php which will direct users to https://website/nagiosxi. You could modify or move this file as needed and should still be able to go to https://website/nagiosxi

Re: Nagios and Wordpress

Posted: Sat Mar 16, 2019 1:41 pm
by jonno117
Awesome!

Didn't noticed it renamed the Wordpress index/php to index.php.old.
Basically just moved the new index.php which was for nagios to a new directory and renamed the Wordpress index.php.old back to index.php, ran a repair on the database for Nagios and now everything is working as I needed.

Thank you so much for your help cdienger
cdienger wrote:XI installs /var/www/html/index.php which will direct users to https://website/nagiosxi. You could modify or move this file as needed and should still be able to go to https://website/nagiosxi
:D

Re: Nagios and Wordpress

Posted: Mon Mar 18, 2019 4:01 pm
by cdienger
Glad to hear it worked for you!