grouing services

Melanie Pfefer melanie_pfefer at yahoo.co.uk
Wed Oct 28 21:54:47 CET 2009


thanks but does this method works if I have host not the same as service_description, for each machine?

thanks again
--- On Wed, 28/10/09, Morris, Patrick <patrick.morris at hp.com> wrote:

> From: Morris, Patrick <patrick.morris at hp.com>
> Subject: Re: [Nagios-users] grouing services
> To: "Melanie Pfefer" <melanie_pfefer at yahoo.co.uk>
> Cc: "nagios-users at lists.sourceforge.net" <nagios-users at lists.sourceforge.net>
> Date: Wednesday, 28 October, 2009, 15:40
> Melanie Pfefer wrote:
> > hi,
> > 
> > I am trying to group a list of services, using a
> servicegroup or other methods.
> > 
> > Currently, I have this config file
> > 
> > define service{
> >         name 
>                
>           my-service   
>               use 
>                
>        
>    generic-service       
>          check_period 
>                
>   24x7             
>              
> max_check_attempts           
>   4             
>              
>    normal_check_interval     
>      240       
>                
>      retry_check_interval   
>         1       
>                
>        contact_groups   
>              
> admins             
>       notification_options   
>         w,u,c,r     
>                
>    notification_interval     
>      240       
>                
>      notification_period   
>          24x7   
>                
>         register     
>                
>   0             
>              
>    }
> > 
> > define service{
> >         use   
>                
>          my-service
> >         host 
>                
>           hostA
> >     
>    service_description     
>        SERVICEA
> >     
>    check_command       
>        
>    my_command!SERVICEA
> > }
> > 
> > define service{
> >         use   
>                
>          my-service
> >         host 
>                
>           hostB
> >     
>    service_description     
>        SERVICEB
> >     
>    check_command       
>        
>    my_command!SEFVICEB
> > }
> > 
> > 
> > 
> > Each time, I add 1 service for each
> service_description. Do you have any other optimal method?
> > 
> > thank you
> >   
> 
> The question isn't very clear, but it sounds like you want
> to look into hostgroups.  Then you can define a check
> against that hostgroup once using something like
> "check_command my_command!$SERVICEDESC$."
> 
> 
> 


      

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list