Page 1 of 2

Installation of Nagios Mobile

Posted: Thu Jan 11, 2018 7:56 am
by hoegh
Hi ,

I have installed Nagios Mobile on the Nagios Server.
The script executed successfully, but I am not able to access through the below link.
http://localhost/nagiosmobile
Kindly Suggest further procedure for this .

Thanks & Regards,
Neha Singh.

Re: Installation of Nagios Mobile

Posted: Thu Jan 11, 2018 11:27 am
by tmcdonald
Is this on Nagios XI or Nagios Core? Nagiosmobile comes standard with Nagios XI, so if you installed it over the top of an existing XI then it could introduce problems.

Can you please point to the URL where you got the installation package, as well as provide the steps you took to install?

Re: Installation of Nagios Mobile

Posted: Fri Jan 12, 2018 7:41 am
by hoegh
we are running on Nagios XI

Re: Installation of Nagios Mobile

Posted: Fri Jan 12, 2018 7:42 am
by hoegh
followed the steps as following link

https://assets.nagios.com/downloads/nag ... 1508830788

Re: Installation of Nagios Mobile

Posted: Fri Jan 12, 2018 7:47 am
by hoegh
nagiosXi is running in Linux 2.6

Re: Installation of Nagios Mobile

Posted: Fri Jan 12, 2018 7:56 am
by hoegh
last few lines in /var/log/httpd/error_log

[Fri Jan 12 11:32:27 2018] [notice] Digest: done
PHP Warning: Module 'apc' already loaded in Unknown on line 0
[Fri Jan 12 11:32:27 2018] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Fri Jan 12 11:36:35 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:47:33 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:47:35 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:47:43 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:47:47 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:48:09 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:48:12 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187, referer: http://10.202.21.19/nagiosmobile/
[Fri Jan 12 11:48:12 2018] [error] [client 10.202.17.35] PHP Notice: Undefined index: hosts in /usr/local/nagiosmobile/includes/displayfunctions.inc.php on line 320, referer: http://10.202.21.19/nagiosmobile/
[Fri Jan 12 11:48:12 2018] [error] [client 10.202.17.35] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosmobile/includes/displayfunctions.inc.php on line 320, referer: http://10.202.21.19/nagiosmobile/
[Fri Jan 12 11:52:36 2018] [error] [client 10.202.17.35] File does not exist: /var/www/html/favicon.ico
[Fri Jan 12 11:52:43 2018] [error] [client 10.202.17.35] PHP Warning: Variable passed to each() is not an array or object in /usr/local/nagiosmobile/includes/functions.inc.php on line 187
[Fri Jan 12 11:52:44 2018] [error] [client 10.202.17.35] File does not exist: /var/www/html/favicon.ico
[Fri Jan 12 12:20:30 2018] [error] [client 10.202.15.49] PHP Notice: Undefined variable: url_target in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 0, referer: http://10.202.21.19/nagiosxi//includes/ ... t=jaxdf001

Re: Installation of Nagios Mobile

Posted: Fri Jan 12, 2018 2:22 pm
by npolovenko
@hoegh, Nagiosmobile was already preinstalled with XI. I think you may have overridden some php files that were already there with the older ones. Do you have any XI backups that you could revert to?

Re: Installation of Nagios Mobile

Posted: Mon Jan 15, 2018 3:55 am
by hoegh
is there any ways to clear this error without restoring the old backup. we have the backup but it is before nagios upgrade and it is not good to go back to reverse the changes. we have not made any changes in php files.

Re: Installation of Nagios Mobile

Posted: Mon Jan 15, 2018 6:54 am
by hoegh
Hi,

We have followed the below steps for installing APC file on nagios server.
We have followed the steps provided in this URL:

https://www.tecmint.com/install-apc-alt ... os-fedora/

After Installing APC file, we are able to open the Nagios mobile link on desktop ,but not on Phone.
Kindly suggest if any configuration settings are required for phone.

Thanks & Regards,
Neha Singh.

Re: Installation of Nagios Mobile

Posted: Mon Jan 15, 2018 2:45 pm
by dwhitfield
Can you take a screenshot or picture of your phone when you go to http://10.202.21.19/nagiosmobile/ ?

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44

UPDATE: Profile shared with techs