<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thanks Patrick<BR>
 <BR>
But how can i provide the name of contact group when it depends upon the service or host which is triggering the event. Is there a way that i can provide contact group dynamically to CONTACTGROUPMEMBERS ?<BR>
 <BR>
e.g $CONTACTEMAIL:CONTACTGROUPMEMBERS:,"<BR>
 <BR>
which can give me comma separated list of emails associated with that perticular service or host?<BR>
 <BR>
or if there is any ready made script for Nagios and Netcool integration?<BR><BR><B>Regards<BR></B><B><BR>Khurram Malik<BR></B><BR><BR><BR><BR> <BR> <BR><BR><BR> <BR>> Date: Wed, 17 Feb 2010 23:48:08 -0800<BR>> From: patrick.morris@hp.com<BR>> To: malik_khurram@hotmail.com<BR>> CC: nagios-users@lists.sourceforge.net<BR>> Subject: Re: [Nagios-users] MACRO PROBLEM<BR>> <BR>> Morris, Patrick wrote:<BR>> > Khurram Malik wrote:<BR>> > <BR>> >> Hi<BR>> >> <BR>> >> I am using Nagios 3.0.6 and in an integration project i want Nagios to <BR>> >> send alerts to Netcool. I am using Host/Service Global Event Handlers. <BR>> >> I am able to get the maximum information via the following macros<BR>> >> <BR>> >> $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $SERVICEDESC$<BR>> >> <BR>> >> But i also want some other info via macros and i am using the <BR>> >> following link to see if macro is enabled or disabled<BR>> >> http://nagios.sourceforge.net/docs/3_0/macrolist.html#hostoutput<BR>> >> <BR>> >> I want to get CONTACTEMAIL and CONTACTPAGER contents but these macros <BR>> >> are disabled with Global Host/Service handler, what is the easiest way <BR>> >> to get info for the conact macros with Global Event Handlers. I can <BR>> >> see $_CONTACTGROUPMEMBERS$_ is enabled with Global Event Handlers but <BR>> >> I am unable to get any value, seems like a bug.<BR>> >> <BR>> ><BR>> > This is not a bug. These macros are not available with event handlers, <BR>> > since eventhandlers do not have contacts associated with them. If you <BR>> > look at the matrix on tha page you linked, you'll see that CONTACTEMAIL <BR>> > and CONTACTPAGER work only with host and service notifications.<BR>> > <BR>> <BR>> After re-reading your original question, I may have misunderstood, and <BR>> you're wondering why<BR>> <BR>> $CONTACTGROUPMEMBERS$ doesn't work.<BR>> <BR>> See notes 5 and 7 on the page you linked. These macros work as on-demand-macros in event handlers, since event handler have no contacts associated with them. To obtain a list of conatct group members in that contacts, you would also need to provide the name of the group.<BR>> <BR>                                         </body>
</html>