A standalone check with subscribers, will it work ?


#1

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.


#2

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](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.