Contact Template Not Working?

Mueller, Karl KMueller at netsuite.com
Mon Apr 19 22:22:18 CEST 2004


Templates absolutely work for contacts.

Incidentally, I believe templates work for everything

Karl


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Monday, April 19, 2004 1:13 PM
To: Thomas Quinlan; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Contact Template Not Working?

Thomas Quinlan <mailto:corsis_tom at yahoo.com> wrote:
> Hi,
> 
> Can anyone tell me why this doesn't work?
> 
> define contact{
> contact_name datacenter-contact
> alias datacenter-contact
> service_notification_period 24x7
> host_notification period 24x7
> service_notification_options w,u,c,r
> host_notification_options d,u,r
> service_notification_commands notify-by-email
> host_notification_commands host-notify-by-email register 0 } 
> 
> define contact{
> contact_name nagiosadmin
> alias Nagios Admin
> email root at localhost
> use datacenter-contact
> }
> 
> I get:
> 
> Error:  Template 'datacenter-contact' specified in contact definition
> could not be found (config file '/etc/nagios/contacts.cfg', line 19) 
> 
> Any help is greatly appreciated.  I have every other aspect of Nagios
> (hosts, hostgroups, etc) using templating, but I can't figure out for
> the life of me why it doesn't work for contacts.  


I don't have any experience with using templates for contacts but I'm
'bothered' by the use of contact_name in the template. It just seems
counter-intuitive to me in the same way that specifying a host_name in a
template would be. What happens if you remove that and alias from the
template? Also, the documentation doesn't explicitly say that you can
use templates for contacts but it doesn't explicitly say you can't
either so that's a question, at least in my mind. It is implied that it
should work though.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&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