27 Sep
2013
27 Sep
'13
11:03 a.m.
Is it possible to add the CLIENT or COMMENT tag of a host to the email alert?
30 Sep
30 Sep
1:47 a.m.
On 27 September 2013 21:03, Charles Phillips <cphillips.ia at gmail.com> wrote:
Is it possible to add the CLIENT or COMMENT tag of a host to the email alert?
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.
Probably easier to parse the output of the "hostinfo" command for xymon, like so:
$XYMON $XYMSRV 'hostinfo host=my.host.name'
Or use "xymondboard" to query and ask for the fields XMH_CLIENTALIAS (CLIENT) and XMH_COMMENT, like so:
$XYMON $XYMSRV 'xymondboard host=my.host.namefields=hostname,XMH_COMMENT,XMH_CLIENTALIAS' | head -1
J
4650
Age (days ago)
4653
Last active (days ago)
1 comments
2 participants
participants (2)
-
cphillips.ia@gmail.com
-
jlaidman@rebel-it.com.au