Page 1 of 2
Nagios XI and Nagvis Login Integration - Part 2.
Posted: Wed Nov 27, 2019 4:01 pm
by TBT
Back in 2015 we inquired about Nagios XI and Nagvis Login Integration[1] and submitted a formal feature request [2]. Now that the Tracker site is offline, we're wondering if this feature will ever be implemented, and more importantly what has happened with all the requests?
[1]
https://support.nagios.com/forum/viewto ... 16&t=33272
[2]
http://tracker.nagios.com/view.php?id=732
Thanks in advance,
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Mon Dec 02, 2019 11:24 am
by scottwilkerson
This actually did get implemented, but I just worked through this with another client and I think a certain amount of installs (those on NagVis 1.8.5) didn't get upgraded properly.
You can see the thread here
https://support.nagios.com/forum/viewto ... 20#p298413
I believe if you do the following it will trigger the upgrade
remove the following starting on line 43 of
/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh
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
then execute the script to upgrade NagVis along with the integrated authentication
Code: Select all
/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.sh
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Mon Dec 09, 2019 10:44 am
by TBT
Which is the current version of NagVis, perhaps I am just overlooking the option?
grep COMPONENT_VERSION /usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php
COMPONENT_VERSION => '2.0.4'
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Mon Dec 09, 2019 11:59 am
by lmiltchev
This is the version of the NagVis Integration component. The actual version of NagVis could be found by running:
Code: Select all
grep 'CONST_VERSION' /usr/local/nagvis/share/server/core/defines/global.php
or you could view it in the GUI:
Home > NagVis > Need Help? > NagVis Support Information
Let us know if you have any further questions. Thank you!
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Mon Dec 09, 2019 12:46 pm
by TBT
So it appears we're at 1.8.4. I've successfully upgraded to 1.9.8 using the method above.
1. Should we un-comment those lines after upgrade?
2. Is XI/NagVis login integration enabled by default, if not, which configuration option is it?
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Mon Dec 09, 2019 1:04 pm
by lmiltchev
1. Should we un-comment those lines after upgrade?
You don't have to - it's not going to make any difference.
2. Is XI/NagVis login integration enabled by default, if not, which configuration option is it?
It is enabled by default. Everything should work correctly, provided you are using the "default" settings. If you have having issues with NagVis, we can send you a config (nagvis.ini.php) from a "clean" system for comparison, and will help you out with troubleshooting the issue.
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Tue Dec 10, 2019 10:11 am
by TBT
Yes, please highlight the correct option and send me a copy of the clean config so that I may diff.
Thank you.
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Tue Dec 10, 2019 11:52 am
by lmiltchev
I am not entirely sure what option would you like to to highlight, but here's a
nagvis.ini.php file from a clean system:
nagvis.ini.php.txt
I renamed it with a "txt" extension. You can compare it to yours to see if it is any different. Thanks!
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Tue Dec 10, 2019 2:21 pm
by TBT
lmiltchev wrote:I am not entirely sure what option would you like to to highlight, but here's a
nagvis.ini.php file from a clean system:
nagvis.ini.php.txt
I renamed it with a "txt" extension. You can compare it to yours to see if it is any different. Thanks!
1. I assumed there was a config option for authentication. It's simply based off XI credentials now?
2. After upgrading (1.8.4 to 1.9.8), we now get an error when clicking the NagVis link: "The backend with the ID "live_1" is not defined".
3. Also, /usr/local/nagvis/etc/nagvis.ini.php on the system differs (see below). Would it be advisable to just replace with the clean copy provided?
nagvis.ini.php.diff-2.txt
Re: Nagios XI and Nagvis Login Integration - Part 2.
Posted: Tue Dec 10, 2019 3:18 pm
by lmiltchev
1. I assumed there was a config option for authentication. It's simply based off XI credentials now?
Yes, it's based off XI credentials.
2. After upgrading (1.8.4 to 1.9.8), we now get an error when clicking the NagVis link: "The backend with the ID "live_1" is not defined".
You backend should be set to "nagiosxi", not "live_1". If you are still having issues after replacing the config, you could try managing backups in the GUI (under the NagVis Options menu).
3. Also, /usr/local/nagvis/etc/nagvis.ini.php on the system differs (see below). Would it be advisable to just replace with the clean copy provided?
Yes, you should replace your config with the "clean copy", but make a backup of the "original" file first (just in case).
Code: Select all
mv /usr/local/nagvis/etc/nagvis.ini.php /usr/local/nagvis/etc/nagvis.ini.php.backup
In any case, you need to make sure that you have these two options set in the config:
Code: Select all
backend="nagiosxi"
logonmodule="LogonSession"