Issues With Nagvis Authentication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

File attached
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issues With Nagvis Authentication

Post by scottwilkerson »

Lets make a backup of your existing file

Code: Select all

cp /usr/local/nagvis/etc/nagvis.ini.php /usr/local/nagvis/etc/nagvis.ini.php~
then extract the attached zip and replace /usr/local/nagvis/etc/nagvis.ini.php with it

This file comments out the line

Code: Select all

logonenvvar="PHP_AUTH_USER"
And changes

Code: Select all

logonmodule="LogonSession"
and

Code: Select all

backend="nagiosxi"
this is a typical 5.6.6 setup
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issues With Nagvis Authentication

Post by scottwilkerson »

Had to make an update to the file as you didn't even have the backend definition
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

Hello Scott,

I am now getting just a white screen with nothing being displayed from nagvis.

Just confirming, I have copied the file as requested

To be sure it has uploaded i have done a copy and past from the ssh session to the machine

logonmodule="LogonSession"
;;logonenvvar="PHP_AUTH_USER"
; logonenvcreateuser="1"
; logonenvcreaterole="Guests"

; Options to configure the Overview page of NagVis
backend="nagiosxi"

The existing file had
backend="ndomy_1"


Thanks for your assistance
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

Error message
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issues With Nagvis Authentication

Post by scottwilkerson »

This is really odd.

Please post the output of the following

Code: Select all

grep nagvis /var/log/httpd/error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

There is nothing in it about nagvis

I have attached the file
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issues With Nagvis Authentication

Post by scottwilkerson »

That is weird you got a 500 error but no error in the log.

Let's make sure NagVis is even correctly upgraded to the current version
Please run the following and return the results

Code: Select all

grep CONST_VERSION /usr/local/nagvis/share/server/core/defines/global.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

[root@nagios /]# grep CONST_VERSION /usr/local/nagvis/share/server/core/defines/global.php
define('CONST_VERSION', '1.8.5');
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issues With Nagvis Authentication

Post by scottwilkerson »

Ok, for some reason it looks like your NagVis is not update to the current version

Can you show the output of the following

Code: Select all

grep COMPONENT_VERSION /usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php
ll /usr/local/nagiosxi/html/includes/components/nagvis/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked