After upgrade to 4.3.21 the global mail variable is being used instead of the custom command configured inside of xymonserver.cfg
from xymoneserver.cfg:
For the xymond_alert module
MAIL="sendmail -f XYMON -s" # Command used to send an e-mail with a subject MAILC="sendmail -f XYMON " # Command used to send an e-mail with no subject
from xymond_alert:
xymon at zeus:/usr/local/xymon/server/bin$ ./xymond_alert --test 111-KMC454E conn 00003362 2015-10-29 08:54:14 send_alert 111-KMC454E:conn state Paging 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 120 00003362 2015-10-29 08:54:14 Failed 'HOST=050-CannonMFP TIME=*:0600:2200' (hostname not in include list) 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 123 00003362 2015-10-29 08:54:14 *** Match with 'HOST=* TIME=*:0600:2200' *** 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 124 00003362 2015-10-29 08:54:14 Failed 'IGNORE HOST=Zeus' (hostname not in include list) 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 125 00003362 2015-10-29 08:54:14 Failed 'IGNORE HOST=050-CannonMFP' (hostname not in include list) 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 126 00003362 2015-10-29 08:54:14 *** Match with 'MAIL jesse.johnson at chl.cc REPEAT=480M RECOVERED' *** 00003362 2015-10-29 08:54:14 Mail alert with command '/var/mail/xymon "Xymon [12345] 111-KMC454E:conn CRITICAL (RED)" jesse.johnson at chl.cc' 00003362 2015-10-29 08:54:14 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 127 00003362 2015-10-29 08:54:14 *** Match with 'MAIL peter.becker at chl.cc REPEAT=480M RECOVERED' *** 00003362 2015-10-29 08:54:14 Mail alert with command '/var/mail/xymon "Xymon [12345] 111-KMC454E:conn CRITICAL (RED)" peter.becker at chl.cc' xymon at zeus:/usr/local/xymon/server/bin$
After setting Global MAIL variable manually:
xymon at zeus:/usr/local/xymon/server/bin$ MAIL="sendmail -f XYMON" xymon at zeus:/usr/local/xymon/server/bin$ ./xymond_alert --test 111-KMC454E conn 00003489 2015-10-29 08:56:51 send_alert 111-KMC454E:conn state Paging 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 120 00003489 2015-10-29 08:56:51 Failed 'HOST=050-CannonMFP TIME=*:0600:2200' (hostname not in include list) 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 123 00003489 2015-10-29 08:56:51 *** Match with 'HOST=* TIME=*:0600:2200' *** 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 124 00003489 2015-10-29 08:56:51 Failed 'IGNORE HOST=Zeus' (hostname not in include list) 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 125 00003489 2015-10-29 08:56:51 Failed 'IGNORE HOST=050-CannonMFP' (hostname not in include list) 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 126 00003489 2015-10-29 08:56:51 *** Match with 'MAIL jesse.johnson at chl.cc REPEAT=480M RECOVERED' *** 00003489 2015-10-29 08:56:51 Mail alert with command 'sendmail -f XYMON "Xymon [12345] 111-KMC454E:conn CRITICAL (RED)" jesse.johnson at chl.cc' 00003489 2015-10-29 08:56:51 Matching host:service:dgroup:page '111-KMC454E:conn:printers:111LV' against rule line 127 00003489 2015-10-29 08:56:51 *** Match with 'MAIL peter.becker at chl.cc REPEAT=480M RECOVERED' *** 00003489 2015-10-29 08:56:51 Mail alert with command 'sendmail -f XYMON "Xymon [12345] 111-KMC454E:conn CRITICAL (RED)" peter.becker at chl.cc' xymon at zeus:/usr/local/xymon/server/bin$