Page 1 of 1

nagiosmobile

Posted: Tue May 03, 2016 1:56 am
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?

Re: nagiosmobile

Posted: Tue May 03, 2016 8:37 am
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 }'

Re: nagiosmobile

Posted: Tue May 03, 2016 12:24 pm
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

Re: nagiosmobile

Posted: Tue May 03, 2016 4:06 pm
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.

Re: nagiosmobile

Posted: Tue May 03, 2016 11:32 pm
by doneil326
this is all there was, there are no errors when i load the page. it is just quite slow.

Re: nagiosmobile

Posted: Wed May 04, 2016 9:23 am
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.

Re: nagiosmobile

Posted: Wed May 04, 2016 4:44 pm
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.

Re: nagiosmobile

Posted: Wed May 04, 2016 4:46 pm
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?

Re: nagiosmobile

Posted: Wed May 04, 2016 4:56 pm
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

Re: nagiosmobile

Posted: Wed May 04, 2016 6:41 pm
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