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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrdp checks not displaying in nagios core

Post by tmcdonald »

I think that's the point. You have it set to "Lakfield_Bandwidth" in your config but "Lakefield_Bandwidth" in the passive result. This is causing Core to see it as an entirely different service, so it doesn't update.
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 »

Hence the I have corrected the spelling error post.

I'm now getting this error in the log file and haven't been able to find any solid help for this problem. Both the host and the service have been setup with correct spelling.

[1435672281] Error: Got check result for service 'Lakefield_Bandwidth' on host 'Lakefield_Router_NA_148'. Unable to find service
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nrdp checks not displaying in nagios core

Post by jolson »

Lakefield_Bandwidth' on host 'Lakefield_Router_NA_148
You must have a host defined named 'Lakefield_Router_NA_148. If you do, please post that hosts configuration here.

You must also have a service defined called 'Lakefield_Bandwidth. If you do, please post that service configuration here.

Nagios will need to be restarted to pick up the new host/service if you haven't restarted nagios since adding them:
Check for errors:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Restart Nagios:

Code: Select all

service nagios restart
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 »

These were setup prior to NNA. Core shows the dummy check as "No Data from passive check" so the host and service are active.

define host{
host_name Lakefield_Router_NA_148
alias Lakefield_Router_NA_148
address XX.XXX.XX.XX
hostgroups CA-Routers,Lakefield
active_checks_enabled 0
passive_checks_enabled 1
max_check_attempts 5
}


define service{
name Lakefield_Bandwidth
service_description Lakefield_Bandwidth
host_name Lakefield_Router_NA_148
check_command check_dummy!3 "No Data from passive check"
max_check_attempts 10
active_checks_enabled 0
passive_checks_enabled 1
check_freshness 1
freshness_threshold 300
flap_detection_options n
stalking_options n
parallelize_check 1
is_volatile 1
obsess_over_service 0
}
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nrdp checks not displaying in nagios core

Post by ssax »

Now that you've changed the spelling mistake on the NNA side, please run these commands again after it's submitted another passive so that we can view the latest entries to see what it says:

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
ssmelt
Posts: 9
Joined: Sat Mar 29, 2014 11:05 pm

Re: nrdp checks not displaying in nagios core

Post by ssmelt »

[1435838182] Error: Got check result for service 'Lakefield_Bandwidth' on host 'Lakefield_Router_NA_148'. Unable to find service

The second command doesn't display anything.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nrdp checks not displaying in nagios core

Post by ssax »

Can you zip up and PM me your /usr/local/nagios/var/objects.cache file?
*** That file may contain sensitive info
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: nrdp checks not displaying in nagios core

Post by tgriep »

In Nagios XI, click on Admin > Unconfigured Objects and see if it is in there. If so, reconfigure it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked