On a specific check based on the event which could be critical or warning I would like to send out email to different email distribution list. Secondly my current check configuration is for 60 seconds and I would not want emails to be triggered every second. I would like to trigger only once for a event and stop sending emails until its resolved. Is this possible?
For sending out email I am using mail in linux environment.
There is currently no combination of tunables to do exactly what you
want, but you can modify the handler to have it's own filter_repeated
function with whatever logic you need.
···
On Wed, Sep 3, 2014 at 5:10 AM, reachmani <reachmani@gmail.com> wrote:
Hi Folks,
Couple of things.
On a specific check based on the event which could be critical or warning I
would like to send out email to different email distribution list. Secondly
my current check configuration is for 60 seconds and I would not want emails
to be triggered every second. I would like to trigger only once for a event
and stop sending emails until its resolved. Is this possible?
For sending out email I am using mail in linux environment.
1> I have added refresh attribute in checks. But it doesn’t seems to be working, I still continue to get emails every minute. As per the documentation here is what it says.
Custom key-values can be added to a check definition, which will be included in event data, enabling handler creativity.
Common custom check definitions
occurrences: Number of event occurrences before the handler should take action
refresh: Number of seconds handlers should wait before taking second action. Relies on sensu-plugin.
Can you please let me know which plugin I need to install to get the refresh working. Where should I deploy this?
There is currently no combination of tunables to do exactly what you
want, but you can modify the handler to have it’s own filter_repeated
function with whatever logic you need.
On a specific check based on the event which could be critical or warning I
would like to send out email to different email distribution list. Secondly
my current check configuration is for 60 seconds and I would not want emails
to be triggered every second. I would like to trigger only once for a event
and stop sending emails until its resolved. Is this possible?
For sending out email I am using mail in linux environment.
On Thu, Sep 4, 2014 at 3:09 AM, reachmani <reachmani@gmail.com> wrote:
Thanks for your response Kyle.
I have couple more follow up questions.
1> I have added refresh attribute in checks. But it doesn't seems to be
working, I still continue to get emails every minute. As per the
documentation here is what it says.
Custom key-values can be added to a check definition, which will be included
in event data, enabling handler creativity.
Common custom check definitions
occurrences: Number of event occurrences before the handler should take
action
refresh: Number of seconds handlers should wait before taking second action.
Relies on sensu-plugin.
Can you please let me know which plugin I need to install to get the refresh
working. Where should I deploy this?
There is currently no combination of tunables to do exactly what you
want, but you can modify the handler to have it's own filter_repeated
function with whatever logic you need.
On Wed, Sep 3, 2014 at 5:10 AM, reachmani <reac...@gmail.com> wrote:
> Hi Folks,
>
> Couple of things.
>
> On a specific check based on the event which could be critical or
> warning I
> would like to send out email to different email distribution list.
> Secondly
> my current check configuration is for 60 seconds and I would not want
> emails
> to be triggered every second. I would like to trigger only once for a
> event
> and stop sending emails until its resolved. Is this possible?
> For sending out email I am using mail in linux environment.
>
> {
> "handlers": {
> "email": {
> "type": "pipe",
> "command": "mail -s 'sensu alert' your@address"
> }
> }
> }
>
> I am using mail command as I dont have smtp host to send emails. Would I
> be
> able to mail the event details in this scenario?
>
> Thanks,
> Mani
I am using mail command instead of echo in my code. Since my check executes ever minute my mail box gets filled. I am expecting refresh parameter to work so that I can set delay for my next notification.
···
On Thursday, 4 September 2014 21:35:44 UTC+5:30, reachmani wrote:
I am using pipe handler, this could be the reason refresh isnt working?
“handler_system_mail”: {
“type”: “pipe”,
“command”: “echo ‘System critical!!!’”
},
On Thursday, 4 September 2014 20:22:59 UTC+5:30, Kyle Anderson wrote:
Are you using a handler that can interpret that data? (like most
Hi , I am trying to do the same thing (echoing to the console), but it does not works.
On running “sensu-server” , I get this in the logs sensu-server.log
1> I have added refresh attribute in checks. But it doesn’t seems to be
working, I still continue to get emails every minute. As per the
documentation here is what it says.
Custom key-values can be added to a check definition, which will be included
in event data, enabling handler creativity.
Common custom check definitions
occurrences: Number of event occurrences before the handler should take
action
refresh: Number of seconds handlers should wait before taking second action.
Relies on sensu-plugin.
Can you please let me know which plugin I need to install to get the refresh
working. Where should I deploy this?
There is currently no combination of tunables to do exactly what you
want, but you can modify the handler to have it’s own filter_repeated
function with whatever logic you need.
On a specific check based on the event which could be critical or
warning I
would like to send out email to different email distribution list.
Secondly
my current check configuration is for 60 seconds and I would not want
emails
to be triggered every second. I would like to trigger only once for a
event
and stop sending emails until its resolved. Is this possible?
For sending out email I am using mail in linux environment.