My agent started and the log says that it connected to the backend successfully. Meanwhile in the backend, my agent is not listed. Can someone help me with this?
Posting the log here :
{"component":"agent","level":"info","msg":"connecting to backend URL \"ws://sensugo-1651555377.us-east-1.elb.amazonaws.com:9091\"","time":"2020-04-30T12:46:11Z"}
{"component":"agent","header":"Accept: application/octet-stream","level":"debug","msg":"setting header","time":"2020-04-30T12:46:11Z"}
{"component":"agent","level":"info","msg":"successfully connected","time":"2020-04-30T12:46:12Z"}
{"component":"agent","header":"Accept: [application/octet-stream application/json]","level":"debug","msg":"received header","time":"2020-04-30T12:46:12Z"}
{"component":"agent","format":"protobuf","level":"debug","msg":"setting serialization/deserialization","time":"2020-04-30T12:46:12Z"}
{"component":"agent","header":"Content-Type: application/octet-stream","level":"debug","msg":"setting header","time":"2020-04-30T12:46:12Z"}
{"check":"keepalive","component":"agent","entity":"fresworks-edge1","event_uuid":"87318a1c-eded-4472-b6bf-eaa16098865e","level":"info","msg":"sending event to backend","time":"2020-04-30T12:46:12Z"}
{"component":"transport","level":"debug","msg":"sending ping","time":"2020-04-30T12:46:42Z"}
{"component":"transport","level":"debug","msg":"pong received from the backend, setting the read deadline to 1588250847","time":"2020-04-30T12:46:42Z"}
{"component":"transport","level":"debug","msg":"sending ping","time":"2020-04-30T12:47:12Z"}
{"check":"keepalive","component":"agent","entity":"fresworks-edge1","event_uuid":"d44b2a3b-f89a-4e33-b32a-1491e26fc755","level":"info","msg":"sending event to backend","time":"2020-04-30T12:47:12Z"}
{"component":"transport","level":"debug","msg":"pong received from the backend, setting the read deadline to 1588250877","time":"2020-04-30T12:47:12Z"}
{"component":"transport","level":"debug","msg":"sending ping","time":"2020-04-30T12:47:42Z"}
{"component":"transport","level":"debug","msg":"pong received from the backend, setting the read deadline to 1588250907","time":"2020-04-30T12:47:42Z"}
{"check":"keepalive","component":"agent","entity":"fresworks-edge1","event_uuid":"c89d6445-cac4-400e-a522-1249a129ead6","level":"info","msg":"sending event to backend","time":"2020-04-30T12:48:12Z"}
And my sensuctl says:
[root@sensugo-backend ganeshkatakam]# sensuctl entity list
ID Class OS Subscriptions Last Seen
─────────────────── ─────── ─────── ──────────────────────────────────────────── ───────────────────────────────
security-ci agent linux security-ci,entity:security-ci 2020-04-30 12:13:06 +0000 UTC
Healthcheck from agent:
[root@fresworks-edge1 sensu]# curl http://127.0.0.1:4031/healthz
ok