Skip to content

Instantly share code, notes, and snippets.

Florian Heigl FlorianHeigl

View GitHub Profile
View multipath.conf
defaults {
polling_interval 10
find_multipaths no # yes
max_fds 8192
user_friendly_names no
# uid_attribute "ID_SERIAL_SHORT"
}
View gist:aae80d96afba43feb6866cfb504ab40c
##############
State Machines
##############
Finite State Machines und davon abgeleitetes Anwendungsdesign sind das, was viele Industrie-Systeme robust macht.
Jede TCP Connection, jede SMTP Übertragung durchläuft eine protokollseitige State Machine.
In Software findet man sie als Grundlage vieler moderner Anwendungen im Cloud-Bereich.
CFEngine ist darauf aufgebaut, ebenso kommerzielle Cluster wie VCS (alle Monitor Agents von VCS sind State Machines).
@FlorianHeigl
FlorianHeigl / gist:163b21f8abce1c5b29b37416b0c4f6dd
Last active Jun 30, 2020
one ds driver component template
View gist:163b21f8abce1c5b29b37416b0c4f6dd
#!/usr/bin/env bash
#action: description from doc
#mkfs: creates a new empty image in the datastore
#ARGUMENTS: datastore_image_dump image_id
#datastore_image_dump is an XML dump of the driver action encoded in Base 64.
#image_source is the image source which will be later sent to the transfer manager.
#ARGUMENTS: list of args by space
#arg1 content
View local-share-check_mk-checkman-aruba_instant_aps
title: Aruba Networks Instnat Wireless: Status of WLAN Accesspoints
agents: snmp
catalog: hw/network/aruba
license: GPL
distribution: check_mk
description:
This check automatically detects all accesspoints of an
Aruba Networks WLAN Controller which are up.
If an accesspoint goes down, the checks triggers a CRITICAL state.
Otherwise the check is OK.
View CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#exclude=httpd*-*
exclude=*-ipa-* *sssd* libsss*
#released updates
@FlorianHeigl
FlorianHeigl / post-receive
Created Jun 15, 2020
OpenNebula Git Post-receive hook: custom_hooks/post-receive
View post-receive
#!/usr/bin/env bash
create_vm() {
ssh admin@zzz "onetemplate instantiate 49 --name $REV"
sleep 3
ssh admin@zzz "onevm show $REV | grep -e ^NAME -e \"\\s0.*172\""
}
get_rev() {
REVLINE=$( GIT_DIR=/home/git/gogs-repositories/fhe/hardening.git/ git log master | head -1 )
@FlorianHeigl
FlorianHeigl / win2019.tpl
Created Jun 8, 2020
OpenNebula Windows 2019 Template
View win2019.tpl
CONTEXT = [
FILES_DS = "$FILE[IMAGE=\"addon-context-windows-msi\", IMAGE_UNAME=\"oneadmin\"]",
NETWORK = "YES",
SET_HOSTNAME = "zxzz" ]
CPU = "2"
CPU_MODEL = [
MODEL = "host-passthrough" ]
DESCRIPTION = "template"
DISK = [
CACHE = "none",
@FlorianHeigl
FlorianHeigl / checks-sfx_csd_status.py
Last active May 29, 2020
ScaleFlux CSD monitoring
View checks-sfx_csd_status.py
#!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# alert for erroneous status from ScaleFlux CSD to Check_MK for monitoring
# capacity / temp etc.
# part of my benchmarks / best practice
# complete hack job because i'm tired
#SFX card: /dev/sfdv0n1
View checkman
title:
agents:
catalog:
license: GPL
distribution: check_mk
description:
item:
inventory:
@FlorianHeigl
FlorianHeigl / check_mk.yml
Last active May 22, 2020
modify cmk default config due to user config prob
View check_mk.yml
#
# Default Check MK configuration file
#
# Copyright Mathias Kettner GmbH
# $CUSTOM_PLUGINS_PATH$ -> is ProgramData/checkmk/agent/plugins
# $BUILTIN_PLUGINS_PATH$ -> is Program Files(x86)/checkmk/service/plugins
# $CUSTOM_AGENT_PATH$ -> is ProgramData/checkmk/agent/
# $CUSTOM_LOCAL_PATH$ -> is ProgramData/checkmk/agent/local
You can’t perform that action at this time.