Nagios Mobile

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios Mobile

Postby t3dus » Wed Sep 13, 2017 9:58 pm

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.
Last edited by t3dus on Wed Sep 13, 2017 10:19 pm, edited 2 times in total.
User avatar
t3dus
 
Posts: 147
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA

Re: Nagios Mobile

Postby t3dus » Wed Sep 13, 2017 10:14 pm

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
User avatar
t3dus
 
Posts: 147
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA

Re: Nagios Mobile

Postby t3dus » Wed Sep 13, 2017 10:29 pm

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.
User avatar
t3dus
 
Posts: 147
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA

Re: Nagios Mobile

Postby tmcdonald » Thu Sep 14, 2017 1:16 pm

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.
Former Nagios employee
tmcdonald
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Mobile

Postby t3dus » Thu Sep 14, 2017 3:17 pm

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
Code: Select all
service apache2 reload
Last edited by t3dus on Thu Sep 14, 2017 3:37 pm, edited 1 time in total.
User avatar
t3dus
 
Posts: 147
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA

Re: Nagios Mobile

Postby tmcdonald » Thu Sep 14, 2017 3:32 pm

Great to hear it! Mind if I close this thread up?
Former Nagios employee
tmcdonald
 
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Mobile

Postby t3dus » Thu Sep 14, 2017 3:36 pm

Go ahead and close it. Thanks.
User avatar
t3dus
 
Posts: 147
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA


Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 12 guests