Page 3 of 3
Re: Issues With Nagvis Authentication
Posted: Thu Nov 21, 2019 6:02 pm
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
Re: Issues With Nagvis Authentication
Posted: Thu Nov 21, 2019 10:25 pm
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
Re: Issues With Nagvis Authentication
Posted: Fri Nov 22, 2019 7:26 am
by scottwilkerson
Lets perform the upgrade
Code: Select all
/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh
Re: Issues With Nagvis Authentication
Posted: Fri Nov 22, 2019 5:32 pm
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.
Re: Issues With Nagvis Authentication
Posted: Mon Nov 25, 2019 10:48 am
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
Re: Issues With Nagvis Authentication
Posted: Mon Nov 25, 2019 6:57 pm
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
Re: Issues With Nagvis Authentication
Posted: Tue Nov 26, 2019 7:27 am
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