Issues integrating NNA into XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Issues integrating NNA into XI

Post by lucas.shelton »

I've followed the steps in the Nagios Network Analyzer guide to integrate NNA into XI but am still having issues. When I click on the hostname it says it is UP but there is an unknown error running the plugin. It says the host state is down. See attached screen shots.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Issues integrating NNA into XI

Post by tmcdonald »

What XI and NNA versions are you running?

What NNA component do you have in XI under Admin -> Manage Components?
Former Nagios employee
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Re: Issues integrating NNA into XI

Post by lucas.shelton »

tmcdonald wrote:What XI and NNA versions are you running?

What NNA component do you have in XI under Admin -> Manage Components?

XI 2014R2.3, NNA 2R1.0. NNA component is version 1.2.2.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issues integrating NNA into XI

Post by Box293 »

Can you go into Core Configuration Manager
Monitoring > Hosts
Edit the host "NNA Sourcegroup - All Sources"
Click the "Test Check Command Button"

What is the output?

Also when viewing the output, the full command executed is shown. Copy this line and paste it into an ssh session and add --verbose to the end, something like:

Code: Select all

/usr/local/nagios/libexec/check_nna.py -H 10.25.5.70 -K c2e1a2e6ae8bc2469ed97b08339aaab6619b4590 -G 1 --exists --verbose
What is output?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Re: Issues integrating NNA into XI

Post by lucas.shelton »

Box293 wrote:Can you go into Core Configuration Manager
Monitoring > Hosts
Edit the host "NNA Sourcegroup - All Sources"
Click the "Test Check Command Button"

What is the output?

Also when viewing the output, the full command executed is shown. Copy this line and paste it into an ssh session and add --verbose to the end, something like:

Code: Select all

/usr/local/nagios/libexec/check_nna.py -H 10.25.5.70 -K c2e1a2e6ae8bc2469ed97b08339aaab6619b4590 -G 1 --exists --verbose
What is output?

Here's the output of the Test Check Command button:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nna.py -H nfcollector1.drake.edu -K 260bb2d78a0fe7e919cd48c1aa4106fbbd24e94a -G 1 --exists
OUTPUT: UP - group exists
UNKNOWN - Error occurred while running the plugin.

Here's the output from the SSH session:

Code: Select all

bash: /usr/local/nagios/libexec/check_nna.py: No such file or directory
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues integrating NNA into XI

Post by lmiltchev »

What is the version of the "Nagios Network Analyzer" wizard that you are using? Run the following command on the Nagios XI box and show us the output:

Code: Select all

ll /usr/local/nagios/libexec/check_nna.py
Have you tried updating the "Nagios Network Analyzer" wizard "Nagios Network Analyzer Integration" component to see if this is going to fix the issue?

Admin->Manage Components->Check for Updates
Admin->Manage Config Wizards->Check for Updates
Be sure to check out our Knowledgebase for helpful articles and solutions!
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Re: Issues integrating NNA into XI

Post by lucas.shelton »

My apologies on the post above, I ran that command on the NNA VM and not the XI VM. Here is the output from the command via SSH in XI:

Code: Select all

[lshelton@netmon ~]$ /usr/local/nagios/libexec/check_nna.py -H nfcollector1.drake.edu -K 260bb2d78a0fe7e919cd48c1aa4106fbbd24e94a -G 1 --exists --verbose
UP - group exists
And error was encountered:
0
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Re: Issues integrating NNA into XI

Post by lucas.shelton »

lmiltchev wrote:What is the version of the "Nagios Network Analyzer" wizard that you are using? Run the following command on the Nagios XI box and show us the output:

Code: Select all

ll /usr/local/nagios/libexec/check_nna.py
Have you tried updating the "Nagios Network Analyzer" wizard "Nagios Network Analyzer Integration" component to see if this is going to fix the issue?

Admin->Manage Components->Check for Updates
Admin->Manage Config Wizards->Check for Updates

Code: Select all

[lshelton@netmon ~]$ ll /usr/local/nagios/libexec/check_nna.py
-rwxr-xr-x 1 root root 10037 Dec 30  2014 /usr/local/nagios/libexec/check_nna.py
[lshelton@netmon ~]$
There are no updates for the wizards.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Issues integrating NNA into XI

Post by jolson »

How many Sources are in your 'All Sources' group? Mine contained 2 Sources (I'm using the same versions of NNA and XI as you) and my query completed with no problems.

[root@localhost ~]# /usr/local/nagios/libexec/check_nna.py -H 192.168.4.146 -K fe51760996xxxxxxx8eb3 -G 1 --exists --verbose
UP - group exists


What is your python version?

Code: Select all

python --version
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
lucas.shelton
Posts: 48
Joined: Fri Apr 24, 2015 3:21 pm

Re: Issues integrating NNA into XI

Post by lucas.shelton »

I currently have four sources but was having the same issue when I only had two.

Code: Select all

Python 2.4.3
Locked