Page 1 of 2

Problems after upgrade

Posted: Mon Dec 26, 2016 3:13 am
by kapital
Hello.
We have problems after upgrade to latest version Nagios XI 5.3.4
When i trying add new server (linux or windows) Configuration Wizard works on step 1 & 2
But on step 3 we recieve empty screen (screenshot attached 3.jpg)
upgrade was installed manually
nagios server is VMWare template

httpd error log:

Code: Select all

[root@nagios~]# tail -f /var/log/httpd/error_log
[Mon Dec 26 10:32:52 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 61, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:32:52 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 64, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:37:03 2016] [error] [client] PHP Warning:  base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 3451, referer: http://nagios/nagiosxi/config/monitoringwizard.php?&=
[Mon Dec 26 10:38:59 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 61, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:38:59 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 64, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:41:42 2016] [error] [client ] PHP Warning:  base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 3451, referer: http://nagios/nagiosxi/config/monitoringwizard.php?&=
[Mon Dec 26 10:43:05 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 61, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:43:05 2016] [error] [client ] PHP Notice:  Undefined index: wizard in /usr/local/nagiosxi/html/includes/configwizards/windowsserver/windowsserver.inc.php on line 64, referer: http://nagios/nagiosxi/config/monitoringwizard.php
[Mon Dec 26 10:56:15 2016] [error] [client ] File does not exist: /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.11.2.min.js, referer: http://nagios/
[Mon Dec 26 11:36:51 2016] [error] [client ] PHP Warning:  base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 3451, referer: http://nagios/nagiosxi/config/monitoringwizard.php?&=

Re: Problems after upgrade

Posted: Tue Dec 27, 2016 10:46 am
by rkennedy
Could you post the upgrade.log for us to look at? I just verified on my stock system, and the file does exist -

Code: Select all

[root@localhost libexec]# ls -l /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.11.2.min.js
-rw-r----- 1 nagios nagios 95931 Nov 30 14:22 /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.11.2.min.js
What information are you entering in the previous pages, anything with special characters of sort?

Code: Select all

[Mon Dec 26 10:41:42 2016] [error] [client ] PHP Warning:  base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 3451, referer: http://nagios/nagiosxi/config/monitoringwizard.php?&=

Re: Problems after upgrade

Posted: Tue Dec 27, 2016 10:51 am
by dwhitfield
rkennedy wrote: What information are you entering in the previous pages, anything with special characters of sort?
If you could post screenshots of those two pages, that might be helpful in determining if there is a different bug other than just special characters, but certainly special characters could be a potential cause.

Re: Problems after upgrade

Posted: Wed Dec 28, 2016 12:52 am
by kapital

Code: Select all

 ls -l /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.11.2.min.js
ls: cannot access /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.11.2.min.js: No such file or directory
but seems there new version?

Code: Select all

ls -l /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.12.4.min.js
-rwxr-x--- 1 nagios nagios 97162 Dec 15 16:06 /usr/local/nagiosxi/html/includes/js/jquery/jquery-1.12.4.min.js
62 is a nagios IP address
no any special characters all just on standard page

Re: Problems after upgrade

Posted: Wed Dec 28, 2016 12:54 am
by kapital
also upgrade.log:

Re: Problems after upgrade

Posted: Wed Dec 28, 2016 11:50 am
by dwhitfield
If you go to Admin -> Manage Config Wizards (under System Extensions), what are the versions of your Linux and Windows wizards?

You should have Linux Server 1.5.3 and Windows Server 1.4.5. If either of those is not the case, you can click the blue "Check for Updates" at the top of the page.

Assuming you have the latest versions, what happens if you use https rather than http?

Re: Problems after upgrade

Posted: Thu Dec 29, 2016 12:36 am
by kapital
Good! Its worked when i used https... So we need always use https rather than http?
Also there was updates for:
Bulk Host Cloning and Import
Linux SNMP
NCPA
Postgres Server
SNMP
SNMP Walk
Network Switch / Router
Windows SNMP
Versions:

Re: Problems after upgrade

Posted: Thu Dec 29, 2016 10:17 am
by rkennedy
I would update the other wizards as well, can't hurt. Regarding the SSL - was your system setup to use HTTPS? If so, then that's the route you'll want to go. https://assets.nagios.com/downloads/nag ... s%20XI.pdf

Re: Problems after upgrade

Posted: Thu Dec 29, 2016 10:23 am
by dwhitfield
In addition to what @rkennedy said,
kapital wrote:So we need always use https rather than http?
That's certainly a option. Usually this is caused by the wizard being run under https. Just re-running the wizard under http should fix the issue.

I'll also mention that yesterday we released XI 5.4.0. There are a lot of important security updates. Instructions are at https://assets.nagios.com/downloads/nag ... nstall.pdf. If you look at the change log, you won't see a ton of entries, but you will see
- Upgraded Nagios Core to version 4.2.4 -JO
- Upgraded NDOUtils to version 2.1.2 -JO
- Upgraded NRDP to version 1.4.0 -JO
Those are where the bulk of the improvements are, and each of those have their own separate change logs, which I can link for you if you would like.

Re: Problems after upgrade

Posted: Mon Jan 09, 2017 8:34 am
by kapital
rkennedy wrote:I would update the other wizards as well, can't hurt. Regarding the SSL - was your system setup to use HTTPS? If so, then that's the route you'll want to go. https://assets.nagios.com/downloads/nag ... s%20XI.pdf
No special setup for HTTPS
dwhitfield wrote:In addition to what @rkennedy said,
kapital wrote:So we need always use https rather than http?
That's certainly a option. Usually this is caused by the wizard being run under https. Just re-running the wizard under http should fix the issue.

I'll also mention that yesterday we released XI 5.4.0. There are a lot of important security updates. Instructions are at https://assets.nagios.com/downloads/nag ... nstall.pdf. If you look at the change log, you won't see a ton of entries, but you will see
- Upgraded Nagios Core to version 4.2.4 -JO
- Upgraded NDOUtils to version 2.1.2 -JO
- Upgraded NRDP to version 1.4.0 -JO
Those are where the bulk of the improvements are, and each of those have their own separate change logs, which I can link for you if you would like.
Ok, i will comment after upgrade.