<div dir="ltr"><div class="gmail_extra">On 27 September 2013 21:03, Charles Phillips <span dir="ltr"><<a href="mailto:cphillips.ia@gmail.com" target="_blank">cphillips.ia@gmail.com</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is it possible to add the CLIENT or COMMENT tag of a host to the email alert?<br>

</blockquote><div><br></div><div>I suspect that it's not possible without using a SCRIPT to generate the email.  You could use xymongrep to pull out the hosts.cfg entry and parse it for values for CLIENT and COMMENT.</div>

<div><br></div><div>Probably easier to parse the output of the "hostinfo" command for xymon, like so:</div><div><br></div><div><div>$XYMON $XYMSRV 'hostinfo host=<a href="http://my.host.name">my.host.name</a>'</div>

</div><div><br></div><div>Or use "xymondboard" to query and ask for the fields XMH_CLIENTALIAS (CLIENT) and XMH_COMMENT, like so:</div><div><br></div><div><div>$XYMON $XYMSRV 'xymondboard host=<a href="http://my.host.name">my.host.name</a> fields=hostname,XMH_COMMENT,XMH_CLIENTALIAS' | head -1</div>

</div><div><br></div><div>J<br></div><div><br></div></div></div></div>