Default service dependencies (templating)

Ben Polson ben.polson at ehealth.com
Sat Apr 2 20:45:42 CEST 2005


You can do some tricks to make this easier, though I'm not certain it is
exactly what you have in mind.  Take a look at:
http://nagios.sourceforge.net/docs/2_0/templatetricks.html.  I use
hostgroup_name instead of host_name in my services, service escalations and
service dependencies to manage hosts that have the same checks running, that
way I only have to edit a couple of definitions that will apply to dozens of
hosts.  Hope this helps.

-Ben.

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Kevin Myer
Sent: Saturday, April 02, 2005 7:55 AM
To: Nagios Users
Subject: [Nagios-users] Default service dependencies (templating)


With hosts and service definitions, you can define default templates and
then
reference them when creating the host or service, to fill in many default
values.

Can the same be done with service dependencies?  For example, I have a
service
defined that monitors HTTPS connections.  I also have a service defined that
monitors when SSL certificates expire.  If HTTPS goes down on a server,
obviously the SSL certificate check will fail.

In looking through servicedependencies.cfg, it looks like I can define a
specific service that depends on another specific service.  So I can go
through
and define for each host that I do HTTPS and SSL certificate checks for that
one depends on the other.  But is there a way to define that the root
command
(check_https) depends on another root command (check_cert), regardless what
host its checked against?  I guess maybe what I'm looking for amounts to
checkcommand dependency, so that I don't have to define a service dependency
for each and every host thats checked...

Kevin

--
Kevin M. Myer
Senior Systems Administrator
Lancaster-Lebanon Intermediate Unit 13
(717) 560-6140



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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