Page 1 of 1

define service by group not host possible?

Posted: Thu Jul 12, 2012 1:17 pm
by lraymond
As I am building this windows.cfg file, I know down the road I will have 10 x's the number of linux groups, database servers, web servers, etc. and I am wondering, rather than a mile long .cfg file, I was hoping to;

create a host - windows server1, windows server 2
create a host_group - webservers

Then in the define_service;
rather than host_name, can you do a host_group?

The point is, if I have 10 webservers, do I need 10 host_names, then each service defined for each group?

As I said, I am reading the doc's and will be reading a lot tonight, just wanted to run that noob question through :)

[solved]Re: define service by group not host possible?

Posted: Thu Jul 12, 2012 1:39 pm
by lraymond
Sorry for wasting time on this one;

Just for the heck I changed a service from;
host_name windows_server1
to
hostgroup_name windows-servers

Restarted, and there they were! Hate sounding like a noob sometimes!

Re: define service by group not host possible?

Posted: Thu Jul 12, 2012 5:23 pm
by jsmurphy
Glad you got it sorted!