New sensu go installation

hi All,

I am unable to set logins for new sensu go installation.

[root@ip-10-1-160-159 ~]# netstat -plan | grep 808
tcp 0 0 127.0.0.1:52412 127.0.0.1:8080 TIME_WAIT -
tcp 0 0 127.0.0.1:49440 127.0.0.1:8081 TIME_WAIT -
tcp6 0 0 :::8080 :::* LISTEN 13281/sensu-backend
tcp6 0 0 :::8081 :::* LISTEN 13281/sensu-backend
[root@ip-10-1-160-159 ~]#
[root@ip-10-1-160-159 ~]# sensuctl configure -n --username β€˜admin’ --password β€˜P@ssw0rd!’ --namespace default --url β€˜http://127.0.0.1:8080’

Error: unable to authenticate with error: Unauthorized

Also tried below way,

[root@ip-10-1-160-159 ~]# sensuctl configure
? Sensu Backend URL: http://127.0.0.1:8080
? Username: admin
? Password: *********
? Namespace: default
? Preferred output format: tabular

Error: unable to authenticate with error: Unauthorized

[root@ip-10-1-160-159 ~]#

can someone help me

Is this new install with version 5.16 (or newer)?

If so, you need to initialize the backend now. The default username and password are not there. Please see this doc.

2 Likes