I’ve install Sensu a while ago, and it worked fine. But everytime I restart it (use sudo service sensu-server restart), it just failed. Everytime when I changed the configurations, I had to restart the machine, because it won’t restart.
Here is the log file, seems nothing goes wrong, but why does it failed to restart?
sensu-server.log (7.68 KB)
There are two errors as indicated in the log:
{“timestamp”:“2015-03-04T10:11:06.313552+0800”,“level”:“warn”,“message”:“config file does not exist or is not readable”,“file”:“/etc/sensu/config.json”}
{“timestamp”:“2015-03-04T10:11:06.314640+0800”,“level”:“warn”,“message”:“config file must be valid json”,“file”:“/etc/sensu/conf.d/handler_graphite.json”,“error”:“parse error: after key and value, inside map, I expect ‘,’ or ‘}’\n le": "true" \t"passive": "true" \t"\n (right here) ------^\n”}
I have no idea why rebooting the system could make it work…
···
On Wednesday, 4 March 2015 13:18:56 UTC+11, Timothy John wrote:
I’ve install Sensu a while ago, and it worked fine. But everytime I restart it (use sudo service sensu-server restart), it just failed. Everytime when I changed the configurations, I had to restart the machine, because it won’t restart.
Here is the log file, seems nothing goes wrong, but why does it failed to restart?
Thanks for your reminders, It’s my bad, I’ve forgot to add ‘,’ after each “key and value”.
Have a nice day!
在 2015年3月4日星期三 UTC+8上午11:24:54,Anthony Kong写道:
···
There are two errors as indicated in the log:
{“timestamp”:“2015-03-04T10:11:06.313552+0800”,“level”:“warn”,“message”:“config file does not exist or is not readable”,“file”:“/etc/sensu/config.json”}
I’ve install Sensu a while ago, and it worked fine. But everytime I restart it (use sudo service sensu-server restart), it just failed. Everytime when I changed the configurations, I had to restart the machine, because it won’t restart.
Here is the log file, seems nothing goes wrong, but why does it failed to restart?
{“timestamp”:“2015-03-04T10:11:06.314640+0800”,“level”:“warn”,“message”:“config file must be valid json”,“file”:“/etc/sensu/conf.d/handler_graphite.json”,“error”:“parse error: after key and value, inside map, I expect ‘,’ or ‘}’\n le": "true" \t"passive": "true" \t"\n (right here) ------^\n”}
I have no idea why rebooting the system could make it work…
On Wednesday, 4 March 2015 13:18:56 UTC+11, Timothy John wrote: