<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Our contact group names are modeled after exchange distribution lists.  Sometimes notifications are sent to multiple lists (service desk, dev team, oracle team).  I need the notification emails to include the short names of the other contact groups (hence distribution list names) configured for the service.  I understand that this is not a guarantee that a notification will be sent to all groups (since they could have different notification options).</div><div><br></div><div>To my surprise Nagios 3 does not include this macro.</div><div><br></div><div><b>$SERVICECONTACTGROUPS$ - </b>"A comma separated list of the short names taken from the contact_groups directive of the service definition."</div><div><br></div><div>In the meantime I can use this ugly hack inside a script to get the list of contact-groups fit for emailing:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>grep "$SERVICEDESC" ~nagios/var/objects.cache -B 1 -A 3 | grep $HOSTADDRESS -A 5 | grep contact_groups | awk '{print $2}'</div><div><br></div><div>Thoughts?</div><div><br></div></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div>---</div><div><br></div><div>Caylan</div><br class="Apple-interchange-newline"></div></span> </div><br></body></html>