define service by group not host possible?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lraymond
Posts: 29
Joined: Thu Jul 12, 2012 10:14 am

define service by group not host possible?

Post 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 :)
lraymond
Posts: 29
Joined: Thu Jul 12, 2012 10:14 am

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

Post 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!
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: define service by group not host possible?

Post by jsmurphy »

Glad you got it sorted!
Locked