Hi,
I firstly defined an ‘standalone alone’ check. then later, I need to have a subscriber for this check so that I can send mail to its subscriber. For e.g, I used this json file.
{
“checks”: {
“local_influxdb_alive”: {
“command”: “check-influxdb.rb -t 5”,
“handlers”: [
“default”
],
“standalone”: true,
“subscribers”: [
“production”
],
“interval”: 15
}
}
}
``
As in https://github.com/sensu-plugins/sensu-plugins-mailer
. The mailer handler would send email to the check subscribers.
I wonder if it is working or is it a recommended way. Thanks.
One more thing, when considering the use case of standalone vs subscribers. I found out it is not possible to define a subscriber check in the client.
···
On Sunday, December 27, 2015 at 8:45:48 PM UTC+7, Chris Dung Tran-Duong wrote:
Hi,
I firstly defined an ‘standalone alone’ check. then later, I need to have a subscriber for this check so that I can send mail to its subscriber. For e.g, I used this json file.
{
“checks”: {
“local_influxdb_alive”: {
“command”: “check-influxdb.rb -t 5”,
“handlers”: [
“default”
],
“standalone”: true,
“subscribers”: [
“production”
],
“interval”: 15
}
}
}
``
As in [https://github.com/sensu-plugins/sensu-plugins-mailer
](GitHub - sensu-plugins/sensu-plugins-mailer: This plugin is an email handler for Sensu.). The mailer handler would send email to the check subscribers.
I wonder if it is working or is it a recommended way. Thanks.