How in the world do I install Nagios Mobile?
I tried following the instructions listed here but they simply do not work. I can't run any such installer.
Btw I have Nagios 4.3.4 installed on Ubuntu 16.04 instead of CentOS.
Nagios Mobile
Nagios Mobile
Last edited by t3dus on Wed Sep 13, 2017 10:19 pm, edited 2 times in total.
Re: Nagios Mobile
Finally got the installer to run but it failed.
I compiled my orginal install of Nagios 4 from source so not sure why this failed.
It did move the files into /usr/local/nagiosmobile though
I compiled my orginal install of Nagios 4 from source so not sure why this failed.
Code: Select all
./INSTALL.php
Copying apache configuration file...
/bin/mv: cannot move 'nagiosmobile_apache.conf' to '/etc/httpd/conf.d/nagiosmobile.conf': No such file or directory
Creating web directory...
Copying files...
Cleaning up...
Restarting apache...
Restarting apache2 (via systemctl): apache2.service.
Checking for file locations...
Script Complete!
Code: Select all
/tmp/nagiosmobile# ls /usr/local
bin etc games include lib man nagios nagiosmobile sbin share src
root@Bart:/tmp/nagiosmobile# ls /usr/local/nagiosmobile
CHANGES class footer.inc.php header.inc.php include.inc.php includes index.php jquery.mobile-1.0 js nagiosmobile_apache.conf nagiosmobile.css nagios.png TODO.txt
Re: Nagios Mobile
Ended up editing the INSTALL.PHP file with the following
Changed the line below
To this but it failed
so I changed it again to the following
and now it succeeded
But if I visit my website at https://URLHERE/nagiosmobile I just get a blank page..
Still not quite sure what I did wrong.
Changed the line below
Code: Select all
define('APACHECONF',"/etc/httpd/conf.d");
Code: Select all
define('APACHECONF',"/etc/apache2/conf.d");
Code: Select all
define('APACHECONF',"/etc/apache2/");
Code: Select all
./INSTALL.php
Copying apache configuration file...
Creating web directory...
Copying files...
Cleaning up...
Restarting apache...
Restarting apache2 (via systemctl): apache2.service.
Checking for file locations...
Script Complete!
Still not quite sure what I did wrong.
Re: Nagios Mobile
The installer was written with CentOS and RHEL in mind I believe, hence httpd instead of apache2 and the different paths.
Regarding the blank page, what errors do you get in your Apache error logs? Also, did the proper configs get placed in your sites-available or in sites-enabled in your Apache config directory? You might need to enable the site first.
Regarding the blank page, what errors do you get in your Apache error logs? Also, did the proper configs get placed in your sites-available or in sites-enabled in your Apache config directory? You might need to enable the site first.
Former Nagios employee
Re: Nagios Mobile
ah your a genius. I had to run this command.tmcdonald wrote:The installer was written with CentOS and RHEL in mind I believe, hence httpd instead of apache2 and the different paths.
Regarding the blank page, what errors do you get in your Apache error logs? Also, did the proper configs get placed in your sites-available or in sites-enabled in your Apache config directory? You might need to enable the site first.
Code: Select all
:/etc/apache2/sites-available# a2ensite nagiosmobile.conf
Code: Select all
service apache2 reload
Last edited by t3dus on Thu Sep 14, 2017 3:37 pm, edited 1 time in total.