Sensu-Plugins-twilio
Functionality
Files
- bin/check-num-recordings.rb
- bin/handler-twiliosms.rb
Usage
{
"twiliosms":{
"token":"a9d8ag98daf98ga9fd8g",
"number":"+111111111",
"sid":"AC0ds98gd098gf09d8fg",
"recipients":{
"+11111111111": {
"sensu_roles":[ "web-server" ],
"sensu_checks":[],
"sensu_level": 1
},
"+11111222222": {
"sensu_roles":[],
"sensu_checks":[ "mysql-alive" ],
"sensu_level": 2
}
}
}
}
token
, sid
, and number
from twilio account configuration.
sensu_checks
-> matching checks
sensu_roles
-> matching subscribers or special values:
-
all
matches all events -
keepalive
matches keepalive events
sensu_level
-> minimum matching check return status value
-
0
-> activate for all check statuses: ok+warning+critical+unknown -
1
-> activate for warning+critical+unknown -
2
-> activate for critical+unknown -
3
-> activate for unknown