Page 1 of 1
Nagios Mobile
Posted: Wed Sep 13, 2017 9:58 pm
by t3dus
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.
Re: Nagios Mobile
Posted: Wed Sep 13, 2017 10:14 pm
by t3dus
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.
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!
It did move the files into /usr/local/nagiosmobile though
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
Posted: Wed Sep 13, 2017 10:29 pm
by t3dus
Ended up editing the INSTALL.PHP file with the following
Changed the line below
Code: Select all
define('APACHECONF',"/etc/httpd/conf.d");
To this but it failed
Code: Select all
define('APACHECONF',"/etc/apache2/conf.d");
so I changed it again to the following
Code: Select all
define('APACHECONF',"/etc/apache2/");
and now it succeeded
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!
But if I visit my website at
https://URLHERE/nagiosmobile I just get a blank page..
Still not quite sure what I did wrong.
Re: Nagios Mobile
Posted: Thu Sep 14, 2017 1:16 pm
by tmcdonald
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.
Re: Nagios Mobile
Posted: Thu Sep 14, 2017 3:17 pm
by t3dus
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.
ah your a genius. I had to run this command.
Code: Select all
:/etc/apache2/sites-available# a2ensite nagiosmobile.conf
and then restart apache2
Re: Nagios Mobile
Posted: Thu Sep 14, 2017 3:32 pm
by tmcdonald
Great to hear it! Mind if I close this thread up?
Re: Nagios Mobile
Posted: Thu Sep 14, 2017 3:36 pm
by t3dus
Go ahead and close it. Thanks.