Sensuctl quickstart

Configure sensuctl and log in

sensuctl configure
? Sensu Backend URL: http://127.0.0.1:8080
? Username: admin
? Password: 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