help with alert config
list Eric E *hs Schwimmer
Hi all, I'm trying to set up my alerts and I cant quite get them working, a simple example of my config is as follows: <snip> SERIVCE=conn COLOR=red TIME=W:0750:1710 EXPAGE=%.*/(hscs_servers|special|telemed) MAIL user-4b9e3c6ae778@xymon.invalid REPEAT=1 FORMAT=SMS </snip> The problem, I believe, is in the EXPAGE line. When I remove said line, I get the conn pages, as expected, albeit all of the ones I was trying to remove with the EXPAGE line. When I include the EXPAGE line, I get pages for everything EXCEPT conn pages. Can anybody give me a clue as to how I should format the EXPAGE tag? Many thanks, -Eric
list Henrik Størner
▸
On Fri, Apr 29, 2005 at 01:55:12PM -0400, Schwimmer, Eric E *HS wrote:
Hi all, I'm trying to set up my alerts and I cant quite get them working, a simple example of my config is as follows: <snip> SERIVCE=conn COLOR=red TIME=W:0750:1710 EXPAGE=%.*/(hscs_servers|special|telemed) MAIL user-4b9e3c6ae778@xymon.invalid REPEAT=1 FORMAT=SMS </snip> The problem, I believe, is in the EXPAGE line. When I remove said line, I get the conn pages, as expected, albeit all of the ones I was trying to remove with the EXPAGE line. When I include the EXPAGE line, I get pages for everything EXCEPT conn pages. Can anybody give me a clue as to how I should format the EXPAGE tag?
The SERVICE, COLOR, TIME and EXPAGE should go on one line. The SERIVCE is a typo, but enough to throw the config-parser off track. If you just want to avoid pages for hosts on the "hscs_servers", "special" and "telemed" pages, you can just look for those words without caring about where they appear in the page-path. Unless you use "anchors" - the ^ and $ signs - in the regexp, it will match anywhere in the page-path string. So I think this does what you want: SERVICE=conn COLOR=red TIME=W:0750:1710 EXPAGE=%hscs_servers|special|telemed MAIL user-4b9e3c6ae778@xymon.invalid REPEAT=1 FORMAT=SMS Henrik
list Eric E *hs Schwimmer
Once again, my fingers betray me, and my face is red :) Thanks for the help, Henrik! -Eric -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Fri 4/29/2005 5:55 PM To: user-ae9b8668bcde@xymon.invalid Cc: Subject: Re: [hobbit] help with alert config
▸
On Fri, Apr 29, 2005 at 01:55:12PM -0400, Schwimmer, Eric E *HS wrote:Hi all, I'm trying to set up my alerts and I cant quite get them working, a simple example of my config is as follows: <snip> SERIVCE=conn COLOR=red TIME=W:0750:1710 EXPAGE=%.*/(hscs_servers|special|telemed) MAIL user-4b9e3c6ae778@xymon.invalid REPEAT=1 FORMAT=SMS </snip> The problem, I believe, is in the EXPAGE line. When I remove said line, I get the conn pages, as expected, albeit all of the ones I was trying to remove with the EXPAGE line. When I include the EXPAGE line, I get pages for everything EXCEPT conn pages. Can anybody give me a clue as to how I should format the EXPAGE tag?
The SERVICE, COLOR, TIME and EXPAGE should go on one line. The SERIVCE is a typo, but enough to throw the config-parser off track. If you just want to avoid pages for hosts on the "hscs_servers", "special" and "telemed" pages, you can just look for those words without caring about where they appear in the page-path. Unless you use "anchors" - the ^ and $ signs - in the regexp, it will match anywhere in the page-path string. So I think this does what you want: SERVICE=conn COLOR=red TIME=W:0750:1710 EXPAGE=%hscs_servers|special|telemed MAIL user-4b9e3c6ae778@xymon.invalid REPEAT=1 FORMAT=SMS Henrik