Advances servicedependency configuration
Paul Fitzpatrick
filsdepatrick at gmail.com
Fri Mar 20 21:55:10 CET 2009
Not quite. You still have to list each host explicitly. I am interested in
the case where you know that service1 is dependent on service2 on the
individual hosts of hostgroup1. I want to be able to express this
servicedependency relationship without needing to list each and every host
in the hostgroup.
On Thu, Mar 19, 2009 at 4:05 PM, Andy Shellam <andy-lists at networkmail.eu>wrote:
> Hi,
>
> I'm sure this has been implemented in Nagios 3. I wrote an on-line
> application that generated service dependencies for individual
> hosts/services in a group in Nagios 2, and I'm sure I read that was now
> no longer an issue in v3.
>
> From the manual -
>
> http://nagios.sourceforge.net/docs/3_0/objecttricks.html#same_host_dependency
> :
>
> "If you want to create service dependencies for multiple services that
> are dependent on services on the same host, leave the
> /dependent_host_name/ and /dependent_hostgroup_name/ directives empty."
>
> Is this what you were trying to achieve?
>
> Andy
>
> Paul Fitzpatrick wrote:
> > I agree (if I understand your request correctly) that it would be
> > *extremely* useful to have a config directive that effectively allows
> > you to say, 'in hostgroupX make serviceY depend on serviceZ on the
> > individual host itself' as opposed to making it dependent on serviceZ
> > on all the other hosts of hostgroupX.
> >
> > I have a script I run prior to running a config check that expands the
> > host member list of hostgroups with service dependencies and then
> > populates the servicedependency definition with the relevant
> > hostnames, but it's a hack with obvious drawbacks.
> >
> > An ex colleague of mine wrote a patch for v2.0 that defined a 'SELF'
> > directive that enabled defining servicedependencies as I described.
> > Unfortunately I am not a C programmer, so I wasn't able to duplicate
> > it for v3, so I wrote the perl script.
> >
> > I hope the enhancement will be considered
> >
> > Paul
> >
> > On Wed, Mar 18, 2009 at 8:14 AM, Michael Maymann <michael at maymann.org
> > <mailto:michael at maymann.org>> wrote:
> >
> > Hi List,
> >
> > Is there a way to solve my problem with the following
> > servicedependency config:
> > http://forums.meulie.net/viewtopic.php?f=59&t=4606
> > <http://forums.meulie.net/viewtopic.php?f=59&t=4606>
> >
> >
> > ---
> > I'm using Nagios 3.0.6 with nrpe.
> > I'm about to setup NRPE service dependencies and would like to
> > know the best way to do this.
> >
> > for a test i have configured the below and it works great, and i
> > could "just" make these servicedependencies for every host.
> > # NRPE dependencies
> > define servicedependency{
> > host_name host1
> > # hostgroup_name hostgroup1
> > service_description NRPE
> > dependent_host_name host1
> > # dependent_host_name $HOSTNAME$
> > dependent_service_description Current Users,Free Space,HW
> > info,Health,High CPU Load,Log file,NFS client stats,NTP
> > stratum,Pdflush Processes,RAID,Swap Space,Temps,Zombie Processes
> > execution_failure_criteria w,u,c,p
> > notification_failure_criteria w,u,c,p
> > }
> >
> > My only problem is that we have ---A LOT--- of hosts so this is
> > not an option :-)
> > I am aware of the -u option to check_nrpe but a combination of
> > only running some checks once every day and automated
> > powermanagement makes this no option either.
> > It would be nice if i somehow could get the functionality of the
> > commented lines:
> > # hostgroup_name hostgroup1
> > # dependent_host_name $HOSTNAME$
> > so for each host in hostgroup1 all the "dependent_service_
> > descriptions" services are dependent on NRPE in this specific host.
> > so if "hostgroup1" contains host1 and host2, "Current Users" on
> > host1 will be dependent on NRPE on host1 but not dependent on NRPE
> > on host2...
> >
> > Is there a way to do this or do i need to make a hack and/or put
> > an entry in the wishlist ?
> > ---
> >
> >
> > Thanks in advance
> > ~Maymann
> >
> >
> ------------------------------------------------------------------------------
> > Apps built with the Adobe(R) Flex(R) framework and Flex
> > Builder(TM) are
> > powering Web 2.0 with engaging, cross-platform capabilities.
> > Quickly and
> > easily build your RIAs with Flex Builder, the Eclipse(TM)based
> > development
> > software that enables intelligent coding and step-through debugging.
> > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > <mailto:Nagios-devel at lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> ------------------------------------------------------------------------------
> > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> > easily build your RIAs with Flex Builder, the Eclipse(TM)based
> development
> > software that enables intelligent coding and step-through debugging.
> > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090320/e6598443/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list