Ok, it looks like I might be able to simplify this with additional hostgroups:
define hostgroup { hostgroup_name windows-servers alias windows-servers } define host{ use default host_name OMAJELNS01 address 10.0.1.127 parents OMAJELFW01 hostgroups windows-servers } define service{ use server-emailonly-noticket hostgroup_name windows-servers service_description cpu check_command check_nrpe_win_cpu!80!90 } What do you guys think? On Tue, May 6, 2008 at 9:42 AM, Deborah Martin <[EMAIL PROTECTED]> wrote: > I think you're right, my email seems to be coming in whatever order it > likes... > > doh! > > > > -----Original Message----- > > *************************************************************************** > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > Any unauthorised distribution or copying is strictly prohibited. > > Whilst Kognitio Limited takes steps to prevent the transmission of viruses > via e-mail, we can not guarantee that any email or attachment is free from > computer viruses and you are strongly advised to undertake your own > anti-virus > precautions. > > Kognitio grants no warranties regarding performance, use or quality of any > e-mail or attachment and undertakes no liability for loss or damage, > howsoever caused. > > Kognitio Limited > Registered in England: 0212 7833 > Registered Address: 3a Waterside Park > Cookham Road > Bracknell > Berks > RG12 1RB > VAT number: 864 4378 92 > *************************************************************************** > > > > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > Sent: 06 May 2008 15:43 > To: Terry > Cc: Deborah Martin; Nagios Users mailinglist > > > Subject: Re: [Nagios-users] service templates > > > I'm pretty sure Deborah is confused on this point, mistaking "Service > Templates" for "Service Profiles". If I were you I would start looking > at Monarch (or similar). > > On Tue, 2008-05-06 at 09:39 -0500, Terry wrote: > > Please point me to these service profiles in the documentation, having > > trouble finding them. > > > > On Tue, May 6, 2008 at 9:31 AM, Deborah Martin > > <[EMAIL PROTECTED]> wrote: > > > They are available as part of the standard config. I've used them since > > > 2005. > > > > > > > > > -----Original Message----- > > > > > > > *************************************************************************** > > > This email and any files transmitted with it are confidential and > intended > > > solely for the use of the individual or entity to whom they are > addressed. > > > Any unauthorised distribution or copying is strictly prohibited. > > > > > > Whilst Kognitio Limited takes steps to prevent the transmission of > viruses > > > via e-mail, we can not guarantee that any email or attachment is free > from > > > computer viruses and you are strongly advised to undertake your own > anti-virus > > > precautions. > > > > > > Kognitio grants no warranties regarding performance, use or quality of > any > > > e-mail or attachment and undertakes no liability for loss or damage, > > > howsoever caused. > > > > > > Kognitio Limited > > > Registered in England: 0212 7833 > > > Registered Address: 3a Waterside Park > > > Cookham Road > > > Bracknell > > > Berks > > > RG12 1RB > > > VAT number: 864 4378 92 > > > > *************************************************************************** > > > > > > > > > > > > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > > > Sent: 06 May 2008 15:34 > > > To: Terry > > > Cc: Nagios Users mailinglist > > > Subject: Re: [Nagios-users] service templates > > > > > > > > > > > > > > > What you're talking about sounds like Service Profiles, which, I > > > believe, are not available via regular nagios configs, but rather via a > > > third party GUI configuration tool like Monarch (amongst others, > > > probably). > > > > > > On Tue, 2008-05-06 at 09:30 -0500, Terry wrote: > > > > Thanks for the reply. I do this already. This just cuts down on the > > > > number of lines in a service check. It doesn't allow me to glob a > set > > > > of services into a single service or host definition though, which is > > > > what I want (i think). > > > > > > > > On Tue, May 6, 2008 at 9:20 AM, Deborah Martin > > > > <[EMAIL PROTECTED]> wrote: > > > > > Terry, > > > > > You can do exactly that : > > > > > > > > > > In the main services.cfg, define your template > > > > > > > > > > define service{ > > > > > name my-service ; The 'name' of this > service > > > > > template, referenced in other service definitions > > > > > active_checks_enabled 1 ; Active service > checks > > > are > > > > > enabled > > > > > passive_checks_enabled 1 ; Passive service > checks > > > are > > > > > enabled/accepted > > > > > parallelize_check 1 ; Active service > checks > > > > > should be parallelized (disabling this can lead to major > performance > > > > > problems) > > > > > obsess_over_service 1 ; We should obsess > over > > > this > > > > > service (if necessary) > > > > > check_freshness 0 ; Default is to NOT > > > check > > > > > service 'freshness' > > > > > notifications_enabled 1 ; Service > notifications > > > are > > > > > enabled > > > > > event_handler_enabled 1 ; Service event > handler > > > is > > > > > enabled > > > > > flap_detection_enabled 1 ; Flap detection is > > > enabled > > > > > process_perf_data 1 ; Process > performance > > > data > > > > > retain_status_information 1 ; Retain status > > > information > > > > > across program restarts > > > > > retain_nonstatus_information 1 ; Retain non-status > > > > > information across program restarts > > > > > > > > > > register 0 ; DONT REGISTER > THIS > > > > > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > > > > > } > > > > > > > > > > You need to change / add whatever else you want in there. > > > > > > > > > > Then for the service definition specific to a host : > > > > > > > > > > define service{ > > > > > use my-service ; this will load the > > > service > > > > > template my-service > > > > > host_name yourhostname > > > > > service_description yourdescription > > > > > contact_groups yourcontactgroups > > > > > servicegroups yourservicegroups > > > > > max_check_attempts 1 > > > > > normal_check_interval 5 > > > > > retry_check_interval 1 > > > > > notifications_enabled 1 ; Service notifications are > > > enabled > > > > > notification_interval 240 > > > > > notification_period 24x7 > > > > > notification_options c,r ; Notifications are sent > out > > > on > > > > > CRITICAL or RECOVERY > > > > > check_period 24x7 > > > > > check_command check_ping!100.0,20%!500.0,60% > > > > > } > > > > > > > > > > You can do lots of stuff with this. I use the above for checking > > > databases, > > > > > but each database is slightly different > > > > > so I use a template for the base, then define only the differences > in > > > the > > > > > individual service definitions. Also, > > > > > if you define the check_command in the template, but want to > change the > > > > > check_command slightly like the parameters passed to it, anything > you > > > put in > > > > > the service definition overrides the template definition. Very > useful > > > if you > > > > > want to test a plugin on a live system but don't want to change > for > > > > > everything until you're happy with it. > > > > > > > > > > Hope that helps. > > > > > > > > > > regards, > > > > > deborah > > > > > -----Original Message----- > > > > > From: Terry [mailto:[EMAIL PROTECTED] > > > > > Sent: 06 May 2008 15:11 > > > > > To: Nagios Users mailinglist > > > > > Subject: [Nagios-users] service templates > > > > > > > > > > > > > > > I am figuring this is pretty obvious but the coffee hasn't kicked > in > > > > > yet or something. I want to set up service templates of some > sorts. > > > > > I see there are service groups but this isn't it exactly because > you > > > > > have to define the host with each service. For example, a > template > > > > > would contain all of our base windows service that we monitor and > then > > > > > one of our level 1 or 2 guys can go in and 'use windows-base' to > > > > > simply include that set of services for a host. I hope this > makes > > > > > sense. > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > > > Don't miss this year's exciting event. There's still time to save > $100. > > > > > Use priority code J8TL2D2. > > > > > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao > > > > > ne > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users@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 > > > > > > > > > > > > > > *************************************************************************** > > > > > This email and any files transmitted with it are confidential and > > > intended > > > > > solely for the use of the individual or entity to whom they are > > > addressed. > > > > > Any unauthorised distribution or copying is strictly prohibited. > > > > > > > > > > Whilst Kognitio Limited takes steps to prevent the transmission of > > > viruses > > > > > via e-mail, we can not guarantee that any email or attachment is > free > > > from > > > > > computer viruses and you are strongly advised to undertake your > own > > > anti-virus > > > > > precautions. > > > > > > > > > > Kognitio grants no warranties regarding performance, use or > quality of > > > any > > > > > e-mail or attachment and undertakes no liability for loss or > damage, > > > > > howsoever caused. > > > > > > > > > > Kognitio Limited > > > > > Registered in England: 0212 7833 > > > > > Registered Address: 3a Waterside Park > > > > > Cookham Road > > > > > Bracknell > > > > > Berks > > > > > RG12 1RB > > > > > VAT number: 864 4378 92 > > > > > > > > > *************************************************************************** > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > > Don't miss this year's exciting event. There's still time to save > $100. > > > > Use priority code J8TL2D2. > > > > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao > > > ne > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users@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 > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to save $100. > > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao > > > ne > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users@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 > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Nagios-users mailing list Nagios-users@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