Sensu Remediation or Automatic Event handler in Sensu

I have used remediation to restart a process on client side using Sensu Remediation, But I want to limit the times of remediation run.

Like I want my Sensu remediator handler to try restarting a process only for few times say 2 or 3 times max and after that it should throw alert.

Can anyone faced same scenario?

Thanks in advance.

It sounds like you want the occurrences value to be set to [2, 3] ?

···

On Mon, May 4, 2015 at 9:29 PM, Digdarshan Singh <digdarshan.singh@gmail.com> wrote:

I have used remediation to restart a process on client side using Sensu
Remediation, But I want to limit the times of remediation run.

Like I want my Sensu remediator handler to try restarting a process only for
few times say 2 or 3 times max and after that it should throw alert.

Can anyone faced same scenario?

Thanks in advance.

Thanks for your valuable suggestion.

But, remediator is also working like a check. I mean it’s actually triggering a check at the given interval, also restarting a process again and again at given interval. I want it to make it so intelligent that it should check the process first and if it is stopped then only restart.

···

On Tuesday, 5 May 2015 19:51:30 UTC+5:30, Kyle Anderson wrote:

It sounds like you want the occurrences value to be set to [2, 3] ?

On Mon, May 4, 2015 at 9:29 PM, Digdarshan Singh > > digdarsh...@gmail.com wrote:

I have used remediation to restart a process on client side using Sensu

Remediation, But I want to limit the times of remediation run.

Like I want my Sensu remediator handler to try restarting a process only for

few times say 2 or 3 times max and after that it should throw alert.

Can anyone faced same scenario?

Thanks in advance.

Hi,

Did you every find a fix for this issue. I also have the same problem which is triggering a remediation when not required again and again at given interval.

···

Mishal

On Tuesday, May 12, 2015 at 5:31:36 AM UTC-4, Digdarshan Singh wrote:

Thanks for your valuable suggestion.

But, remediator is also working like a check. I mean it’s actually triggering a check at the given interval, also restarting a process again and again at given interval. I want it to make it so intelligent that it should check the process first and if it is stopped then only restart.

On Tuesday, 5 May 2015 19:51:30 UTC+5:30, Kyle Anderson wrote:

It sounds like you want the occurrences value to be set to [2, 3] ?

On Mon, May 4, 2015 at 9:29 PM, Digdarshan Singh > > digdarsh...@gmail.com wrote:

I have used remediation to restart a process on client side using Sensu
Remediation, But I want to limit the times of remediation run.

Like I want my Sensu remediator handler to try restarting a process only for
few times say 2 or 3 times max and after that it should throw alert.

Can anyone faced same scenario?

Thanks in advance.