Skip to content

Instantly share code, notes, and snippets.

View lazyfrosch's full-sized avatar
📢
Hack the planet! Hack the planet!

Markus Frosch lazyfrosch

📢
Hack the planet! Hack the planet!
View GitHub Profile
@lazyfrosch
lazyfrosch / release-launchpad.sh
Created April 29, 2014 18:33
release skript for launchpad
#!/bin/bash
set -e
makesource() {
version="$1"
shift
dist="$1"
shift
@lazyfrosch
lazyfrosch / verifyfreshness.pl
Created June 10, 2014 12:54
Verify Icinga Freshness Settings via objects.cache
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my $file = 'objects.cache';
@lazyfrosch
lazyfrosch / livestatus.cfg
Created June 11, 2014 20:23
In /etc/icinga/modules/livestatus.cfg
define module{
module_name livestatus
module_type neb
path /usr/lib/check_mk/livestatus.o
args /var/lib/icinga/rw/live
}
@lazyfrosch
lazyfrosch / pinning-example.conf
Created July 21, 2014 08:32
Here a pinning example for Debian unstable - files goes in /etc/apt/preferences.d/yourrule
###
# Unstable
###
Package: *
Pin: release a=sid
Pin-Priority: -100
Package: *
Pin: release a=unstable
Pin-Priority: -100
rhel5:~/monitoring-plugins
[0]markus [PR681] $ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
rhel5:~/monitoring-plugins
[0]markus [PR681] $ nslookup www.rm.com 1.1.1.1
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
Running tests...
/usr/bin/ctest --force-new-ctest-process -j1
Test project /home/lazyfrosch/icinga2-2.1.0/obj-powerpc64le-linux-gnu
Start 1: base-base_array/construct
1/54 Test #1: base-base_array/construct ............. Passed 0.01 sec
Start 2: base-base_array/getset
2/54 Test #2: base-base_array/getset ................ Passed 0.01 sec
Start 3: base-base_array/insert
3/54 Test #3: base-base_array/insert ................ Passed 0.01 sec
Start 4: base-base_array/remove
@lazyfrosch
lazyfrosch / log.txt
Last active August 29, 2015 14:06
Boost Lexer on ppc64el
(unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ uname -a
Linux pastel 3.13-1-powerpc64le #1 SMP Debian 3.13.4-1 (2014-02-22) ppc64le GNU/Linux
(unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ g++ test_double.cpp
(unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ ./a.out
7.3
(unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ g++ test_float.cpp
(unstable_ppc64el-dchroot)lazyfrosch@pastel:~$ ./a.out
-7.3
information/base: Writing private key to '/var/lib/icinga2/ca/ca.key'.
Program received signal SIGSEGV, Segmentation fault.
ASN1_item_sign (it=0x7ffff4412b20 <X509_CINF_it>, algor1=0x63de30, algor2=0x6491e0, signature=0x649200, asn=0x649780, pkey=0x649910,
type=0x0) at a_sign.c:232
232 a_sign.c: No such file or directory.
(gdb) bt full
#0 ASN1_item_sign (it=0x7ffff4412b20 <X509_CINF_it>, algor1=0x63de30, algor2=0x6491e0, signature=0x649200, asn=0x649780,
pkey=0x649910, type=0x0) at a_sign.c:232
ctx = {digest = 0x0, engine = 0x0, flags = 0, md_data = 0x0}
@lazyfrosch
lazyfrosch / gist:51299c416656fe76209f
Created January 5, 2015 13:40
Icinga 2 Command Endpoint example
template Host "generic-agent" {
import "generic-host"
object Endpoint __name {
host = "$host.address$"
}
object Zone __name {
parent = "master"
endpoints = [ __name ]
@lazyfrosch
lazyfrosch / all.sh
Created March 11, 2015 09:30
reprepro all distributions, for multiple archives
#!/bin/bash
set -e
ACTION="$1"
shift
for i in debian raspbian ubuntu; do
(
cd $i