[Xymon] alert scripting
Kevin VerMeer
KVerMeer at peoplenetonline.com
Tue Mar 11 16:49:04 CET 2014
Works like a charm. Thanks.
From: Galen Johnson [mailto:Galen.Johnson at sas.com]
Sent: Tuesday, March 11, 2014 9:39 AM
To: Kevin VerMeer; xymon at xymon.com
Subject: RE: alert scripting
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/50e64b3f/attachment.html>
More information about the Xymon
mailing list