Page 1 of 1
Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Mon Aug 20, 2018 1:56 am
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
Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Mon Aug 20, 2018 4:20 pm
by npolovenko
Hello,
@morabanc.Please tail the error log while attempting to log in with one of the "non-working" users.
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
Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Tue Aug 21, 2018 5:09 am
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
Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Tue Aug 21, 2018 4:34 pm
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/
Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Wed Aug 22, 2018 8:47 am
by morabanc
Thanks, all it's OK

Re: Problemes after to upgrade to Nagios XI 5.5.2 (2)
Posted: Wed Aug 22, 2018 4:15 pm
by ssax
That's great to hear, are we okay to lock the topic and mark it as resolved?