Problemes after to upgrade to Nagios XI 5.5.2 (2)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by morabanc »

Hi guys,

We opened a topic with the same subject, this was solved but now we have another issue.

Yesterday we noticed that after login in NagiosXI we receive an "error 500: this page not work. the web page 172.16.40.1 couldn't execute this request":

- https://ibb.co/jbdfyK

Users that was logged before was Ok but new users can't do it.

Users that were already logged in, when doing logout later they couldn't login in.


Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by npolovenko »

Hello, @morabanc.Please tail the error log while attempting to log in with one of the "non-working" users.

Code: Select all

tail -f /var/log/httpd/error_log
And send me the messages you see in the console.

Also, please run the following script to reset the config permissions:

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by morabanc »

Hi ! Thanks for your answer.

This is the output of error_log after login:

Code: Select all

[Tue Aug 21 12:04:09 2018] [error] [client 172.21.10.117] PHP Fatal error:  Cannot redeclare class adLDAPException in /usr/local/nagiosxi/html/includes/components/active_directory/adLDAP/adLDAP.php on line 3031, referer: https://172.16.40.1/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
Finally y run the script you told me:

Code: Select all

# /usr/local/nagiosxi/scripts/reset_config_perms.sh

--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting Nagios Core corelog.newobjects user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
After run the script and try once again, login failed again:

Code: Select all

[Tue Aug 21 12:05:55 2018] [error] [client 172.21.10.117] PHP Fatal error:  Cannot redeclare class adLDAPException in /usr/local/nagiosxi/html/includes/components/active_directory/adLDAP/adLDAP.php on line 3031, referer: https://172.16.40.1/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by ssax »

This is because you are using the old AD component as well, you will need to move that out and setup the new AD/LDAP (Admin > LDAP/AD Integration):

Code: Select all

mv /usr/local/nagiosxi/html/includes/components/active_directory /tmp/
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by morabanc »

Thanks, all it's OK :)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)

Post by ssax »

That's great to hear, are we okay to lock the topic and mark it as resolved?
Locked