Page 1 of 1

Problems with views and ampersand url encoding

Posted: Thu Oct 26, 2017 7:54 am
by WillemDH
Hello,

We are experiencing issues with Nagios XI views. When clicking on a configured view which has an ampersand in it, the ampersand is replaced by &

When roation is on in views, everything work more or less 'normal', but when the via is clicked, it results in all kinds of errors, as the ampersand is url encoded...

Nagios XI 5.4.10, CentOS 6 fully updated. My guess is that this was caused by one of the latest Nagios XI updates.

Please try to reproduce.

For example https://nagios/nagvis/frontend/nagvis-j ... SB-SES-SAN is replaced by https://nagios/nagvis/frontend/nagvis-j ... SB-SES-SAN

Grtz

Willem

Re: Problems with views and ampersand url encoding

Posted: Thu Oct 26, 2017 10:02 am
by npolovenko
Hello, @WillemDH. That's an interesting issue. I was unable to replicate it so far. Inside the Nagvis can you click on Need Help and then Nagvis Support Information. Sends us a screenshot of the whole page with your sys info. Also, how many views do you have? What browser are you using?

Re: Problems with views and ampersand url encoding

Posted: Thu Oct 26, 2017 2:59 pm
by WillemDH
Npolovenko,

Please note that this has nothing to do with NagVis.. The same issue applies to Nagios XI url's. We are experiencing this issue on multiple browsers on multiple pc's. The issue must be in Nagios XI. It happens with whatever number of views we are using.

Grtz

Willem

Re: Problems with views and ampersand url encoding

Posted: Thu Oct 26, 2017 4:54 pm
by npolovenko
@WillemDH,
Can you let us know what PHP version you are running?

Code: Select all

php -v
Also please upload your php.ini file.
And we need to see what php plugins do you have installed:

Code: Select all

rpm -qa | grep php
PS: Nagios XI 5.4.11 is being released next week :arrow:

Re: Problems with views and ampersand url encoding

Posted: Fri Oct 27, 2017 2:54 pm
by WillemDH

Code: Select all

php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Code: Select all

rpm -qa | grep php
php-ldap-5.3.3-49.el6.x86_64
php-snmp-5.3.3-49.el6.x86_64
php-5.3.3-49.el6.x86_64
php-cli-5.3.3-49.el6.x86_64
php-xml-5.3.3-49.el6.x86_64
php-mcrypt-5.3.3-5.el6.x86_64
php-pecl-ssh2-0.11.0-7.el6.x86_64
php-mssql-5.3.3-5.el6.x86_64
php-pdo-5.3.3-49.el6.x86_64
php-mbstring-5.3.3-49.el6.x86_64
php-pear-1.9.4-5.el6.noarch
php-gd-5.3.3-49.el6.x86_64
php-mysql-5.3.3-49.el6.x86_64
php-common-5.3.3-49.el6.x86_64
php-pgsql-5.3.3-49.el6.x86_64
php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
The weird thing is that it only happens when clicking the views. When rotation is automated it works.

Re: Problems with views and ampersand url encoding

Posted: Fri Oct 27, 2017 3:07 pm
by tgriep
Yes, the amp in the URL is a know issue that will be fixed in the next release of Nagios XI which will be out soon.

Re: Problems with views and ampersand url encoding

Posted: Fri Oct 27, 2017 3:53 pm
by WillemDH
Ok, thanks for confirming. You can close this thread.

Re: Problems with views and ampersand url encoding

Posted: Mon Oct 30, 2017 9:37 am
by kyang
Sounds great! I'll be closing this topic.

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!