question about service dependencies and templa tes
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Tue Feb 18 17:08:51 CET 2003
This is something I recently decided I needed to test out myself. I've got
pretty much the same setup as you. (It wouldn't surprise me if you had
10-20 service checks dependent on nrpe_active, as I do.)
I can only suggest you check this out:
http://nagios.sourceforge.net/docs/1_0/templatetricks.html#servicedependency
I recently bounced a question very similar to yours off the list, without
any helpful responses. All I can suggest is that you set up a trivial case
on a non-critical machine and test it out. This is what I intend to do,
when I have time.
Let's make a deal: Whichever one of us tests this first, summarise to the
list...? :)
jc
> -----Original Message-----
> From: timwest at warwickshire.gov.uk [mailto:timwest at warwickshire.gov.uk]
> Sent: Tuesday, February 18, 2003 6:50 AM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] question about service dependencies and
> templates
>
>
> ***** This e-mail is communicated in confidence. It is
> intended for the
> recipient only and may not be disclosed further without the
> express consent
> of the sender. *****
>
> I'm using nrpe to monitor the status of various filesystems on several
> machines on our network.
>
> I have created the following service definition
>
> define service {
> hostgroup_name host_group_a
> service_description root_filesystem
> ...
> ...
> }
>
> and
>
> define service {
> hostgroup_name host_group_a
> service_description nrpe_active
> ...
> ...
> }
>
> Now I want to create a service dependency for root_filesystem on
> nrpe_active without creating a separate entry for each
> filesystem on each
> machine.
>
> From reading the documentation I can make root_filesystem dependent on
> nrpe_active for all of the machines in host_group_a, but I
> only want it
> dependent on nrpe on the machine with the filesystem.
>
> The ability to add the same test to several hosts, just by
> changing the
> contents of the host group is great, but if I have to add a
> separate entry
> for the service dependency then takes that usefulness away.
>
> Has anyone any ideas.
>
>
> --
> Tim West, CAMS ICT Services
> Warwickshire County Council
> Email: timwest at warwickshire.gov.uk
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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