Skip to content

Instantly share code, notes, and snippets.

@dnaeon
dnaeon / zabbix-vpoller-template-07.04.2014.xml
Created April 7, 2014 17:05
zabbix-vpoller-template-07.04.2014
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-04-07T17:57:57Z</date>
<groups>
<group>
<name>Datastores</name>
</group>
<group>
<name>Hypervisors</name>
@dnaeon
dnaeon / zabbix-vpoller-templates.xml
Created April 6, 2014 14:47
zabbix-vpoller-templates
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-04-06T15:40:46Z</date>
<groups>
<group>
<name>Datastores</name>
</group>
<group>
<name>Hypervisors</name>
@dnaeon
dnaeon / zabbix-vpoller-template.xml
Created April 5, 2014 15:40
zabbix-vpoller-template
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-04-05T12:23:02Z</date>
<groups>
<group>
<name>Hypervisors</name>
</group>
<group>
<name>Templates</name>
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
@dnaeon
dnaeon / gist:3741876
Created September 18, 2012 07:52
pkg-plugins-summary
% env PKG_PLUGINS_SUMMARY=yes pkg plugins
Plugin(s) loaded: [ 'stats' 'zfssnap' 'mystats' 'serve' ]
Successfully loaded 4 plugin(s)
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
mystats Plugin command for displaying stats 1.0 YES
serve A mongoose plugin for serving files 1.0 YES
@dnaeon
dnaeon / gist:3635828
Created September 5, 2012 12:22
poudriere-clean
% sudo poudriere bulk -j 90amd64 -c
poudriere bulk parameters [options]
Parameters:
-f file -- Give the list of ports to build
Options:
-c -- Clean the previous built binary packages
-t -- Add some testings to package building
-s -- Skip sanity
## Plugins installed
% pkg plugins
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
mystats Plugin command for displaying stats 1.0 YES
## Usage information with available commands
@dnaeon
dnaeon / gist:3536548
Created August 30, 2012 18:23
pkg-plugins
### Display installed plugins
% pkg plugins
NAME DESC VERSION LOADED
stats Plugin for displaying package stats 1.0 YES
template Template plugin for pkgng 1.0 NO
zfssnap ZFS snapshot plugin for pkgng 1.0 YES
### Installing a package with plugins loaded
@dnaeon
dnaeon / gist:3523664
Created August 30, 2012 07:16
pkg-plugin-foo
.include <bsd.own.mk>
LIB= pkg-plugin-foo
INCS= pkg-plugin-foo.h
WARNS= 6
PREFIX?= /usr/local
LIBDIR= ${PREFIX}/lib
INCLUDEDIR= ${PREFIX}/include
SHLIB_MAJOR= 0
diff --cc masterfiles/config/cfcadence.conf
index afd74f2,e222eaf..0000000
--- a/masterfiles/config/cfcadence.conf
+++ b/masterfiles/config/cfcadence.conf
@@@ -218,6 -217,11 +219,14 @@@ shellcommands
'/usr/bin/test ! -d /usr/bin/meld-1.5.2 && /usr/bin/wget http\://aptmaster.colo.elex.be/apt/redhat/rhel/tools/meld-1.5.2.tar.bz
chdir=/tmp useshell=true timeout=1200 umask=022 owner=root group=root inform=true
++<<<<<<< HEAD
++=======