service_group definition

Spencer Horn shorn at lssi.net
Wed May 12 20:00:45 CEST 2004


Group the hosts rather than the services, group the hosts in the host 
config file as such

define hostgroup{
 hostgroup_name  rtp_production_aix_servers
 alias           RTP Production AIX Servers
 contact_groups  sysadmins,noc,support,support-pagers
 members         
inqr0,inqr1,inqr2,inqr3,inqr4,hag0r,hag1r,hag2r,hag3r,wagr0,osar0,osar1,igwr0,gwlom0,gwlom1,bldr,wsbldr,ldds,mis1,inqedar0,inqr5
 }     

Define this in all services you want for these hosts as such,

define service{                        
 service_description            Connectivity
 use                            rtp-service-standard
 hostgroup_name                 
rtp_production_aix_servers,rtp_production_linux_servers,rtp_new_box_temp
 contact_groups                 sysadmins,noc,support,support-pagers
 check_command                  check_fping
 }     


Spencer

Vlad Didenko wrote:

> Hello, collagues!
>
> I was unable to find how to define service groups in the documentation 
> or in FAQ. I need to define a set of services and assign it to a group 
> of hosts. So that is a host gets added to a group it automatically 
> gets appropriate checks and if new service is added to be check in the 
> service group all hosts in that host group would get it. Corresponding 
> removals would be nice to get working as well.
>
> I am running the 1.2 version. Any suggestions?
>
> Sincerely,
> Vlad.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040512/343afccc/attachment.html>


More information about the Users mailing list