[hobbit] help with alert config

Henrik Stoerner henrik at hswn.dk
Fri Apr 29 23:55:12 CEST 2005


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 ees2y at pagehost.virginia.edu 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 ees2y at pagehost.virginia.edu REPEAT=1 FORMAT=SMS


Henrik




More information about the Xymon mailing list