We're going to do a few things here:
- Monitor a single website
- Create some proxy entities
- Monitor those proxy entities
Before we get started, if you want to change the websites monitored here, you can. They're listed at the following:
| --- | |
| type: Entity | |
| api_version: core/v2 | |
| metadata: | |
| name: sensu-docs | |
| namespace: demo | |
| labels: | |
| proxy_type: website | |
| url: https://docs.sensu.io | |
| spec: |
| --- | |
| api_version: core/v2 | |
| type: CheckConfig | |
| metadata: | |
| namespace: demo | |
| name: check-http-proxy | |
| spec: | |
| runtime_assets: | |
| - check-plugins | |
| command: check-http -u {{ .labels.url }} -r true |
| api_version: core/v2 | |
| type: CheckConfig | |
| metadata: | |
| namespace: demo | |
| name: check-http-google | |
| spec: | |
| runtime_assets: | |
| - check-plugins | |
| command: check-http -u https://google.com -r true | |
| proxy_entity_name: "google.com" |
| #!/bin/sh | |
| # | |
| ################################ | |
| # !!!NOTICE!! # | |
| # READ BEFORE RUNNING # | |
| ################################ | |
| # This is the Sensu Enterprise Provisioning Script | |
| # The intent is to make the provisioning of Sensu Enterprise easy. | |
| # |
| {"date":"2018-07-19T21:18:42.580658567Z","action":"loginfailure","level":"default","output":"Failed to find any valid group from the claims: map[email:xxxxxxx email_verified:true locale:en hd:sensu.io given_name:Aaron picture:https://lh4.googleusercontent.com/-eU4-9t2eS6k/AAAAAAAAAAI/AAAAAAAAAAc/9iMGrsnw7o4/photo.jpg family_name:Sachs sub:118053961912870897306 name:Aaron Sachs]","remoteaddr":"XXXXXXXX","user":""} |
| module.exports = { | |
| config: { | |
| updateChannel: 'canary', | |
| fontSize: 14, | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| cursorColor: 'rgba(248,28,229,0.8)', | |
| cursorShape: 'BEAM', | |
| fontWeight: '200', | |
| fontWeightBold: 'bold', | |
| cursorBlink: true, |
| execute pathogen#infect() | |
| "My standard junk | |
| set nocompatible | |
| syntax on | |
| set tabstop=2 shiftwidth=2 | |
| set background=dark | |
| set nu | |
| set breakindent | |
| set smartindent |