Page 1 of 2

Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 12:11 pm
by vy3734
Hi,
My Nagios web interface defaulted back to older version automatically. How can i upgrade it back to the new version without having to re-install the Nagisoxi. Please help!
Nagios GUI old.PNG

Thanks!

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 3:17 pm
by cdienger
The XI interface can be reached by going to http(s)://nagios_ip/nagiosxi but the old interface is still reachable at http(s)://nagios_ip/nagios. Make sure you're browser is pointing to the correct location.

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 3:43 pm
by vy3734
I am using the nagiosxi URL http://NagiosServer/nagiosxi/index.php?

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 3:50 pm
by cdienger
Is the URL in the address bar getting redirected? Are you hitting a XI login page at all?

Check /etc/httpd/conf.d/nagiosxi.conf which should contain:

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"

# Special configuration to allow .htaccess in custom includes
<Directory "/usr/local/nagiosxi/html/includes/components/custom-includes">
    AllowOverride All
    Options None
   Require all granted
</Directory>

<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>

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 4:30 pm
by vy3734
nagiosxi.conf file has similar settings as specified in the example above.
I tried hitting both the URLs
http://NagiosServer/nagiosxi/index.php?
http://NagiosServer/nagios/
you were right about the URL with just nagios pointing to the older version, but in my case nagiosxi is also pointing to the older version.
The only difference i saw in the file you posted above vs what i have on my server is
AuthName "Nagios XI"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
I had the above lines commented in my file.

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 5:56 pm
by scottwilkerson
the Alias line was the same too?

Code: Select all

Alias /nagiosxi "/usr/local/nagiosxi/html"
If so, I would recommend you tar up the contents of /etc/httpd/conf.d and send them in for us to have a look at

Re: Nagios GUI defaulted back to older version.

Posted: Mon Nov 05, 2018 5:58 pm
by tgriep
Upload the files that @scottwilkerson asked for as well as this file from the server.

Code: Select all

/etc/httpd/conf/httpd.conf

Re: Nagios GUI defaulted back to older version.

Posted: Tue Nov 06, 2018 8:51 am
by vy3734
Attaching the conf.d tar ball and the httpd.conf file as requested.
httpd.conf
conf.d.tar.gz

Re: Nagios GUI defaulted back to older version.

Posted: Tue Nov 06, 2018 9:54 am
by tgriep
What version of Nagios XI is installed on the server?
What OS and release is the server running.

Try this, edit the /etc/httpd/conf.d/nagiosxi.conf file and comment out these lines.

Code: Select all

   AuthName "Nagios XI"
   AuthType Basic
   AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
   Require valid-user
   Require all granted
   Require all granted
   Require all granted
   Require all granted
   Require all granted

Save the settings and restart Apache by running

Code: Select all

service httpd restart
Then try and login to the XI GUI and let us know what happens.

Re: Nagios GUI defaulted back to older version.

Posted: Tue Nov 06, 2018 11:03 am
by vy3734
Nagios XI 5.2.3
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Tried commenting the lines mentioned, after the httpd restart i started seeing the following message
Forbidden.PNG
Reverted back the changes to access the gui again. Still seeing the same issue.