nagiosmobile

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

nagiosmobile

Post by doneil326 »

hello, i have noticed that everytime i access the nagiosmobile ui its httpd process sits at 100% processing the requests and takes between 3-5 seconds to load a page. are there additional logs for this site to see what may be causing this?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagiosmobile

Post by lmiltchev »

Do you see any errors in the apache error log when accessing <http://ip address/nagiosmobile/>?

Code: Select all

tail -100 /var/log/httpd/error_log
What is the Nagios XI version that you are currently using? Are you using SSL or a proxy? RAM disk? Have you modified the "/etc/httpd/conf.d/nagiosmobile.conf" or any files under the "/usr/local/nagiosmobile/" directory in any way?

Run the following commands and show the output:

Code: Select all

uname -a
cat /etc/*release
/usr/local/nagios/bin/nagiostats|grep "Total Hosts"|awk '{ print $3 }'
/usr/local/nagios/bin/nagiostats|grep "Total Services"|awk '{ print $3 }'
Be sure to check out our Knowledgebase for helpful articles and solutions!
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: nagiosmobile

Post by doneil326 »

httpd_log
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:26:48 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon-precomposed.png
[Tue May 03 09:26:48 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon.png
[Tue May 03 09:26:50 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon-precomposed.png
[Tue May 03 09:26:50 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon.png
[Tue May 03 10:15:35 2016] [error] [client ] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi
[Tue May 03 10:15:35 2016] [error] [client ] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi
[Tue May 03 10:15:35 2016] [error] [client ] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi

uname -a
Linux 2.6.32-573.7.1.el6.x86_64 #1 SMP Thu Sep 10 13:42:16 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

NagiosXI 5.2.7

cat /etc/*release
cat /etc/*release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Red Hat Enterprise Linux Server release 6.7 (Santiago)

/usr/local/nagios/bin/nagiostats|grep "Total Hosts"|awk '{ print $3 }'
1234
/usr/local/nagios/bin/nagiostats|grep "Total Services"|awk '{ print $3 }'
8118

We are using ramdisk, we use SSL, we have not modified nagiosmobile or its conf
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosmobile

Post by tmcdonald »

Can you visit one of the hanging pages and then immediately run the tail -100 /var/log/httpd/error_log command once it finishes? We seem to have only gotten part of the output instead of the full 100 lines, and a good chunk of that is from the XI side of things, not the Mobile.
Former Nagios employee
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: nagiosmobile

Post by doneil326 »

this is all there was, there are no errors when i load the page. it is just quite slow.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagiosmobile

Post by lmiltchev »

To be honest with you, I never tested nagiosmobile with so many hosts/services. I don't run large XI instances on my test VMs.

What kind of phone are you using when accessing nagiosmobile? Do pages open slowly when you access nagiosmobile in a regular browser - Firefox, Chrome, etc.?

After page loads, can you view host/services fine? If not, post the "/usr/local/nagiosmobile/include.inc.php" on the forum.
Be sure to check out our Knowledgebase for helpful articles and solutions!
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: nagiosmobile

Post by doneil326 »

the login page comes up quickly, there is about a 5 seconds delay to load the main page after authentication, then to click on the critical/warning statuses it takes somewhere between 5-10 seconds to load the next page (i assume it is querying for the data). I use an iphone 6s, but this experience is the same from chrome on a desktop. i can view all of the data just fine, its just slow to move around and select different items.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: nagiosmobile

Post by Box293 »

doneil326 wrote:httpd_log
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:19:22 2016] [error] [client ] PHP Notice: Undefined variable: service in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2817, referer: https://nagiosxi/nagiosxi/includes/comp ... omemachine
[Tue May 03 09:26:48 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon-precomposed.png
[Tue May 03 09:26:48 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon.png
[Tue May 03 09:26:50 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon-precomposed.png
[Tue May 03 09:26:50 2016] [error] [client ] File does not exist: /var/www/html/apple-touch-icon.png
[Tue May 03 10:15:35 2016] [error] [client ] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi
[Tue May 03 10:15:35 2016] [error] [client ] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi
[Tue May 03 10:15:35 2016] [error] [client ] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1139, referer: https://nagiosxi/nagiosxi//includes/com ... t=nagiosxi

uname -a
Linux 2.6.32-573.7.1.el6.x86_64 #1 SMP Thu Sep 10 13:42:16 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

NagiosXI 5.2.7

cat /etc/*release
cat /etc/*release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Red Hat Enterprise Linux Server release 6.7 (Santiago)

/usr/local/nagios/bin/nagiostats|grep "Total Hosts"|awk '{ print $3 }'
1234
/usr/local/nagios/bin/nagiostats|grep "Total Services"|awk '{ print $3 }'
8118

We are using ramdisk, we use SSL, we have not modified nagiosmobile or its conf
referer: https://nagiosxi/nagiosxi/

is nagiosxi the actual address you use in your web browser?

Can you go to Admin > System Config > Manage System Config

What is in your "Program URL" and "External URL" fields?

Does you Program URL resolve to an internal IP address?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: nagiosmobile

Post by doneil326 »

https://nagiosxi.lifelock.com/nagiosxi/

i had commented out all specific data in the url in the previous post, this would have been the url in the actual error
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: nagiosmobile

Post by Box293 »

When logged into the XI server in an ssh session, does nagiosxi.lifelock.com resolve to an internal private IP address, or an external public facing IP address?

Code: Select all

host nagiosxi.lifelock.com
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked