[smokeping-users] Re: alertee question

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Wed Sep 21 18:17:25 MEST 2005


On Thu, Sep 15, 2005 at 01:26:35PM -0500, James Bouressa wrote:
 
> My understanding of this is that for this (excerpted) config:
> =======================================
> *** Alerts ***
> to = tom at example.com
> from = probe at example.com
> 
> [snip]
 
> # this will email tom
> +++ foo
> menu = foo
> title = foo
> host = foo
> probe = FPing
> alerts = bigloss,someloss,startloss
> 
> # this will email tom and dick
> +++ bar
> menu = bar
> title = bar
> host = bar
> probe = FPing
> alerts = bigloss,someloss,startloss
> alertee = dick at example.com
> 
> 
> # this will email tom, dick and harry?
> +++ baz
> menu = baz
> title = baz
> host = baz
> probe = FPing
> alerts = bigloss,someloss,startloss
> alertee = harry at example.com
> =======================================
> 
> There is no way to have the "baz" section email JUST harry at example.com 
> (in this example?).

Right, there's currently no way to override the recipient list in the
'Alerts' section. Might be useful, though - I'll add it to the TODO list.

> What about this way, would this configuration JUST email Harry for "baz" 
> alerts?:
> 
> =======================================
> *** Alerts ***
> to = /dev/null
> from = probe at example.com

This syntax (/dev/null) probably won't work, but piping to eg.
/bin/true might. 

to = |/bin/true

> [snip]
 
> # this will email just tom?
> +++ foo
> menu = foo
> title = foo
> host = foo
> probe = FPing
> alerts = bigloss,someloss,startloss
> alertee = tom at example.com

(and so on.) Yes, I think this should work.


Note that up to and including Smokeping 2.0.1 the smokeping_config
document was missing explanations on some of the 'Alerts' section
variables.  This has been fixed in 2.0.2. The doc on the website is
also up to date.

HTH,
-- 
Niko

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list