[Xymon] alert e-mail scripts
Kevin King
kc6ovd at gmail.com
Fri Sep 28 18:23:43 CEST 2018
Adam, Here is what I found. Running the script as xymon in the xymon env, it worked fine. But when called from the alert.cfg it did not. It seams when called from the alert file the options are not passed to the script as $1 $2 etc. when I changed $ RECIPIENT to $RCPT and removed the $RECIPIENT=$1.
Sent from Mail for Windows 10
From: Adam Goryachev
Sent: Friday, September 28, 2018 12:54 AM
To: xymon at xymon.com
Subject: Re: [Xymon] alert e-mail scripts
On 28/09/18 00:59, KING, KEVIN wrote:
Thanks
Monitoring.
' | mailx $RECIPIENT
Check "man mailx", it would seem you have a newer version (or version supplied by a different package) and might need to adjust some parameters/options/config.
Also, verify that $RECIPIENT has a value when called from xymon.
Regards,
Adam
--
Adam Goryachev
Website Managers
P: +61 2 8304 0000 adam at websitemanagers.com.au
F: +61 2 8304 0001 www.websitemanagers.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20180928/e4d6bea7/attachment.html>
More information about the Xymon
mailing list