Service Dependency Templates
Joe Rhett
jrhett at isite.net
Thu Jan 8 05:56:25 CET 2004
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
More information about the Users
mailing list