Nagios XI and Nagvis Login Integration - Part 2.
Nagios XI and Nagvis Login Integration - Part 2.
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,
[1] https://support.nagios.com/forum/viewto ... 16&t=33272
[2] http://tracker.nagios.com/view.php?id=732
Thanks in advance,
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI and Nagvis Login Integration - Part 2.
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
then execute the script to upgrade NagVis along with the integrated authentication
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
Code: Select all
/usr/local/nagiosxi/html/includes/components/nagvis/upgrade.shRe: Nagios XI and Nagvis Login Integration - Part 2.
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'
grep COMPONENT_VERSION /usr/local/nagiosxi/html/includes/components/nagvis/nagvis.inc.php
COMPONENT_VERSION => '2.0.4'
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Nagios XI and Nagvis Login Integration - Part 2.
This is the version of the NagVis Integration component. The actual version of NagVis could be found by running:
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!
Code: Select all
grep 'CONST_VERSION' /usr/local/nagvis/share/server/core/defines/global.phpHome > NagVis > Need Help? > NagVis Support Information
Let us know if you have any further questions. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and Nagvis Login Integration - Part 2.
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?
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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Nagios XI and Nagvis Login Integration - Part 2.
You don't have to - it's not going to make any difference.1. Should we un-comment those lines after upgrade?
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.2. Is XI/NagVis login integration enabled by default, if not, which configuration option is it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and Nagvis Login Integration - Part 2.
Yes, please highlight the correct option and send me a copy of the clean config so that I may diff.
Thank you.
Thank you.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Nagios XI and Nagvis Login Integration - Part 2.
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:
I renamed it with a "txt" extension. You can compare it to yours to see if it is any different. Thanks!
I renamed it with a "txt" extension. You can compare it to yours to see if it is any different. Thanks!
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and Nagvis Login Integration - Part 2.
1. I assumed there was a config option for authentication. It's simply based off XI credentials now?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:
I renamed it with a "txt" extension. You can compare it to yours to see if it is any different. Thanks!
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?
You do not have the required permissions to view the files attached to this post.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Nagios XI and Nagvis Login Integration - Part 2.
Yes, it's based off XI credentials.1. I assumed there was a config option for authentication. It's simply based off XI credentials now?
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).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".
Yes, you should replace your config with the "clean copy", but make a backup of the "original" file first (just in case).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?
Code: Select all
mv /usr/local/nagvis/etc/nagvis.ini.php /usr/local/nagvis/etc/nagvis.ini.php.backupCode: Select all
backend="nagiosxi"
logonmodule="LogonSession"Be sure to check out our Knowledgebase for helpful articles and solutions!