Page 1 of 2
nrdp checks not displaying in nagios core
Posted: Thu Jun 11, 2015 11:37 am
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
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 11, 2015 11:58 am
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.
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 11, 2015 12:18 pm
by ssmelt
I'm using the latest version of analyzer and have changed to _ on analyzer and core for hostname. Still the same result.
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 11, 2015 2:04 pm
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
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 18, 2015 9:42 am
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
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 18, 2015 9:50 am
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>
Re: nrdp checks not displaying in nagios core
Posted: Thu Jun 18, 2015 12:46 pm
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
Re: nrdp checks not displaying in nagios core
Posted: Mon Jun 22, 2015 9:26 am
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
Re: nrdp checks not displaying in nagios core
Posted: Mon Jun 22, 2015 4:35 pm
by jolson
service_description=Lakfield_Bandwidth
Is this supposed to read "service_description=Lakefield_Bandwidth"?
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 23, 2015 7:33 am
by ssmelt
I already corrected the spelling mistake on the NNA side. It now matches the service definition but still no luck.