<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style><style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
</head>
<body tabindex="0" aria-label="Message body" fpstyle="1" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
You can do this with a custom script.  I believe there is a thrah in the archive for this but here is what I came up with to handle it:<br>
<br>
XYMON_NAME=`$XYMON $XYMONSERVERHOSTNAME "hostinfo host=$BBHOSTNAME" | $SED -e 's/|/\n/g' | $GREP NAME | $CUT -d: -f2`<br>
<br>
=G=<br>
<br>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Xymon <xymon-bounces@xymon.com> on behalf of Kevin VerMeer <KVerMeer@peoplenetonline.com><br>
<b>Sent:</b> Tuesday, March 11, 2014 10:12 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] alert scripting</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">In our hosts.cfg file, we include a NAME setting to standardize a naming convention for the several xymon clients.  In creating alert scripts, I would like to display this name, rather than the clients hostname.  Is this possible, without
 manually grepping through the hosts.cfg file?  It appears that BBHOSTNAME displays the hostname rather than the value set by name.</p>
<p class="MsoNormal">Suggestions appreciated.</p>
</div>
</div>
</div>
</div>
</body>
</html>