Re: [Nagios-users] Use of customized macro in CONTACT definition

2012-04-26 Thread Andreas Ericsson
On 04/25/2012 08:07 PM, Deborah Martin wrote: Alex, Thanks, but I set _EMAILID in my contact definition so by echoing it in my script via defining a service that calls that script as a plugin which has a contact defined as test-admin surely I have set it. According to the docs, nagios

[Nagios-users] Use of customized macro in CONTACT definition

2012-04-25 Thread Deborah Martin
Hi, I'm trying to define a customized contact macro so that I can pass it to an event handler My contact definition is :- define contact{ contact_nametest-admin alias test-admin service_notification_period 24x7

Re: [Nagios-users] Use of customized macro in CONTACT definition

2012-04-25 Thread Alex Griffin
You said you tried to echo “EMAILID=$NAGIOS__CONTACTEMAILID”, but echoing this string will not set EMAILID to the value of $NAGIOS_CONTACTEMAILID. You should set EMAILID, and then echo it afterwards. Otherwise, looking over your settings they seem to be fine. Alex Griffin --- Tech Team

Re: [Nagios-users] Use of customized macro in CONTACT definition

2012-04-25 Thread Deborah Martin
referring to the documentation link on the nagios web interface and search for macros. Regards, Deborah From: Alex Griffin [agrif...@nagios.com] Sent: 25 April 2012 18:16 To: Nagios Users List Subject: Re: [Nagios-users] Use of customized macro in CONTACT