Page 1 of 2
Problem with logon after upgrade to v5.3.1
Posted: Wed Nov 02, 2016 12:54 am
by Ivica Mustapic
Guys,
After upgrading our TEST environment from v5.2.9 to v5.3.1, we have problems logging into Nagios system.
Upon supplying username and password and clicking on Login button, screen goes blank.
Could not see any errors in nagios.log or httpd/error_log.
What would be the best way to troubleshoot this issue?
We are running CentOS release 6.8.
System is up to date and there are no unresolved dependencies.
Cheers,
Ivica
Re: Problem with logon after upgrade to v5.3.1
Posted: Wed Nov 02, 2016 4:40 am
by jacek
Tried upgrading directly to 5.3.2?
I did this without any problems, and I'm using local and LDAP (SSL) login methods.
The first login was kinda hard, and the login page took a long time to load, but it eventually worked.
The only weird thing is that the upgrade log stops at the "CD ordering joke" but in fact it keeps going for a while.
Re: Problem with logon after upgrade to v5.3.1
Posted: Wed Nov 02, 2016 9:11 am
by jomann
Besides updating to 5.3.2, which is probably not the real issue - we didn't see any login issues from what I know. Although it's possible that your upgrade did not complete fully.
Couple questions that might help us track this down:
Did your upgrade finish successfully they first time? If not, do you have your upgrade.log?
What type of user were you trying to log in with? Local or AD/LDAP?
Were you using the ?redirect=<url> functionality on login?
Was the page fully stopped or was it loading extremely slow?
Can you try logging in using Chrome's incognito mode?
Re: Problem with logon after upgrade to v5.3.1
Posted: Wed Nov 02, 2016 10:12 pm
by Ivica Mustapic
Just did the upgrade to v5.3.2 but the login issue is still there.
Here are my answers to your questions:
> Did your upgrade finish successfully they first time? If not, do you have your upgrade.log?
* Upgrade completed without any errors (that I could see).
* Upgrade logs are attached.
> What type of user were you trying to log in with? Local or AD/LDAP?
* Local account was used to login (nagiosadmin) first but after that I have tried with LDAP logon as well..
> Were you using the ?redirect=<url> functionality on login?
* As far as I know, redirect is not in use, this is standard Nagios install.
> Was the page fully stopped or was it loading extremely slow?
* Page comes back very fast, empty...
>Can you try logging in using Chrome's incognito mode?
Yep, Chrome's incognito mode has generated the following error in httpd/error_log file:
[Thu Nov 03 10:22:34 2016] [error] [client 10.8.20.41] PHP Notice: Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 223, referer:
http://vsmurprdnag02/nagiosxi/login.php
Thanks for you help..
Re: Problem with logon after upgrade to v5.3.1
Posted: Thu Nov 03, 2016 2:31 pm
by avandemore
XI > Admin > System Profile > Download Profile
Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.
Re: Problem with logon after upgrade to v5.3.1
Posted: Thu Nov 03, 2016 7:53 pm
by Ivica Mustapic
Thanks for your help..
Re: Problem with logon after upgrade to v5.3.1
Posted: Thu Nov 03, 2016 8:02 pm
by Ivica Mustapic
If you are requesting "Download Profile" information, please note that I can not log into the system.
Re: Problem with logon after upgrade to v5.3.1
Posted: Fri Nov 04, 2016 9:24 am
by avandemore
Please upload
/etc/httpd/conf.d/nagiosxi.conf,
/etc/httpd/conf.d/ssl.conf,
/var/log/mariadb/mariadb.logand
/var/log/httpd/*_log.
Are you able to access Core eg
http://vsmurprdnag02/nagios/?
Re: Problem with logon after upgrade to v5.3.1
Posted: Sun Nov 06, 2016 8:08 pm
by Ivica Mustapic
Guys,
Web access to Nagios core works fine.
I have attached requested log files.
Please note that mysql is installed (not mariadb) as a part of the standard Nagios install some 5 years ago.
Cheers,
Ivica
Re: Problem with logon after upgrade to v5.3.1
Posted: Mon Nov 07, 2016 12:10 pm
by avandemore
The only signficant difference I saw from a default install is a slightly altered from standard
nagiosxi.conf. This is what I have:
Code: Select all
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
Require all granted
</Directory>
Alias /nagiosxi "/usr/local/nagiosxi/html"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
Can you add
Require all granted to yours and restart apache? Please report the result.