Nagios GUI defaulted back to older version.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Nagios GUI defaulted back to older version.

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios GUI defaulted back to older version.

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Re: Nagios GUI defaulted back to older version.

Post by vy3734 »

I am using the nagiosxi URL http://NagiosServer/nagiosxi/index.php?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios GUI defaulted back to older version.

Post 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>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Re: Nagios GUI defaulted back to older version.

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios GUI defaulted back to older version.

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios GUI defaulted back to older version.

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Re: Nagios GUI defaulted back to older version.

Post by vy3734 »

Attaching the conf.d tar ball and the httpd.conf file as requested.
httpd.conf
conf.d.tar.gz
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios GUI defaulted back to older version.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Re: Nagios GUI defaulted back to older version.

Post 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.
You do not have the required permissions to view the files attached to this post.
Locked