param substitutions other than command?

Is it possible to use param subs in other places like handler/occurrences ?

Hi,
I have one idea about this.

  1. Add custom key-value param in conf.d/client.json.

EX:

{

“client”: {

“name”: “i-424242”,

“address”: “127.0.0.1”,

“subscriptions”: [

“production”,

“webserver”

],

“threshold": {

“warn”: 10,

“crit”: 20

}

}

}

  1. Use this key-value in check-XX.json

EX:

{

“checks”: {

“chef_client”: {

“command”: “check-xxx.rb -w :::threshold.warn::: -c :::threshold.crit:::”,

“subscribers”: [

“mysql”

],

“interval”: 60

}

}

}

  1. restart sensu-client and sensu-server, you will feel ok in logs.

Good Luck.

Lawrency Meng

mengql@inspur.com

在 2014年10月8日星期三UTC+8下午9时19分44秒,Matt Moran写道:

···

Is it possible to use param subs in other places like handler/occurrences ?