Thank you. Will do.<br><br><div><span class="gmail_quote">On 1/24/07, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jan 24, 2007 at 08:58:02AM -0500, Geoff Hallford wrote:<br><br>> I was wondering if there is anyway to change the default email alert<br>> contents to include the DESCR tag information for a host (without creating a
<br>> custom alert script)? We have many support people who don't know what all of<br>> the hosts are for or if it goes down, what that means and I want to make it<br>> easier for them to know what is affected.
<br><br>You'll either have to create a custom alert script, or tweak the<br>hobbitd/do_alert.c C code. If you choose the latter, then the<br>message_subject() and message_text() routines are the ones you're after;
<br>you can get the DESCR tag with code like this:<br><br>    namelist_t *hinfo;<br>    char *descr;<br><br>    hinfo = hostinfo(alert->hostname);<br>    descr = bbh_item(hinfo, BBH_DESCRIPTION);<br><br>Note that this will return a NULL pointer if there is no DESCR tag for
<br>this host.<br><br><br><br>Regards,<br>Henrik<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>'If my answers frighten you then you should cease asking scary questions.' --Sam Jackson