Page 1 of 1

why some services are not applied to this host

Posted: Wed Sep 14, 2016 10:24 am
by caterpillartce
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

Re: why some services are not applied to this host

Posted: Wed Sep 14, 2016 10:29 am
by caterpillartce
Profile has been PM'ed to lmiltchev and rkennedy.

Thanks!

Re: why some services are not applied to this host

Posted: Wed Sep 14, 2016 10:37 am
by rkennedy
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.

Re: why some services are not applied to this host

Posted: Wed Sep 14, 2016 11:20 am
by rkennedy
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?

Re: why some services are not applied to this host

Posted: Wed Sep 14, 2016 11:53 am
by caterpillartce
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!

Re: why some services are not applied to this host

Posted: Wed Sep 14, 2016 3:44 pm
by rkennedy
Looking at the difference between two hosts, I believe the issue is you're passing a hostgroup directly (which would counter the template) -

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
	}
A working one -

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
	}	
What happens if you manually add the host to the windows-servers hostgroup? Does it work at that point?

Re: why some services are not applied to this host

Posted: Thu Sep 15, 2016 10:00 am
by caterpillartce
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!

Re: why some services are not applied to this host

Posted: Thu Sep 15, 2016 11:30 am
by rkennedy
Nice job on the accidental fix :-)

Going to close this one up, but feel free to make a new thread in the future!