Hi
I've configured a test alert as per xymon sample alert.
HOST=jones MAIL nelan1 at ananzi.co.za SERVICE=http REPEAT=1h MAIL nelan1 at ananzi.co.za 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 nelan1 at ananzi.co.za 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 nelan1 at ananzi.co.za SERVICE=cpu,disk,memory' *** 00001236 2011-12-15 08:35:14 Mail alert with command 'mailx -s "Xymon [12345] jones:disk CRITICAL (RED)" nelan1 at ananzi.co.za<mailto:nelan1 at ananzi.co.za>'
What include list is the error referring to?
Thanks
Nelandran Moodley | Unix Systems Engineer | Group Technology Infrastructure | Standard Bank of South Africa | 44 Borrowdale Road | RiverClub | Sandton | RSA [cid:image001.png at 01CCBB0B.DA2E3F00] nelandran.moodley at standardbank.co.za<mailto:Bongane.mabasa at standardbank.co.za> Office: +27 11 700 1542 Mobile: +27 82 7792059
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 disclaimer at standardbank.co.za (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
On Thu, 15 Dec 2011 09:28:20 +0200, "Moodley, Nelandran N" <Nelandran.Moodley at standardbank.co.za> wrote:
I've configured a test alert as per xymon sample alert.
HOST=jones MAIL nelan1 at ananzi.co.za SERVICE=http REPEAT=1h MAIL nelan1 at ananzi.co.za 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 nelan1 at ananzi.co.za 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 nelan1 at ananzi.co.za SERVICE=cpu,disk,memory' ***
And here you get a match for the disk alert.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
Nelandran.Moodley@standardbank.co.za