hobbit-alerts.cfg - Can HOST be within PAGE?
In the hobbit-alerts.cfg file can a HOST line be withing a PAGE line to select particular hosts based on what page they are on? For example, if we want to mail alerts for all the servers on the SERVERS page that begin with the letters d or t and only the ones that are on the SERVERS page would the following entries work?
PAGE=SERVERS HOST=%[dt].*\.ourdomain\.com MAIL $ADMINS SERVICE=disk,cpu,memory,procs DURATION>1h COLOR=red RECOVERED REPEAT=8h FORMAT=PLAIN TIME=W:700:1900
**Please apply a generous amount of all the usual disclaimers here.**
That should work. I use similar constructions with no problem. Steve
On Tue, Nov 1, 2011 at 4:43 PM, Stuart, Ed <Ed.Stuart at austinenergy.com>wrote:
**
In the hobbit-alerts.cfg file can a HOST line be withing a PAGE line to select particular hosts based on what page they are on? For example, if we want to mail alerts for all the servers on the SERVERS page that begin with the letters d or t and only the ones that are on the SERVERS page would the following entries work?
PAGE=SERVERS HOST=%[dt].*\.ourdomain\.com MAIL $ADMINS SERVICE=disk,cpu,memory,procs DURATION>1h COLOR=red RECOVERED REPEAT=8h FORMAT=PLAIN TIME=W:700:1900
**Please apply a generous amount of all the usual disclaimers here.**
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- If they give you ruled paper, write the other way. -Juan Ramon Jimenez, poet, Nobel Prize in literature (1881-1958)
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
participants (2)
-
Ed.Stuart@austinenergy.com
-
sholmes42@mac.com