> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Ron Gage > Sent: Wednesday, March 01, 2006 3:52 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Can templates be cascaded together? > > Can we cascade a template as in the following: > > define service{ > name blah > ... > register 0 > } > define service{ > name info > use blah > ... > register 0 > } > define service{ > name checkit > use info > ... > }
That's almost identical to the example usage in the documentation and should work as you expect - http://nagios.sourceforge.net/docs/2_0/templaterecursion.html (see Inheritance Chainging) " define host{ host_name bighost1 check_command check-host-alive notification_options d,u,r max_check_attempts 5 name hosttemplate1 } define host{ host_name bighost2 max_check_attempts 3 use hosttemplate1 name hosttemplate2 } define host{ host_name bighost3 use hosttemplate2 } " The above are chained definitions for real hosts (register 1 assumed) but it'll work for templates too I'm sure. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users@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