我正在使用sensu-mailer
处理程序发送电子邮件警报。它工作正常,因为我无法让它在每次发生时都发送电子邮件。无论occurrences
我给什么价值,它都不会改变
# config
"ping_website": {
"notification": "getpostman.com HTTP port 80",
"command": "/etc/sensu/plugins/check-http.rb -u <url>",
"subscribers": [ "base" ],
"standalone": true,
"interval": 60,
"occurrences": 1,
"handlers": ["default", "mailer"]
}
# log
{"timestamp":"2015-03-01T05:40:44.233827+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"ruby /etc/sensu/handlers/mailer.rb","name":"mailer"},"output":"only handling every 30 occurrences: localhost/ping_website\n"}