[Xymon] IP of host in mail subject
jeremy at laidman.org
Sat Aug 4 13:30:09 CEST 2018
On 31 July 2018 at 05:35, Gabo Suárez <jgsuareza1984 at gmail.com> wrote:
> Hi greetings from Ecuador,
> Please your help, I need that the XYMON monitoring mails include the IP of
> the host-client
> How do i do it?
The IP address of the client is in the variable $MACHIP. I think this
variable is only available to scripts, not the standard MAIL function. To
do this, you can create a script that sends an email.
For example, use this in alerts.cfg:
SCRIPT /usr/local/bin/mailscript placeholder FORMAT=TEXT
Then create a script that goes something like this:
mail -s "$BBHOSTNAME $BBSVCNAME - $BBCOLORLEVEL $ACKCODE $RECOVERED
$DOWNSECMSG" $RCPT <<EOF
IP is $MACHIP
For more information about the Xymon alert environment variables, check out
the Alerts documentation:
and the alerts.cfg man page:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xymon