Token substitution for the check cron attribute fails. Any help with this is appreciated. Thank you!
Linux xxxxxxx 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sensu.x86_64 1:1.0.2-1.el7 @sensu
uchiwa.x86_64 1:0.25.3-1 @sensu
This works
{
“client”: {
"name": "rhel",
"address": "127.0.0.1",
"environment": "development",
"subscriptions": [
"dev",
"rhel"
],
"socket": {
"bind": "127.0.0.1",
"port": 3030
},
"**schedule**": {
"**cron**": {
"**test**": "55 * * * *"
}
}
}
}
{
“checks”: {
"http-sensu-docs": {
"command": "check-http.rb -u https://sensuapp.org",
"subscribers": [
"dev"
],
"cron": "* * * * *",
"**mytoken**": ":::**schedule.cron.test**:::"
}
}
}
This fails
{
“client”: {
"name": "rhel",
"address": "127.0.0.1",
"environment": "development",
"subscriptions": [
"dev",
"rhel"
],
"socket": {
"bind": "127.0.0.1",
"port": 3030
},
"schedule": {
"cron": {
"test": "55 * * * *"
}
}
}
}
{
“checks”: {
"http-sensu-docs": {
"command": "check-http.rb -u https://sensuapp.org",
"subscribers": [
"dev"
],
"cron": “:::schedule.cron.test:::”,
"mytoken": ":::schedule.cron.test:::"
}
}
}
Server log
{“timestamp”:“2017-08-02T16:00:38.580797-0400”,“level”:“fatal”,“message”:“check cron string must use the cron syntax”,“object”:{“command”:“check-http.rb -u https://sensuapp.org”,“subscribers”:[“dev”],“cron”:":::schedule.cron.test:::",“mytoken”:":::schedule.cron.test:::",“name”:“http-sensu-docs”}}
{“timestamp”:“2017-08-02T16:00:38.580829-0400”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}
Client log
{“timestamp”:“2017-08-02T16:01:38.727037-0400”,“level”:“fatal”,“message”:“check cron string must use the cron syntax”,“object”:{“command”:“check-http.rb -u https://sensuapp.org”,“subscribers”:[“dev”],“cron”:":::schedule.cron.test:::",“mytoken”:":::schedule.cron.test:::",“name”:“http-sensu-docs”}}
{“timestamp”:“2017-08-02T16:01:38.727070-0400”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}
API log
{“timestamp”:“2017-08-02T16:02:39.516627-0400”,“level”:“fatal”,“message”:“check cron string must use the cron syntax”,“object”:{“command”:“check-http.rb -u https://sensuapp.org”,“subscribers”:[“dev”],“cron”:":::schedule.cron.test:::",“mytoken”:":::schedule.cron.test:::",“name”:“http-sensu-docs”}}
{“timestamp”:“2017-08-02T16:02:39.516681-0400”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}