Skip to content

Instantly share code, notes, and snippets.

View asachs01's full-sized avatar
Caffeinated. Always.

Aaron Sachs asachs01

Caffeinated. Always.
View GitHub Profile

ChaDevOps

Create your own check

We're going to do a few things here:

  1. Monitor a single website
  2. Create some proxy entities
  3. 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:

@asachs01
asachs01 / proxy-entities.yml
Created February 18, 2019 20:01
Sensu proxy entities
---
type: Entity
api_version: core/v2
metadata:
name: sensu-docs
namespace: demo
labels:
proxy_type: website
url: https://docs.sensu.io
spec:
@asachs01
asachs01 / check-http-proxy.yaml
Created February 18, 2019 20:00
Http proxy check for Sensu Go
---
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
@asachs01
asachs01 / tupelo-honey-biscuits-metric.md
Created February 18, 2019 19:04
Metric conversion of my standard recipe.

Tupelo Honey Buttermilk Biscuits

Ingredients

Makes 10 biscuits

  • 240 grams White Lily self-rising flour
  • 12 grams sugar
  • 2.5 grams teaspoon salt
  • 75 grams chilled shortening (or butter), cut into pieces
@asachs01
asachs01 / tupelo-honey-biscuits.md
Last active November 21, 2021 23:37
My standard recipe for biscuits.

Tupelo Honey Buttermilk Biscuits

Ingredients

Makes 10 biscuits

  • 2 cups White Lily self-rising flour
  • 1 tablespoon sugar
  • ½ teaspoon salt
  • ⅓ cup chilled shortening, cut into pieces (I use butter)
@asachs01
asachs01 / check-http.yaml
Created January 28, 2019 18:34
Simple Sensu Go http check
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"
@asachs01
asachs01 / sensu-enterprise.sh
Last active September 5, 2018 23:24
Sensu Enterprise
#!/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":""}
@asachs01
asachs01 / .hyper.js
Last active July 16, 2018 21:17
My hyperterm settings.
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,
@asachs01
asachs01 / .vimrc
Created October 6, 2017 16:16
Personal Vimrc
execute pathogen#infect()
"My standard junk
set nocompatible
syntax on
set tabstop=2 shiftwidth=2
set background=dark
set nu
set breakindent
set smartindent