Is it possible to create "host groups" for alerting as per the bbwarnsetup.cfg and bbwarnrules.cfg files in Big Brother?
The hobbit-alerts.cfg file mentions I can use regular expression type wildcards, but some servers for which I want the same alerting do not follow any such pattern. Does using "%hostA1|hostA2|hostB3|otherhost" fake the grouping?
TIA, Andy.
#####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
On Tue, Jan 18, 2005 at 02:03:40PM +1300, Andy France wrote:
Is it possible to create "host groups" for alerting as per the bbwarnsetup.cfg and bbwarnrules.cfg files in Big Brother?
Yes. There are actually two way you can do that - the documented one, and the simple one :-)
The hobbit-alerts.cfg file mentions I can use regular expression type wildcards, but some servers for which I want the same alerting do not follow any such pattern. Does using "%hostA1|hostA2|hostB3|otherhost" fake the grouping?
That's the documented way of doing it, yes. Although your example is not quite correct - it should be "%(hostA1|hostA2|hostB3|otherhost)".
The simple way is this: "hostA1,hostA2,hostB3,otherhost"
Note: You cannot mix the two - it's either a regular expression, or a simple list.
Regards, Henrik
Is it also possible to have page groups setup the same way?
as in:
HOST=* SERVICE=conn REPEAT=10 RECOVERED MAIL= "1235556666 at cellcarrier.net,1235557777 at cellcarrier.net,1235558888 at cellcarrier.net" DURATION>30 COLOR=red
Rick
On Tue, 2005-01-18 at 00:29, Henrik Stoerner wrote:
On Tue, Jan 18, 2005 at 02:03:40PM +1300, Andy France wrote:
Is it possible to create "host groups" for alerting as per the bbwarnsetup.cfg and bbwarnrules.cfg files in Big Brother?
Yes. There are actually two way you can do that - the documented one, and the simple one :-)
The hobbit-alerts.cfg file mentions I can use regular expression type wildcards, but some servers for which I want the same alerting do not follow any such pattern. Does using "%hostA1|hostA2|hostB3|otherhost" fake the grouping?
That's the documented way of doing it, yes. Although your example is not quite correct - it should be "%(hostA1|hostA2|hostB3|otherhost)".
The simple way is this: "hostA1,hostA2,hostB3,otherhost"
Note: You cannot mix the two - it's either a regular expression, or a simple list.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Jan 18, 2005 at 09:21:13AM -0600, rwaegner wrote:
Is it also possible to have page groups setup the same way?
HOST=* SERVICE=conn REPEAT=10 RECOVERED MAIL="1235556666 at cellcarrier.net,1235557777 at cellcarrier.net,1235558888 at cellcarrier.net" DURATION>30 COLOR=red
Yes. The parameter after the MAIL keyword is passed directly to the "mail" command, so assuming your "mail" utility supports it, then a comma-separated list of recipients should work. I think all Unix "mail" implementations allow that.
Henrik
participants (3)
-
Andy@zespri.com
-
henrik@hswn.dk
-
rwaegner@questia.com