Using Templates

apos at gmx.net apos at gmx.net
Sat Jan 21 10:42:44 CET 2006


> --- Ursprüngliche Nachricht ---
> Von: "Dennis Hopp" <dhopp at GOCSC.com>
> An: <apos at gmx.net>, <nagios-users at lists.sourceforge.net>
> Betreff: RE: [Nagios-users] Using Templates
> Datum: Fri, 20 Jan 2006 10:41:05 -0600
> 
>  
> 
> > -----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
> 

I feared that answer, so I've to do more 'Template Engineering' ;)

Thanks anyway Dennis.


Alex

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
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