Using Templates

Dennis Hopp dhopp at GOCSC.com
Fri Jan 20 17:41:05 CET 2006


 

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of apos at gmx.net
> Sent: Friday, January 20, 2006 10:36 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Using Templates
> 
> Hi,
> 
> is it possible to use more than one template for one service?
> 
> e.g.:
> 
> define service{
> ...
> use devicetype,sla,monitoringhost
> ...
> }

Not in this way....

What I believe you can do is create a base template, then have another
template use that base, then have a third template use the second
template.  If any of the templates have the same options defined, the
last one wins.

So...

define template{
	....
}

define template2{
	use template
	....
}

define template3{
	use template2
	....
}

define service{
	use template3
}

--Dennis


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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