How to find wrongly inherited service source.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kkuznetsov
Posts: 12
Joined: Thu Jan 21, 2021 10:22 pm

How to find wrongly inherited service source.

Post by kkuznetsov »

I have a vCenter monitored via VMware API (https://assets.nagios.com/downloads/nag ... ios-XI.pdf). However, having selected two services for monitoring only, I see some another "CPU Using" service inherited from somewhere (from some NCPA configuration). I cannot find a source to delete it.
How can I address it? PLease help.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to find wrongly inherited service source.

Post by ssax »

There's not really a great way to do this, you can do this and that may work for you:

Code: Select all

egrep "{|host_name|service_description|hostgroup_name" /usr/local/nagios/etc/services/*.cfg | grep -B2 hostgroup_name | grep -A1 -B1 'CPU Usage'
If you need help, please PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.

I generally search the configs manually from the profile in order to determine where it's being duplicated.

I have created a feature request to request development add this functionality:

FR: XI - Add am easy method for finding service duplicates and where they are being inherited from
kkuznetsov
Posts: 12
Joined: Thu Jan 21, 2021 10:22 pm

Re: How to find wrongly inherited service source.

Post by kkuznetsov »

Finally, I have found the issue source. The problem was, one of "CPU Usage" services in "Service Management > Managed Hosts" had asterisks (*) sign instead of it's name. It masked all assigned host for this service.
But, it is hard to find such issue if there more than 200 hosts configured. Some tools are required to narrow down such issue localisation.
Thank you, you can lock this branch.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to find wrongly inherited service source.

Post by scottwilkerson »

kkuznetsov wrote:Finally, I have found the issue source. The problem was, one of "CPU Usage" services in "Service Management > Managed Hosts" had asterisks (*) sign instead of it's name. It masked all assigned host for this service.
But, it is hard to find such issue if there more than 200 hosts configured. Some tools are required to narrow down such issue localisation.
Thank you, you can lock this branch.
Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked