why some services are not applied to this host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

why some services are not applied to this host

Post 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
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: why some services are not applied to this host

Post by caterpillartce »

Profile has been PM'ed to lmiltchev and rkennedy.

Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: why some services are not applied to this host

Post 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.
Former Nagios Employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: why some services are not applied to this host

Post 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?
Former Nagios Employee
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: why some services are not applied to this host

Post 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!
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: why some services are not applied to this host

Post 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?
Former Nagios Employee
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: why some services are not applied to this host

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: why some services are not applied to this host

Post 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!
Former Nagios Employee
Locked