[Xymon] alert scripting

Galen Johnson Galen.Johnson at sas.com
Tue Mar 11 15:38:55 CET 2014


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:

XYMON_NAME=`$XYMON $XYMONSERVERHOSTNAME "hostinfo host=$BBHOSTNAME" | $SED -e 's/|/\n/g' | $GREP NAME | $CUT -d: -f2`

=G=

________________________________
From: Xymon <xymon-bounces at xymon.com> on behalf of Kevin VerMeer <KVerMeer at peoplenetonline.com>
Sent: Tuesday, March 11, 2014 10:12 AM
To: xymon at xymon.com
Subject: [Xymon] alert scripting

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.
Suggestions appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140311/8d01db38/attachment.html>


More information about the Xymon mailing list