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
@asachs01
asachs01 / graylog_metrics.json
Created October 31, 2021 02:18
Graylog Grafana Dashboard
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@asachs01
asachs01 / graylog_api_routes.json
Created November 24, 2020 02:31
A listing of all api endpoints & routes for Graylog
{
"models": {},
"apiVersion": "4.0.0+9376305",
"swaggerVersion": "1.2",
"apis": [],
"basePath": "http://192.168.156.229:9000/api",
"resourcePath": "/streams/streamid/alerts/alertId/history"
}
{
"models": {
@asachs01
asachs01 / docker-compose.yml
Last active April 1, 2020 16:46
Sensu Sandbox Docker Compose
---
version: "3"
services:
sensu-backend:
image: sensu/sensu:latest
ports:
- 3000:3000
- 8080:8080
- 8081:8081
volumes:
@asachs01
asachs01 / sensuctl-aliases
Last active December 17, 2019 17:00
Aliases I use to make operating Sensu Go like buttah
‎‎​alias sensuctl-whoami="sensuctl config view --format yaml"
etcd-advertise-client-urls: https://192.168.1.1:2379
etcd-initial-advertise-peer-urls: https://192.168.1.1:2380
etcd-initial-cluster: backend-0=https://backend-0.example.com:2380,backend-1=https://backend-1.example.com:2380,backend-2=https://backend-2.example.com:2380
etcd-initial-cluster-state: new
etcd-listen-client-urls: https://192.168.1.1:2379
etcd-listen-peer-urls: https://0.0.0.0:2380
etcd-name: backend-1
log-level: debug
state-dir: /var/lib/sensu/sensu-backend
cert-file: "/etc/pki/tls/certs/cert.pem"
---
- name: Install, configure and run Sensu backend in debug mode
hosts: monitoring-sensu
remote_user: centos
become: true
become_method: sudo
collections: [sensu.sensu_go]
roles:
- role: backend
backend_config:
---
- name: Install, configure and run Sensu backend in debug mode
hosts: monitoring-sensu
remote_user: centos
become: true
become_method: sudo
collections: [sensu.sensu_go]
roles:
- role: backend
backend_config:

The Project

The goal of The Project is to provide a base-level project for folks with technical aptitude who want to start diving into systems administration.

The Instructions.

The instructions here are purposefully vague and only provided from a high-level overview. The goal is to work through the project and learn about commonly used technologies

  1. Get a VM from a cloud provider. DigitalOcean, Amazon Lightsail, Hostgator, Godaddy, wherever. The goal here is that you must have SSH access to the box.

  2. Purchase a domain name. You can use whatever provide you like: domains.google, namecheap.com, cloudflare.com. Again, it doesn't matter where you get the domain name.

@asachs01
asachs01 / create_sensu_user_group.sh
Created May 17, 2019 15:54
Running Sensu on OSX
#!/bin/sh
create_sensu_user_group()
{
# create sensu group
set +e
dscl . -list /Groups | grep "^_sensu" > /dev/null
RC=$?
set -e
if [ "${RC}" != "0" ]; then
@asachs01
asachs01 / sensu-agent.service
Created May 15, 2019 20:09
Systemd unit files for sensu-agent and sensu-backend
[Unit]
Description=The Sensu Agent process.
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=sensu
Group=sensu
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.