On Thu, 15 Dec 2011 09:28:20 +0200, "Moodley, Nelandran N"
<user-c8de40b6a1a3@xymon.invalid> wrote:
I've configured a test alert as per xymon sample alert.
HOST=jones
MAIL user-258ac9534665@xymon.invalid SERVICE=http REPEAT=1h
MAIL user-258ac9534665@xymon.invalid SERVICE=cpu,disk,memory
When I run the test I get the following error in bold:
./bin/xymoncmd xymond_alert --test jones disk
2011-12-15 08:35:14 Using default environment file
/export/home/xymon/server/etc/xymonserver.cfg
00001236 2011-12-15 08:35:14 send_alert jones:disk state Paging
00001236 2011-12-15 08:35:14 Matching host:service:dgroup:page
'jones:disk:NONE:' against rule line 119
00001236 2011-12-15 08:35:14 *** Match with 'HOST=jones' ***
00001236 2011-12-15 08:35:14 Matching host:service:dgroup:page
'jones:disk:NONE:' against rule line 120
00001236 2011-12-15 08:35:14 Failed 'MAIL user-258ac9534665@xymon.invalid
SERVICE=http
REPEAT=1h' (service not in include list)
As expected. This rule has "SERVICE=http", so an alert for a "disk" status
does not match. The "include list" is the list of service names listed in
the "SERVICE=..." specification.
00001236 2011-12-15 08:35:14 Matching host:service:dgroup:page
'jones:disk:NONE:' against rule line 121
00001236 2011-12-15 08:35:14 *** Match with 'MAIL user-258ac9534665@xymon.invalid
SERVICE=cpu,disk,memory' ***
And here you get a match for the disk alert.
Regards,
Henrik