I cannot get Windows to find my backend server. The windows client refuses to use the agent.yml configuration file. I have my configuration file in c:\programdata\sensu\config\agent.yml as documentation suggests.
I then use sensu-agent service install.
When the service starts i look in the log file configured at c:\programdata\sensu\log\agent.log and it is trying to connect to 127.0.0.1.
This is a vm running on Windows Server 2019. This was built from source code at https://github.com/sensu/sensu-go
Versions are:
sensu-agent version (devel)+ce, community edition, built with go1.15.2
sensu-backend version (devel)+ce, community edition, built with go1.14.6
They both used the same v. 6.0.0 tagged source code.
My configuration is:
---
Sensu agent configuration
agent overview
name: “GITCIDEVWIN03”
#namespace: “default”
#subscriptions:
- example
#labels:
example_key: “example value”
#annotations:
example/key: “example value”
agent configuration
backend-url:
- “wss://sensutest-backend1:8081”
#disable-assets: false
log-level: “debug” # available log levels: panic, fatal, error, warn, info, debug
api configuration
#api-host: “127.0.0.1”
#api-port: 3031
#disable-api: false
#events-burst-limit: 10
#events-rate-limit: 10.0
authentication configuration
#user: “agent”
#password: “P@ssw0rd!”
monitoring configuration
#deregister: false
#deregistration-handler: “example_handler”
keepalive-warning-timeout: 300
#keepalive-interval: 20
security configuration
#insecure-skip-tls-verify: false
#redact:
- password
- passwd
- pass
- api_key
- api_token
- access_key
- secret_key
- private_key
- secret
trusted-ca-file: “c:\opt\sensu-go\ssl\ca.pem”
socket configuration
#disable-sockets: false
#socket-host: “127.0.0.1”
#socket-port: 3030
statsd configuration
#statsd-disable: false
#statsd-event-handlers:
- example_handler
#statsd-flush-interval: 10
#statsd-metrics-host: “127.0.0.1”
#statsd-metrics-port: 8125