sensu-plugins-mailer icon indicating copy to clipboard operation
sensu-plugins-mailer copied to clipboard

receiving the alerts before the refresh interval

Open balajik1992 opened this issue 7 years ago • 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?

balajik1992 avatar May 09 '17 08:05 balajik1992

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

majormoses avatar Jun 10 '17 19:06 majormoses

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?

majormoses avatar Jun 10 '17 19:06 majormoses