Hello,
I will PM my profile in a minute...
host: dqwuacachep02
host template: windows-server
host group: windows-servers (added to this group via the above host template)
one of the services that should have been applied to the host as it is applied to the host group, but not: Host_Memory_Usage
Thanks for your help in troubleshooting this issue.
Jessica Zhang
why some services are not applied to this host
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: why some services are not applied to this host
Profile has been PM'ed to lmiltchev and rkennedy.
Thanks!
Thanks!
Re: why some services are not applied to this host
Profile received, looks like it's missing your objects.cache. Could you PM this over as well? It's located at /usr/local/nagios/var/objects.cache and will show us how everything is compiled after templates.
Former Nagios Employee
Re: why some services are not applied to this host
I'm not finding anything when searching for 'Host_Memory_Usage' from your objects.cache, could you show me where you've used that so I can reference it?
Former Nagios Employee
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: why some services are not applied to this host
Basically this service (and a few others) is configured to be applied to host group "windows-servers".
And this host is in "windows-servers" host group as it is using template "windows-server", and the template has host group "windows-servers".
I am not sure how to show you where the service is used, not sure if the attached screenshot of the service definition helps? Other hosts in the same host group seem to have this service, and I attached a screenshot to show that. And this is not the only service that this host is supposed to have, but doesn't. I am just using this one as an example.
Please let me know if you need anything else. Thanks!
And this host is in "windows-servers" host group as it is using template "windows-server", and the template has host group "windows-servers".
I am not sure how to show you where the service is used, not sure if the attached screenshot of the service definition helps? Other hosts in the same host group seem to have this service, and I attached a screenshot to show that. And this is not the only service that this host is supposed to have, but doesn't. I am just using this one as an example.
Please let me know if you need anything else. Thanks!
You do not have the required permissions to view the files attached to this post.
Re: why some services are not applied to this host
Looking at the difference between two hosts, I believe the issue is you're passing a hostgroup directly (which would counter the template) -
A working one -
What happens if you manually add the host to the windows-servers hostgroup? Does it work at that point?
Code: Select all
define host {
host_name dqwuacachep02
use windows-server
alias TTT-BCP cache server, also monitors arwengwebp02
address 137.230.194.228
hostgroups perf_testing_pcs_servers
contact_groups TTT TCE
register 1
}
Code: Select all
define host {
host_name a2as305
use windows-server
alias Aurora Corp Server
address 172.20.136.18
contact_groups Aurora TCE
register 1
}
Former Nagios Employee
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: why some services are not applied to this host
I accidentally fixed the issue yesterday when I noticed all other hosts were added to additional host groups (besides the windows-servers group got from template) by modifying the host group, while this host was modified itself to add host group to its own definition.
Thanks for the help!
Thanks for the help!
Re: why some services are not applied to this host
Nice job on the accidental fix 
Going to close this one up, but feel free to make a new thread in the future!
Going to close this one up, but feel free to make a new thread in the future!
Former Nagios Employee