Installation of Nagios Mobile

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Installation of Nagios Mobile

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

Re: Installation of Nagios Mobile

Post 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?
Former Nagios employee
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post by hoegh »

we are running on Nagios XI
Thanks
Höegh
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post by hoegh »

followed the steps as following link

https://assets.nagios.com/downloads/nag ... 1508830788
Thanks
Höegh
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post by hoegh »

nagiosXi is running in Linux 2.6
Thanks
Höegh
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post 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
Thanks
Höegh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Installation of Nagios Mobile

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post 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.
Thanks
Höegh
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Installation of Nagios Mobile

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Installation of Nagios Mobile

Post 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
Last edited by dwhitfield on Tue Jan 16, 2018 12:56 pm, edited 1 time in total.
Reason: pm received
Locked