sensu-plugins / sensu-plugins-mailer

This plugin is an email handler for Sensu.
http://sensu-plugins.io
MIT License
17 stars 37 forks source link

receiving the alerts before the refresh interval #53

Open balajik1992 opened 7 years ago

balajik1992 commented 7 years ago

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?

majormoses commented 7 years ago

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

majormoses commented 7 years ago

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?