Contact Template Not Working?
Thomas Quinlan
corsis_tom at yahoo.com
Mon Apr 19 22:22:27 CEST 2004
--- Marc Powell <marc at ena.com> wrote:
> 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
Marc,
Hhhmmm... I hadn't thought about not being able to use
templates for contacts. I just assumed it was
possible.
If I take "contact_name" and/or "alias" out of the
template, I get the same error.
Tom
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
-------------------------------------------------------
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_id=1470&alloc_id=3638&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