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 »

[root@nagios /]# grep COMPONENT_VERSION /usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php
COMPONENT_VERSION => '2.0.3'
[root@nagios /]# ll /usr/local/nagiosxi/html/includes/components/nagvis/
total 1852
-rwxr-xr-- 1 nagios nagios 1844 Jan 6 2017 add_map_links.inc.php
-rwxr-xr-- 1 nagios nagios 795 Sep 19 11:13 CHANGES.txt
-rwxr-xr-- 1 nagios nagios 3262 Sep 19 11:13 install.sh
drwxr-xr-x 2 nagios nagios 4096 May 22 2019 mods
-rwxr-xr-- 1 nagios nagios 1852530 Sep 19 11:13 nagvis-1.9.8-nagios.tar.gz
-rwxr-xr-- 1 nagios nagios 4715 Sep 19 11:13 nagvis.inc.php
-rwxr-xr-- 1 nagios nagios 596 Jan 6 2017 sanity.sh
drwxr-xr-x 2 nagios nagios 4096 Jul 9 2018 scripts
-rwxr-xr-- 1 nagios nagios 4300 Sep 19 11:13 upgrade.sh
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Issues With Nagvis Authentication

Post by tpwebb »

Hello,

I have changed the file nagvis.ini.php from logonmodule=“LogonSession” To logonmodule=“LogonMixed”, this gives me the logon window for Nagvis and I can log on and it works.

I am hoping this can be a temporary solution as I would like to logon with having separate credentials in the end.

Thanks
Terry
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 perform the upgrade

Code: Select all

/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh
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 »

This is the message from running the script

[root@nagios /]# /usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh
You must have NagVis version 1.5.x to automatically upgrade.
Note: In this situation we recommend installing the latest version of XI
on a clean system for best results.
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 »

Can you remove the following starting on line 43 of /usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh and run the script again

Code: Select all

if ! grep -q "NagVis 1.5" /usr/local/nagvis/README; then

        # Verify version and upgrade if we need to
        if grep -q '1.9.8' /usr/local/nagvis/share/server/core/defines/global.php ; then
                update_config_and_mods
        else
                echo "You must have NagVis version 1.5.x to automatically upgrade."
                echo "Note: In this situation we recommend installing the latest version of XI"
                echo "on a clean system for best results."
                exit 0
        fi
fi
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,

I have commented out the lines as advised, and re-ran the upgrade script. My authentication problem looks like it has been resolved.

The package identified is still showing 1.9.8 instead of the current version from Nagvis of 1.9.17.

I am still running from the hyperV package install, should I upgrade them manually?
Nagios 5.6.6
Nagvis 1.9.8
php 5.4.16

My auto upgrade of Nagios does not work I have been doing manual upgrades, I will log a separate issue for this.

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

tpwebb wrote:I have commented out the lines as advised, and re-ran the upgrade script. My authentication problem looks like it has been resolved.
Great!
tpwebb wrote:I am still running from the hyperV package install, should I upgrade them manually?
Nagios 5.6.6
Nagvis 1.9.8
php 5.4.16

My auto upgrade of Nagios does not work I have been doing manual upgrades, I will log a separate issue for this.
The only one of the above that is to be upgraded is Nagios has a 5.6.8 available and the preferred method for upgrading is the following
https://assets.nagios.com/downloads/nag ... ctions.pdf

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked