Sensuctl quickstart

Configure sensuctl and log in

sensuctl configure
? Sensu Backend URL: http://127.0.0.1:8080
? Username: YOUR_USERNAME
? Password: YOUR_PASSWORD

NOTE: If you are using Docker, the default username is admin and the password is P@ssw0rd!.

Create resources from a file that contains JSON resource definitions

sensuctl create --file filename.json

View monitored entities

sensuctl entity list

View monitoring events

sensuctl event list

Edit a check

In this example, the check name is check-cpu:

sensuctl edit check check-cpu

View the JSON configuration for a check

In this example, the check name is check-cpu:

sensuctl check info check-cpu --format wrapped-json