Hello,
My few services are in unknown state, and showing the below error message
NSClient - ERROR: Invalid password.
I have checked all services, password is same for all but few are in unknown state, I have deleted those but still showing on nagios screen.
Screenshot is attached for verification.
Kindly assist.
Thank you!
Orphan services removal
Orphan services removal
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Orphan services removal
Please follow the steps in this KB article and let us know if it solves your problem:
https://support.nagios.com/kb/article.php?id=27
https://support.nagios.com/kb/article.php?id=27
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Orphan services removal
Thank you Box293
I have already checked this, but did not get a way to fix this issue.
Can you please suggest me anything else.
Much appreciated.
Thank you!
I have already checked this, but did not get a way to fix this issue.
Can you please suggest me anything else.
Much appreciated.
Thank you!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Orphan services removal
I suspect you have services that have been assigned to multiple hosts (usually using a hostgroup).
You can go into CCM and under services search for all the Uptime services. Edit one of them and click the "Manage Hosts" or "Manage Hostgroups" buttons to check what the service has been assigned to. Repeat until you find the offending service.
If it's not defined this way, the Hostgroups may be inherited by a template the service uses (or a template the template uses).
This command will give you a hint as to which file might be the cause of the issue:
Does this help?
You can go into CCM and under services search for all the Uptime services. Edit one of them and click the "Manage Hosts" or "Manage Hostgroups" buttons to check what the service has been assigned to. Repeat until you find the offending service.
If it's not defined this way, the Hostgroups may be inherited by a template the service uses (or a template the template uses).
This command will give you a hint as to which file might be the cause of the issue:
Code: Select all
grep -B 2 -A 2 -R 'Uptime' /usr/local/nagios/etc/services/As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Orphan services removal
Great!
Really very helpful.
I checked by your suggested way and found that the service is only defined for one host and for hostgroup. If I would removed hostgroup from that service, it would not show on all hostgroup servers which I dont want.
I just dont want this service on only one server of this hostgroup.
How I can remove this, I have already checked in manage host and there is only one host added for it.
Kindly suggest.
Thank you
Really very helpful.
I checked by your suggested way and found that the service is only defined for one host and for hostgroup. If I would removed hostgroup from that service, it would not show on all hostgroup servers which I dont want.
I just dont want this service on only one server of this hostgroup.
How I can remove this, I have already checked in manage host and there is only one host added for it.
Kindly suggest.
Thank you
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Orphan services removal
This reply in your other thread is the answer:
https://support.nagios.com/forum/viewto ... 13#p188813
https://support.nagios.com/forum/viewto ... 13#p188813
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Orphan services removal
I tried to edit the orphan service from nagios, it did not allow me to edit it and show the following screen
This service appears to make use of an advanced configuration using the Core Config Manager
This service appears to make use of an advanced configuration using the Core Config Manager
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Orphan services removal
Yes, you need to go into Configure > Core Configuration Manager > Monitoring > Services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Orphan services removal
Yes! I did the same.
But I am unable to see those services in list, and from service details as I tried to edit it but all in vain.
Kindly see the screenshots for further suggestions.
Thank you!
But I am unable to see those services in list, and from service details as I tried to edit it but all in vain.
Kindly see the screenshots for further suggestions.
Thank you!
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Orphan services removal
I'm confident that you have services that are assigned to multiple hosts.
You can go into CCM and under services search for all the 'CPU Usage' services. Edit one of them and click the "Manage Hosts" or "Manage Hostgroups" buttons to check what the service has been assigned to. Repeat until you find the offending service.
If it's not defined this way, the Hostgroups may be inherited by a template the service uses (or a template the template uses).
This command will give you a hint as to which file might be the cause of the issue:
Which will give you a hint as to which service in CCM you need to edit.
If this service is using hostgroups, then you need to make the changes to the service to exclude the hosts you don't want to receive this service (as explained in the other post). Otherwise remove the host from the hostgroup that the service is using.
You can go into CCM and under services search for all the 'CPU Usage' services. Edit one of them and click the "Manage Hosts" or "Manage Hostgroups" buttons to check what the service has been assigned to. Repeat until you find the offending service.
If it's not defined this way, the Hostgroups may be inherited by a template the service uses (or a template the template uses).
This command will give you a hint as to which file might be the cause of the issue:
Code: Select all
grep -B 2 -A 2 -R 'CPU Usage' /usr/local/nagios/etc/services/If this service is using hostgroups, then you need to make the changes to the service to exclude the hosts you don't want to receive this service (as explained in the other post). Otherwise remove the host from the hostgroup that the service is using.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.