Service Dependency Templates

Joe Rhett jrhett at isite.net
Thu Jan 8 07:18:49 CET 2004


It sounds like you have everything set up properly.  Nagios does this by 
default.  It's already doing it.  Really.  Use a packet sniffer.  
Watch.  Learn.

On Wed, Jan 07, 2004 at 09:48:31PM -0800, Chris wrote:
> Where is that setup? In the hosts file?
> 
> Because I don't have any service checks specified in my hosts config.
> All my services including ping are set in my services config and they are
> set to the hostgroups.
> 
> So I have Services set for Mail servers, Web Servers, and Network Devices.
> 
> Thanks,
>          Chris S.
>          RHCE,CCNA
>         I.T.Engineer
>   http://www.sightspeed.com
> 
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Joe Rhett
> Sent: Wednesday, January 07, 2004 8:56 PM
> To: Chris
> Cc: Nagios-Users
> Subject: Re: [Nagios-users] Service Dependency Templates
> 
> 
> You're going the long way around a problem that Nagios has already solved.
> If any service fails, Nagios schedules a host check.  By default, this is
> ping.  If the host check fails, all other checks stop until the host check
> succeeds again.  In short, it does what you want already.
> (as long as your host checks are ping...)
> 
> On Wed, Jan 07, 2004 at 12:22:01PM -0800, Chris wrote:
> > Hello All,
> >
> > I finally started getting my nagios monitoring dialed in nicely using the
> > template system, having semi incomplete templates not registered and being
> > used by my other templates.
> >
> > I'm wondering if I can use the same system with dependencies?
> > I want to make a template like this...
> >
> > define servicedependency{
> > 	service_description		Ping Check
> > 	dependent_service_description	*
> > 	execution_failure_criteria	w,u,c
> > 	notification_failure_criteria	w,u,c
> > 	name					SrvDep
> > }
> >
> > Then have each one of my hosts use the template SrvDep like this...
> >
> > define servicedependency{
> > 	host_name				MailSrvr
> > 	dependent_host_name		MailSrvr
> > 	use					SrvDep
> > }
> >
> > Goal being to make all services on the MailSrvr dependent on Ping and if
> > Ping fails it will stop checks on all other services.
> >
> > But from looking at the docs it seems like servicedependency does have the
> > name/use feature for templating.
> >
> > Thanks,
> >          Chris S.
> >          RHCE,CCNA
> >         I.T.Engineer
> >   http://www.sightspeed.com
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Perforce Software.
> > Perforce is the Fast Software Configuration Management System offering
> > advanced branching capabilities and atomic changes on 50+ platforms.
> > Free Eval! http://www.perforce.com/perforce/loadprog.html
> > _______________________________________________
> > 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
> 
> --
> Joe Rhett                                                      Chief Geek
> JRhett at Isite.Net                                      Isite Services, Inc.
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> 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

-- 
Joe Rhett                                                      Chief Geek
JRhett at Isite.Net                                      Isite Services, Inc.


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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