nrdp checks not displaying in nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

nrdp checks not displaying in nagios core

Post by ssmelt »

network anaylyzer is sending nrdp info to nagios core but can't get the results to display in nagios web interface.

This is the nrdp check file from the nagios server:

### NRDP Check ###
start_time=1434036920.0
# Time: Thu, 11 Jun 2015 11:35:20 -0400
host_name=Test-Router
service_description=HO_Bandwidth_2
check_type=1
early_timeout=1
exited_ok=1
return_code=1
output=bytes on Test_Router with filter `net 10.104.1.0/24` is 276 | bytes=276;100;500000;0\n
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nrdp checks not displaying in nagios core

Post by jolson »

What version of Nagios Network Analyzer are you running?

There was an issue regarding hyphens, and as of our most recent release hyphens can no longer be used. Please change your hostname from 'Test-Router' to 'Test_Router' on both Nagios Core and Network Analyzer. Let me know if your results are any different after doing so.
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.
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

I'm using the latest version of analyzer and have changed to _ on analyzer and core for hostname. Still the same result.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: nrdp checks not displaying in nagios core

Post by jdalrymple »

Is your NRDP install healthy and working properly? Can you submit a passive result through the web interface for your test_router and have it show up?

Just trying to narrow down the scope, is the problem Nagios, NRDP, or NNA.

Thanks
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

Here is what the file in checkresults has in it from Analyzer. I think it might be a permissions issue on the nagios side.
the NNA check reaches the checkresults folder on nagios server but from there I'm at a loss.

### NRDP Check ###
start_time=1434636619.0
# Time: Thu, 18 Jun 2015 10:10:19 -0400
host_name=Lakefield_Router_NA_148
service_description=Lakfield_Bandwidth
check_type=1
early_timeout=1
exited_ok=1
return_code=0
output=bps on Lakefield_Router_NA_148 with filter `net 10.104.1.0/24` is 0 | bps=0;50;500000;0\n
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

This is the result of a passive check sent from nrdp.
submit command:
<result>
<status>0</status>
<message>OK</message>
</result>

submit check data:
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>2 checks processed.</output>
</meta>
</result>
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrdp checks not displaying in nagios core

Post by tmcdonald »

Please run the following command as root from the Nagios server command line and post the results:

Code: Select all

grep "Check result queue contained results for" /usr/local/nagios/var/nagios.log
grep "Passive check result was received for" /usr/local/nagios/var/nagios.log
if you are on Core 3. If you are on Core 4, please run this instead:

Code: Select all

grep "Got check result for" /usr/local/nagios/var/nagios.log
grep "Got host checkresult for" /usr/local/nagios/var/nagios.log
Former Nagios employee
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

Here are the results. The odd thing is that I have a host and service defined.

root@caap435:~# grep "Got check result for" /usr/local/nagios/var/nagios.log
[1434956181] Error: Got check result for service 'Lakefield_Bandwidth' on host 'Lakefield_Router_NA_148'. Unable to find service

root@caap435:~# grep "Got host checkresult for" /usr/local/nagios/var/nagios.log
[1434956181] Error: Got host checkresult for 'Lakefield_Router_NA_148', but no such host can be found
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nrdp checks not displaying in nagios core

Post by jolson »

service_description=Lakfield_Bandwidth
Is this supposed to read "service_description=Lakefield_Bandwidth"?
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.
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

I already corrected the spelling mistake on the NNA side. It now matches the service definition but still no luck.
Last edited by ssmelt on Tue Jun 23, 2015 9:41 am, edited 1 time in total.
Locked