Gui update window is blank

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Gui update window is blank

Post by tmattingly »

For the last couple of releases when I click on get update, the window is blank. (sidenote: Proxies are turned off on Nagios so no proxies required). What am I missing to update through the gui?

What I noticed later after posting this is that there are two buttons that blink for only a moment... When you click on 'check for updates' (under the Admin panel) A blue button 'Check for updates now' and a green button 'Upgrade to latest version'. Any ideas? I've cleared cache and tried both in IE and Chrome to no success. :roll:
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Gui update window is blank

Post by rkennedy »

Could you post these logs for us to review? It could be a permission issue somewhere -

Code: Select all

/var/log/httpd/error_log
/var/log/httpd/ssl_error_log
/var/log/httpd/access_log
/var/log/httpd/ssl_access_log
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Gui update window is blank

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Can you post the logs that @rkennedy requested, or did the issue resolve itself?
Former Nagios employee
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Re: Gui update window is blank

Post by tmattingly »

Could you post me instructions on how to dump the logs?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Gui update window is blank

Post by dwhitfield »

Try an upgrade and then immediately run tail /var/log/httpd/*_log. Then just copy and past the output into individual code blocks for each log (or one big code block).

You can create the code block using the "Code" button above the input window. It's best to press the "Code" button first, otherwise you'll have to get rid of the end of the block and then put it in the proper place.
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Re: Gui update window is blank

Post by tmattingly »

Its pretty short...

login as: root
[email protected]'s password:
Last login: Wed Dec 14 12:09:07 2016 from fai1058623.bhs.bannerhealth.com
[root@fai0nagiosxi ~]# tail /var/log/httpd/*_log
==> /var/log/httpd/access_log <==
127.0.0.1 - - [01/Mar/2017:12:59:24 -0900] "POST /nagiosxi/backend/ HTTP/1.1" 200 695 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
10.41.3.207 - - [01/Mar/2017:12:59:24 -0900] "GET /nagiosxi/admin/updates.php?&= HTTP/1.1" 200 27749 "https://fai0nagiosxi.bhs.bannerhealth.c ... pdates.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.41.3.207 - - [01/Mar/2017:12:59:24 -0900] "GET /nagiosxi/ajaxhelper.php?cmd=getusermeta&opts=view_rotation_enabled&nsp=12b5658ee3bfbe0af9cad724e98037f9ab54f6eed97c9cb154914d19f10a7836 HTTP/1.1" 200 1 "https://fai0nagiosxi.bhs.bannerhealth.c ... pdates.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.41.3.207 - - [01/Mar/2017:12:59:25 -0900] "GET /nagiosxi/ajaxhelper.php?cmd=getusermeta&opts=view_rotation_enabled&nsp=12b5658ee3bfbe0af9cad724e98037f9ab54f6eed97c9cb154914d19f10a7836 HTTP/1.1" 200 1 "https://fai0nagiosxi.bhs.bannerhealth.c ... tes.php?&=" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [01/Mar/2017:12:59:25 -0900] "POST /nagiosxi/backend/ HTTP/1.1" 200 1593 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
127.0.0.1 - - [01/Mar/2017:12:59:25 -0900] "POST /nagiosxi/backend/ HTTP/1.1" 200 1593 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
10.41.3.207 - - [01/Mar/2017:12:59:25 -0900] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=12b5658ee3bfbe0af9cad724e98037f9ab54f6eed97c9cb154914d19f10a7836 HTTP/1.1" 200 1610 "https://fai0nagiosxi.bhs.bannerhealth.c ... pdates.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.41.3.207 - - [01/Mar/2017:12:59:25 -0900] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_tray_alert_html%22%2C%22args%22%3A%22%22%7D&nsp=12b5658ee3bfbe0af9cad724e98037f9ab54f6eed97c9cb154914d19f10a7836 HTTP/1.1" 200 1183 "https://fai0nagiosxi.bhs.bannerhealth.c ... pdates.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.41.3.207 - - [01/Mar/2017:12:59:25 -0900] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_available_updates_html%22%2C%22args%22%3A%22%22%7D&nsp=12b5658ee3bfbe0af9cad724e98037f9ab54f6eed97c9cb154914d19f10a7836 HTTP/1.1" 200 753 "https://fai0nagiosxi.bhs.bannerhealth.c ... tes.php?&=" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [01/Mar/2017:12:59:42 -0900] "POST /nagiosxi/backend/ HTTP/1.1" 200 815 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"

==> /var/log/httpd/error_log <==
[Sun Feb 26 03:25:02 2017] [notice] Digest: done
[Sun Feb 26 03:25:02 2017] [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
[Tue Feb 28 11:35:34 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Tue Feb 28 11:35:35 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Tue Feb 28 11:35:35 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Tue Feb 28 12:14:02 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Tue Feb 28 12:14:02 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Tue Feb 28 12:14:02 2017] [error] [client 10.41.16.130] File does not exist: /var/www/html/sdk
[Wed Mar 01 12:57:07 2017] [error] [client 10.41.3.207] PHP Warning: ldap_bind(): Unable to bind to server: Invalid credentials in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/adLDAP.php on line 714, referer: https://fai0nagiosxi.bhs.bannerhealth.c ... f&noauth=1
[Wed Mar 01 12:59:25 2017] [error] [client 10.41.3.207] PHP Warning: file_get_contents(/usr/local/nagiosxi/tmp/upgrade.log): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/admin/updates.php on line 548, referer: https://fai0nagiosxi.bhs.bannerhealth.c ... pdates.php

==> /var/log/httpd/ssl_access_log <==

==> /var/log/httpd/ssl_error_log <==

==> /var/log/httpd/ssl_request_log <==
[root@fai0nagiosxi ~]#
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Gui update window is blank

Post by dwhitfield »

What's the output of ll /usr/local/nagiosxi/html/admin/?

It should look something like the following:

Code: Select all

[root@sender bulkmodifications]# ll /usr/local/nagiosxi/html/admin/
total 804
-rwxr-xr-x 1 nagios nagios  37849 Feb 17 13:57 activate.php
-rw-r--r-- 1 nagios nagios   4148 Feb 17 13:57 ajaxterm.php
-rwxr-xr-x 1 nagios nagios  28742 Feb 17 13:57 auditlog.php
-rwxr-xr-x 1 nagios nagios   5869 Feb 17 13:57 autologin.php
-rwxr-xr-x 1 nagios nagios  29891 Feb 17 13:57 components.php
-rwxr-xr-x 1 nagios nagios   5961 Feb 17 13:57 configpermscheck.php
-rwxr-xr-x 1 nagios nagios  22066 Feb 17 13:57 configwizards.php
-rwxr-xr-x 1 nagios nagios  18483 Feb 17 13:57 coreconfigsnapshots.php
-rwxr-xr-x 1 nagios nagios   8433 Feb 17 13:57 credentials.php
-rwxr-xr-x 1 nagios nagios  10967 Feb 17 13:57 dashlets.php
-rwxr-xr-x 1 nagios nagios   2044 Feb 17 13:57 datatransfer.php
-rw-r--r-- 1 nagios nagios  98405 Feb 17 13:57 deadpool.php
-rwxr-xr-x 1 nagios nagios  14074 Feb 17 13:57 dtinbound.php
-rwxr-xr-x 1 nagios nagios  20857 Feb 17 13:57 dtoutbound.php
-rwxr-xr-x 1 nagios nagios  50163 Feb 17 13:57 globalconfig.php
-rwxr-xr-x 1 nagios nagios  11587 Feb 17 13:57 graphtemplates.php
-rwxr-xr-x 1 nagios nagios   1200 Feb 17 13:57 index.php
-rwxr-xr-x 1 nagios nagios  61177 Feb 17 13:57 license.php
-rwxr-xr-x 1 nagios nagios  10212 Feb 17 13:57 mailsettings.php
-rwxr-xr-x 1 nagios nagios   1744 Feb 17 13:57 main.php
-rwxr-xr-x 1 nagios nagios  15231 Feb 17 13:57 mibs.php
-rwxr-xr-x 1 nagios nagios  12800 Feb 17 13:57 missingobjects.php
-rwxr-xr-x 1 nagios nagios   6764 Feb 17 13:57 mobilecarriers.php
-rwxr-xr-x 1 nagios nagios   9235 Feb 17 13:57 monitoringplugins.php
-rwxr-xr-x 1 nagios nagios  40248 Feb 17 13:57 performance.php
-rwxr-xr-x 1 nagios nagios   2429 Feb 17 13:57 sysstat.php
-rwxr-xr-x 1 nagios nagios   3283 Feb 17 13:57 testemail.php
-rwxr-xr-x 1 nagios nagios 135761 Feb 17 13:57 updates.php
-rwxr-xr-x 1 nagios nagios  82618 Feb 17 13:57 users.php

tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Re: Gui update window is blank

Post by tmattingly »

[root@fai0nagiosxi ~]# ll /usr/local/nagiosxi/html/admin/
total 800
-rwxr-x---. 1 nagios nagios 37760 Nov 28 14:20 activate.php
-rw-r----- 1 nagios nagios 4156 Nov 28 14:20 ajaxterm.php
-rwxr-x---. 1 nagios nagios 28750 Nov 28 14:20 auditlog.php
-rwxr-x---. 1 nagios nagios 5867 Nov 28 14:20 autologin.php
-rwxr-x---. 1 nagios nagios 29899 Nov 28 14:20 components.php
-rwxr-x---. 1 nagios nagios 5969 Nov 28 14:20 configpermscheck.php
-rwxr-x---. 1 nagios nagios 22066 Nov 28 14:20 configwizards.php
-rwxr-x---. 1 nagios nagios 18483 Nov 28 14:20 coreconfigsnapshots.php
-rwxr-x---. 1 nagios nagios 8431 Nov 28 14:20 credentials.php
-rwxr-x---. 1 nagios nagios 10975 Nov 28 14:20 dashlets.php
-rwxr-x---. 1 nagios nagios 2053 Nov 28 14:20 datatransfer.php
-rwxr-x--- 1 nagios nagios 98548 Nov 28 14:20 deadpool.php
-rwxr-x---. 1 nagios nagios 14063 Nov 28 14:20 dtinbound.php
-rwxr-x---. 1 nagios nagios 20855 Nov 28 14:20 dtoutbound.php
-rwxr-x---. 1 nagios nagios 50153 Nov 28 14:20 globalconfig.php
-rwxr-x---. 1 nagios nagios 11653 Nov 28 14:20 graphtemplates.php
-rwxr-x---. 1 nagios nagios 1210 Nov 28 14:20 index.php
-rwxr-x---. 1 nagios nagios 55540 Nov 28 14:20 license.php
-rwxr-x---. 1 nagios nagios 10206 Nov 28 14:20 mailsettings.php
-rwxr-x---. 1 nagios nagios 1755 Nov 28 14:20 main.php
-rwxr-x---. 1 nagios nagios 15218 Nov 28 14:20 mibs.php
-rwxr-x---. 1 nagios nagios 12859 Nov 28 14:20 missingobjects.php
-rwxr-x---. 1 nagios nagios 6762 Nov 28 14:20 mobilecarriers.php
-rwxr-x---. 1 nagios nagios 9243 Nov 28 14:20 monitoringplugins.php
-rwxr-x---. 1 nagios nagios 40299 Nov 28 14:20 performance.php
-rwxr-x---. 1 nagios nagios 2437 Nov 28 14:20 sysstat.php
-rwxr-x---. 1 nagios nagios 3291 Nov 28 14:20 testemail.php
-rwxr-x---. 1 nagios nagios 135712 Nov 28 14:20 updates.php
-rwxr-x---. 1 nagios nagios 82093 Nov 28 14:20 users.php
[root@fai0nagiosxi ~]#
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Gui update window is blank

Post by dwhitfield »

I'm surprised you see no other issues, but run

Code: Select all

chmod 755 /usr/local/nagiosxi/html/admin/updates.php
service httpd restart
I'm assuming this is CentOS6 since you have Apache 2.2, that second command should work if it's not CentOS6, but it might redirect you to systemctl

Please let us know if that does not resolve things for you.
Locked