Page 2 of 2
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 23, 2015 9:30 am
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.
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 30, 2015 9:38 am
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
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 30, 2015 9:43 am
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:
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 30, 2015 9:57 am
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
}
Re: nrdp checks not displaying in nagios core
Posted: Tue Jun 30, 2015 1:36 pm
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
Re: nrdp checks not displaying in nagios core
Posted: Thu Jul 02, 2015 7:04 am
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.
Re: nrdp checks not displaying in nagios core
Posted: Thu Jul 02, 2015 1:15 pm
by ssax
Can you zip up and PM me your /usr/local/nagios/var/objects.cache file?
*** That file may contain sensitive info
Re: nrdp checks not displaying in nagios core
Posted: Thu Jul 02, 2015 1:25 pm
by tgriep
In Nagios XI, click on Admin > Unconfigured Objects and see if it is in there. If so, reconfigure it.