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