Nagios XI and Nagvis Login Integration - Part 2.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Nagios XI and Nagvis Login Integration - Part 2.

Post 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,
Nagios XI 2024R2.2.1 (8 Servers)
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.

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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'
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post by TBT »

Yes, please highlight the correct option and send me a copy of the clean config so that I may diff.

Thank you.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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!
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!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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
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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI and Nagvis Login Integration - Part 2.

Post 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"
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked