Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@m3rlinux
m3rlinux / omd-tuning.sh
Last active March 6, 2024 11:26 — forked from FlorianHeigl/omd-tuning.sh
omd tuning script
#!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl (@FlorianHeigl)
# Contributors: Davide Gibilisco (@m3rlinux)
set -eu
# Function to convert bytes to human-readable format
human_readable() {
@azet
azet / Datacenter-Operations__here_be_dragons.md
Last active January 30, 2024 18:25
Reading material for Operations & Datacenter engineers and managers

Check Out these projects, papers and blog posts if you're working on Geo redundant Datacenters or even if you only need to have your software hosted there. It's good to know what you're in for.

  Collected these for a colleague, these have been super useful over 
  the past 15+ years and and will most likely help and/or entertain you. 
  May be extended in the future.
  -- azet (@azet.org)

load balancing

DNS geo & anycast

@kimdre
kimdre / README.md
Last active March 6, 2024 00:50
Fail2ban Config for CheckMk Authentication over Web UI

CheckMk Web Auth Fail2ban Config

Fail2ban Config for CheckMk Authentication over Web UI

This is a example fail2ban config for failed login attempts in the CheckMK Web UI Login Form.

Setup

Check for log files

CheckMK logs failed login attempts for each site separately at ~/var/log/web.log (relative path from the site's user).

@robin-checkmk
robin-checkmk / yt.yml
Created August 17, 2022 08:09
yt.yml from the Checkmk Ansible collection introduction
- name: "Roles."
hosts: localhost
gather_facts: true
vars_files:
- ./vars/config.yml
tasks:
- name: "Run server role."
ansible.builtin.import_role:
name: tribe29.checkmk.server
@swisskyrepo
swisskyrepo / main.yml
Created March 12, 2022 23:03
Elastic EDR Ansible
---
- name: Add required dependencies.
apt:
name:
- apt-transport-https
- gnupg2
state: present
- name: Add Elasticsearch apt key.
apt_key:
@azet
azet / a_qvfx10k_setup_with_qemu.md
Last active February 18, 2022 14:14
vqfx10k on kvm/qmu

install vQFX10k on KVM/QEMU for Testing or QA

This vQFX Platform is supposed to be used with vagrant and ships with a few nice fabrics that spin up on the go. But there's a few problems with that - which may not be instantly obvious if you plan on using it for testing or QA in your NetOps department:

  1. This Vagrant configuration relies and only supports virtualization via Virtualbox
    • so far no plans have been announced to switch from Virtualbox to another out of the box solution, so you'll have to hack this up a bit. libvirt, kvm/qemu makes this relatively simple, but you have to get familiar with their tools (again).
  2. vQFX comes in two "VMs": a Routing Engine (RE) and a Packet Forwarding Engine (PFE)
  • this is due to the way the hardware is actually set-up and working on a real bare metal switch or router (same story for vMX). ASICs are supplied in the form of shim kernel modules that make it possible to unit-test more advanced features or do functional testing before deploying on real (ide
@BercX
BercX / checkmk.md
Created December 3, 2021 12:53
CheckMK Scripts

Check MK Scripts

Add host to checkmk server:

Script automatically adds the computer to the hostlist on the checkmk server. Works on Windows 10, 7(with KB3191566 update).

  1. Create .ps1 file with following code.
  2. Change server and client(optional) variables.
  3. Run
@hamletmun
hamletmun / netbox_api.md
Created November 19, 2021 01:51
NetBox API (REST, GraphQL) with Powershell

NetBox API (REST, GraphQL) with Powershell

REST API

(Invoke-RestMethod -Headers @{'Authorization'='Token 0123456789abcdef0123456789abcdef01234567'} -Uri "https://netbox.my.org/api/circuits/circuits/?site_id=123").results
(Invoke-RestMethod -Headers @{'Authorization'='Token 0123456789abcdef0123456789abcdef01234567'} -Uri "https://netbox.my.org/api/dcim/sites/?region=amer&tenant=tenantname").results | Select-Object name,status
(Invoke-RestMethod -Headers @{'Authorization'='Token 0123456789abcdef0123456789abcdef01234567'} -Uri "https://netbox.my.org/api/ipam/prefixes/?tenant=tenantname").results | Select-Object prefix,site
(Invoke-RestMethod -Headers @{'Authorization'='Token 0123456789abcdef0123456789abcdef01234567'} -Uri "https://netbox.my.org/api/dcim/devices/?tenant=tenantname").results | Select-Object name,status
@planetWayne
planetWayne / ReadME.rst
Last active April 25, 2024 06:45
Quick and Dirty walkthrough for setting up Enterprise WiFi on Unifi on Windows domain

Walk-through to setup Enterprise Wifi with Unifi on Windows Server =================================================================

Update 14/02/2024 : Added step 3-d - allowing the cert template to be issued by a CA

Why

Quite simply, you will have the ability to log on to your Company Wifi network using your Windows Domain Username and Password. No more remembering someone else's idea of a secure password. A Single Sign-on for all resources.

@renatoalmeidaoliveira
renatoalmeidaoliveira / connected_interfaces.py
Created September 17, 2021 02:55
A simple Netbox report that checks if all the enabled interfaces are connected. Creating a new section for each site.
from extras.reports import Report
from dcim.models import Device
from dcim.models import Site
class ConnectedInterfaces(Report):
description = "Check if all enabled interface are connected"
def __init__(self, *args, **kwargs):
for site in Site.objects.all():