XI Passive set-up not recognizing service definitions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nuance_nagios
Posts: 2
Joined: Wed Mar 06, 2013 11:46 am

XI Passive set-up not recognizing service definitions

Post by nuance_nagios »

Good Afternoon,

Background Info:
I have a "distributed" Nagios Xi - Nagios Core setup using nsca. The Nagios Core servers are obsessing over multiple services which sends them using nsca to Nagios XI. It is working pretty well in terms of graphing all the performance data.

Problem:
I imported multiple service definition from one of my Nagios Core servers, and the Nagios XI host should be displaying the information for the check along with its appropriate perfdata. This has been working pretty much for every service I've migrated so far. The current problem I am facing is that for a subset of the services I added Nagios XI is not displaying the results of the check,status(ie OK,CRITICAL) or perfdata, it simply stays in pending. Nagios XI is receiving this data properly since when I check the Unconfigured Objects the services I want to have monitored are there.

What I've already tried:
  • I scratch my importing process, delete all the services that were causing me problems, and use the Nagios XI import wizard, by going to the Unconfigured Objects section and following the import wizard. Did not work.
  • Verified Service Description that Nagios Core and Nagios XI are using, they are exactly the same.
  • Checked the Nagios Configuration I see no warnings or errors when running the Nagios Verify utility.
  • On the logs I found the following message:

    Code: Select all

    Mar  6 16:37:33 nagiosxi nagios: Warning:  Passive check result was received for service '166.23.18 Space Check for  Host:<blah> Volume: </blah/blah2>' on host 'blah', but the service could not be found!
  • I know this seems somewhat obvious, but I have verified that the host exists and the service definition, yet I can get it to work. It works for a very similar type check I am doing for Inodes, which follows the exact same format.
  • I feel like I am missing something very obvious, but I can't figure it out.

Required Info:
  • Linux Distribution and version: CentOS release 6.3 (Final)
  • 32 or 64bit: 64 bit
  • VMware Image or Manual Install of XI: Manual Install of XI
  • Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Nop
  • Nagios version: Nagios XI 2012R1.6
Please let me know if you need more information or if my explanation is un-clear! Thanks for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI Passive set-up not recognizing service definitions

Post by scottwilkerson »

nuance_nagios wrote:Nagios XI is receiving this data properly since when I check the Unconfigured Objects the services I want to have monitored are there.
This is the first clue, if it is showing up in Unconfigured Objects then the host/service combination isn't found in XI.
nuance_nagios wrote:

Code: Select all

    Mar  6 16:37:33 nagiosxi nagios: Warning:  Passive check result was received for service '166.23.18 Space Check for  Host:<blah> Volume: </blah/blah2>' on host 'blah', but the service could not be found!
This is clue 2 (it actually triggers the Unconfigured Objects).

This to verify, the hostname and service_description in XI is EXACTLY the same as in the log above, including capitalization and spaces.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nuance_nagios
Posts: 2
Joined: Wed Mar 06, 2013 11:46 am

Re: XI Passive set-up not recognizing service definitions

Post by nuance_nagios »

I had already checked that very carefully. But then when you said "as in the log above", I grabbed the definition displayed in the GUI for the comparison, and the are indeed exactly the same. But when I copied the definition as I found in in /usr/local/nagios/etc/services/<file.cfg> and compared that against what I posted earlier on which I grabbed from /var/log/messages they did not match. There was an extra space. :mrgreen:

The problem is that when importing the definition to xi, the extra space was deleted or ignored for some reason. And the GUI doesn't display the extra space in the Unconfigured Object page for some reason.

Either way thank you for helping me out! Thanks a lot for your time! Have a good day!
Locked