alerts
list Nelandran N Moodley
Hi
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)
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' ***
00001236 2011-12-15 08:35:14 Mail alert with command 'mailx -s "Xymon [12345] jones:disk CRITICAL (RED)" user-258ac9534665@xymon.invalid<mailto:user-258ac9534665@xymon.invalid>'
What include list is the error referring to?
Thanks
Nelandran Moodley | Unix Systems Engineer | Group Technology Infrastructure | Standard Bank of South Africa | XX Borrowdale Road | RiverClub | Sandton | RSA
[cid:user-e4bddbdeb427@xymon.invalid2E3F00] user-c8de40b6a1a3@xymon.invalid<mailto:user-131d44444d6e@xymon.invalid>
Office: +XX XX XXX XXXX
Mobile: +XX XX XXXXXXX
Standard Bank email disclaimer and confidentiality note
Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email user-e5d4af142413@xymon.invalid (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
list Henrik Størner
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.invalidSERVICE=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