sensu-plugins/sensu-plugins-mailer

receiving the alerts before the refresh interval

balajik1992 opened this issue · 2 comments

Hi I am using sensu-plugins-mailer for the mail notification. I have set below configuration for my check
"interval": 60,
"refresh": 43200,
"timeout": 30,
"handlers": ["ose-email"],
my handler configuration is like below
"handlers": {
"ose-email": {
"type": "pipe",
"filters": ["state_change_only"],
filter configurations is like below
"filters": {
"state_change_only": {
"negate": false,
"attributes": {
"occurrences": "eval: value == 1 || ':::action:::' == 'resolve'"
}
}
}

I am receiving alert as ["warning: event filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin\nwarning: occurrence filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin\nmail -- sent alert for $hostname/$check-name to $mail-id

I have set half day refresh time (12 hours) but I am receiving the alert before that time
what to do for this?

As per the link: http://bit.ly/sensu-plugin check out extension filtering and do not use the deprecated event filtering.

I think the website doc needs to be updated as it still talks about the deprecated filters, @cwjohnston whos the best person to update those?