Any options for putting a specific alert in maintenance mode...

… so that is un-silences itself after a specified amount of time?

~Glenn

The stashes API is pretty flexible. There was some talk about implementing a stash TTL, but I don’t think it’s implemented. You could write a script to create a silence stash and add a ‘valid_until’ key, and have something that comes through and cleans up silence stashes that are no longer valid.

···

On Tuesday, February 18, 2014 6:05:39 AM UTC-8, Glenn Poston wrote:

… so that is un-silences itself after a specified amount of time?

~Glenn

The sensu-admin dashboard can do this (I think, haven’t used it):
https://github.com/sensu/sensu-admin/blob/master/app/models/downtime.rb

···

On Tue, Feb 18, 2014 at 12:41 PM, Nick Stielau nick.stielau@gmail.com wrote:

The stashes API is pretty flexible. There was some talk about implementing a stash TTL, but I don’t think it’s implemented. You could write a script to create a silence stash and add a ‘valid_until’ key, and have something that comes through and cleans up silence stashes that are no longer valid.

On Tuesday, February 18, 2014 6:05:39 AM UTC-8, Glenn Poston wrote:

… so that is un-silences itself after a specified amount of time?

~Glenn

The api as of 0.12.0 supports the new expire logic. It’s a countdown in seconds provided. It’s been implemented in sensu-cli by using sensu-cli silence NODE —expire 3600.

If you don’t have 0.12.0, you can use sensu-cli 0.2.5 and something like sensu-check-stashes https://github.com/agent462/sensu-check-stashes

Don’t have sensu-cli: gem install sensu-cli

Thanks,

Bryan

···

On Tue, Feb 18, 2014 at 10:30 PM, Kyle Anderson kyle@xkyle.com wrote:

The sensu-admin dashboard can do this (I think, haven’t used it):
https://github.com/sensu/sensu-admin/blob/master/app/models/downtime.rb

On Tue, Feb 18, 2014 at 12:41 PM, Nick Stielau nick.stielau@gmail.com wrote:

The stashes API is pretty flexible. There was some talk about implementing a stash TTL, but I don’t think it’s implemented. You could write a script to create a silence stash and add a ‘valid_until’ key, and have something that comes through and cleans up silence stashes that are no longer valid.

On Tuesday, February 18, 2014 6:05:39 AM UTC-8, Glenn Poston wrote:

… so that is un-silences itself after a specified amount of time?

~Glenn