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.
How to find wrongly inherited service source.
-
- Posts: 12
- Joined: Thu Jan 21, 2021 10:22 pm
Re: How to find wrongly inherited service source.
There's not really a great way to do this, you can do this and that may work for you:
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
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'
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
-
- Posts: 12
- Joined: Thu Jan 21, 2021 10:22 pm
Re: How to find wrongly inherited service source.
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to find wrongly inherited service source.
Closing threadkkuznetsov 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.