Skip to content

Instantly share code, notes, and snippets.

View rtoma's full-sized avatar

Renzo Toma rtoma

  • Netherlands
View GitHub Profile
@rtoma
rtoma / helloworld.c
Created March 1, 2017 11:24
Nagios event broker NEB module for adding a new service without restarting
/*
Proof-of-concept to add services to Nagios without reload/restarts.
By Renzo Toma / 2017-03-01
Tested on Nagios 3.5.1.
New services are not visible using the Nagios CGI scripts as the new services
are missing from the objects.cache file. Workaround: use livestatus + Thruk.
From bed55580f972cc08209357fce5589fefadf398af Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Tue, 17 May 2016 21:44:45 +0200
Subject: [PATCH] change import paths
---
tools/benchmark/cmd/put.go | 2 +-
tools/benchmark/cmd/range.go | 2 +-
tools/benchmark/cmd/root.go | 2 +-
tools/benchmark/cmd/stm.go | 2 +-
@rtoma
rtoma / name-too-long.go
Created June 15, 2014 09:28
Code for triggering the Golang 'name too long' link error
package main
/*
Running/building/installing on 'go version go1.2.1 linux/amd64' will give:
# command-line-arguments
/tmp/go-build113202767/command-line-arguments.a(_go_.6): name too long
*/