flapjack global handler

hi all

i’m trying to send all check results to flapjack on a centos 6.6 install (sensu 0.18.0 + flapjack 1.4.0)
according to the flapjack enterprise handler docs, i put in /etc/sensu/conf.d, the file flapjack_handler.json:
$ cat /etc/sensu/conf.d/flapjack_handler.json
{
“flapjack”: {
“host”: “localhost”,
“port”: 6379,
“db”: 0,
“channel”: “events”,
“filter_metrics”: false
}
}

``

i can see in /var/log/sensu/sensu-server.log that the handler is being loaded (correctly?)
{“timestamp”:“2015-05-21T10:42:24.960581+1000”,“level”:“warn”,“message”:“loading config file”,“file”:"/etc/sensu/conf.d/flapjack_handler.json"}
{“timestamp”:“2015-05-21T10:42:24.960664+1000”,“level”:“warn”,“message”:“config file applied changes”,“file”:"/etc/sensu/conf.d/flapjack_handler.json",“changes”:{“flapjack”:[null,{“host”:“localhost”,“port”:6379,“db”:0,“channel”:“events”,“filter_metrics”:false}]}}

``

but on redis i don’t seem to see the handler pushing to the redis events channel
(monitoring from redis-cli) i see:
1432169165.136317 [0 127.0.0.1:52659] “set” “lock:leader” “1432169165135”
1432169165.298839 [0 127.0.0.1:52659] “get” “client:sensu-server.ozproxy.com”
1432169165.299521 [0 127.0.0.1:52659] “sadd” “result:sensu-server.ozproxy.com” “false_check”
1432169165.299534 [0 127.0.0.1:52659] “set” “result:sensu-server.ozproxy.com:false_check” “{“standalone”:true,“command”:”/etc/sensu/plugins/false.sh “,“handlers”:[“default-set”],“interval”:60,“subscribers”:[“base”],“name”:“false_check”,“issued”:1432169165,“executed”:1432169165,“duration”:0.005,“output”:“echoing False(1)\n”,“status”:1}”
1432169165.299678 [0 127.0.0.1:52659] “rpush” “history:sensu-server.ozproxy.com:false_check” “1”
1432169165.299962 [0 127.0.0.1:52659] “ltrim” “history:sensu-server.ozproxy.com:false_check” “-21” “-1”
1432169165.299976 [0 127.0.0.1:52659] “lrange” “history:sensu-server.ozproxy.com:false_check” “-21” “-1”
1432169165.300299 [0 127.0.0.1:52659] “hget” “events:sensu-server.ozproxy.com” “false_check”
1432169165.301626 [0 127.0.0.1:52659] “hset” “events:sensu-server.ozproxy.com” “false_check” “{“id”:“3406462c-d5fd-4183-98f6-f136437622f9”,“client”:{“bind”:“127.0.0.1”,“safe_mode”:true,“subscriptions”:,“keepalive”:{},“address”:“10.2.2.26”,“name”:“sensu-server.ozproxy.com”,“version”:“0.18.1”,“timestamp”:1432169158},“check”:{“standalone”:true,“command”:”/etc/sensu/plugins/false.sh “,“handlers”:[“default-set”],“interval”:60,“subscribers”:[“base”],“name”:“false_check”,“issued”:1432169165,“executed”:1432169165,“duration”:0.005,“output”:“echoing False(1)\n”,“status”:1,“history”:[“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”],“total_state_change”:0},“occurrences”:3956,“action”:“create”}”
1432169165.672238 [0 127.0.0.1:44750] “smembers” “stashes”
1432169165.674212 [0 127.0.0.1:44750] “smembers” “clients”

``

1432106885.162958 [0 127.0.0.1:40703] “get” “client:sensu-server.ozproxy.com”
1432106885.163293 [0 127.0.0.1:40703] “sadd” “result:sensu-server.ozproxy.com” “false_check”
1432106885.163306 [0 127.0.0.1:40703] “set” “result:sensu-server.ozproxy.com:false_check” “{“standalone”:true,“command”:”/etc/sensu/plugins/false.sh “,“handlers”:[“default-set”],“interval”:60,“subscribers”:[“base”],“name”:“false_check”,“issued”:1432106885,“executed”:1432106885,“duration”:0.003,“output”:“echoing False(1)\n”,“status”:1}”
1432106885.164350 [0 127.0.0.1:40703] “rpush” “history:sensu-server.ozproxy.com:false_check” “1”
1432106885.164697 [0 127.0.0.1:40703] “ltrim” “history:sensu-server.ozproxy.com:false_check” “-21” “-1”
1432106885.164711 [0 127.0.0.1:40703] “lrange” “history:sensu-server.ozproxy.com:false_check” “-21” “-1”
1432106885.164998 [0 127.0.0.1:40703] “hget” “events:sensu-server.ozproxy.com” “false_check”
1432106885.165494 [0 127.0.0.1:40703] “hset” “events:sensu-server.ozproxy.com” “false_check” “{“id”:“ccb208ef-75e0-4543-8cad-a5c6e8ca4721”,“client”:{“bind”:“127.0.0.1”,“safe_mode”:true,“subscriptions”:,“keepalive”:{},“address”:“10.2.2.26”,“name”:“sensu-server.ozproxy.com”,“version”:“0.18.1”,“timestamp”:1432106874},“check”:{“standalone”:true,“command”:”/etc/sensu/plugins/false.sh “,“handlers”:[“default-set”],“interval”:60,“subscribers”:[“base”],“name”:“false_check”,“issued”:1432106885,“executed”:1432106885,“duration”:0.003,“output”:“echoing False(1)\n”,“status”:1,“history”:[“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”,“1”],“total_state_change”:0},“occurrences”:3393,“action”:“create”}”
1432106885.167200 [0 127.0.0.1:40705] “lpush” “events” “{“entity”:“sensu-server.ozproxy.com”,“check”:“false_check”,“type”:“service”,“state”:“warning”,“summary”:“echoing False(1)\n”,“details”:“Address:10.2.2.26 Tags:”,“time”:1432106885,“tags”:}”
1432106885.167577 [0 127.0.0.1:37675] “sadd” “known_events_archive_keys” “events_archive:2015052007”

``

for reference, when i use the method in which i specify the handler in the check (using the flapjack.rb extension from the community repo) i see from redis:
``note the ‘lpush events …’ towards the end (which is not present when using the enterprise handler). I can see the events in flapjack using this method

  • Is the configuration correct using the enterprise flapjack built-in handler? or am i missing something?
    ( from the docs, it seems that i only need to put the flapjack_handler.json in the correct directory and pointing to the correct redis to make the build-in enterprise flapjack handler work with sensu)
  • i note that it says enterprise, is that a separate package? and i need to buy the enterprise package to get the functionality?

thanks in advance
cheers
jorge