I rebuilt my testing environment, as apparently if I leave it overnight a token expires and I’m not sure how to refresh it.
vagrant@base-server-ubuntu-1604:~$ sensuctl check info check-syslog --format yaml
Error: GET "/api/core/v2/namespaces/default/checks/check-syslog": failed to update configuration with new refresh token (open /home/vagrant/.config/sensu/sensuctl/cluster: permission denied)
vagrant@base-server-ubuntu-1604:~$ sensuctl check info check-syslog --format yaml
type: CheckConfig
api_version: core/v2
metadata:
name: check-syslog
namespace: default
spec:
check_hooks: null
command: metrics-syslog-ng.rb
env_vars: null
handlers: []
high_flap_threshold: 0
interval: 60
low_flap_threshold: 0
output_metric_format: ""
output_metric_handlers: null
proxy_entity_name: ""
publish: true
round_robin: false
runtime_assets:
- sensu-ruby-runtime
- sensu-plugins-syslog-ng
secrets: null
stdin: false
subdue: null
subscriptions:
- system
timeout: 0
ttl: 500