Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receiving the alerts before the refresh interval #53

Open
balajik1992 opened this issue May 9, 2017 · 2 comments
Open

receiving the alerts before the refresh interval #53

balajik1992 opened this issue May 9, 2017 · 2 comments

Comments

@balajik1992
Copy link

balajik1992 commented May 9, 2017

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
Copy link
Member

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

@majormoses
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants