I am new to Sensu and currently attempting to change the notification interval when a check changes state. At the moment my checks are working, however when the state changes to critical for example the email notification to every subsequent check. I have attempted to added occurrences and refresh options but it doesn’t seem to be taken into consideration. An example of my configs are below, i have removed the options I have attempted to leave them as basic as possible.
By default it sends a new email every 30 occurrences.
Thus you could have a check like this:
{
“checks”: {
“check-ram-windows”: {
“command”: “check-windows-ram.rb.bat -w 90”,
“handlers”: [
“default”,
“mailer”,
“graphite_notify”
],
“interval”: 60,
“subscribers”: [
“windows”
],
“standalone”: false,
“occurrences”: 3,
“refresh”: 14400
}
}
}
``
This will alert after 3 occurrences, and repeat the email after 14,400 seconds or 4 hours
Cheers,
Joel
···
On Thursday, 9 June 2016 11:24:39 UTC+1, DC wrote:
I am new to Sensu and currently attempting to change the notification interval when a check changes state. At the moment my checks are working, however when the state changes to critical for example the email notification to every subsequent check. I have attempted to added occurrences and refresh options but it doesn’t seem to be taken into consideration. An example of my configs are below, i have removed the options I have attempted to leave them as basic as possible.