Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
{
"plivosms":{
"id":"AC0ds98gd098g", // auth id
"token":"a9d8ag98daf98ga9fd8g", // auth token
"number":"15551112222", // the sms will be sent from this number, include country code
"recipients":{
"15552223333": {
"subscriptions":[ "web" ], // subscriptions that should trigger sms
"checks":[], // checks that should trigger sms
"cutoff": 1 // 1 for warning, 2 for critical alerts (default is 2)
},
"11111222222": {
"subscriptions":[ 'all' ], // 'all'
"checks":[ "mysql-alive" ],
"cutoff": 2
},
"11111223333": { // not specifying "subscriptions" is same as 'all'
"checks":[ "check_dns", "check_http" ]
},
"11111224444": {
"cutoff": 1 // "subscriptions" and "checks" are optional, defaults 'all'
}
}
}
}
Example Sensu Core Integration
/etc/sensu/conf.d/plivosms_handler.json
{
"handlers": {
"plivosms": {
"type": "pipe",
"command": "/opt/sensu/embedded/bin/handler-plivosms.rb"
}
},
"plivosms":{
"id":"098gf09d8fg", // auth id
"token":"a9d8ag98daf98ga9fd8g", // auth token
"number":"15551112222", // the sms will be sent from this number, include country code
"recipients":{
"11111223333": { // not specifying "subscriptions" is same as 'all'
"checks":[ "check_dns", "check_http" ]
},
"11111224444": {
"cutoff": 1 // this guys gets all alerts including warnings
}
}
}
}
If you want to make Plivosms a default handler, meaning any check without a specific handler defined will notify Plivosms when there is an alert, open the default handler configuration file and add Plivosms to the set of handlers:
/etc/sensu/conf.d/default_handler.json
{
"handlers": {
"default": {
"type": "set",
"handlers": [
"plivosms"
]
}
}
}
Restart Sensu for your configuration changes to take effect: service sensu-server restart
FAQs
Unknown package
We found that sensu-plugins-plivo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.