Skip to content

Instantly share code, notes, and snippets.

udp_recv_channel {
port = 8649
}
udp_send_channel {
host = 10.42.42.11
port = 8649
ttl = 1
}
@KrisBuytaert
KrisBuytaert / gist:1700318
Created January 29, 2012 19:41
logstash-forwarder
logstash-forwarder
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- filewatch/tailglob (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/logstash-forwarder-0.1.1/lib/logstash-forwarder/agent.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/logstash-forwarder-0.1.1/lib/logstash-forwarder.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/logstash-forwarder-0.1.1/bin/logstash-forwarder:5
[2012-01-31 22:34:56,237][INFO ][cluster.service ] [Gregory Gideon] added {[Lilith, the daughter of Dracula][bdY6VeTBSVO4l4hEL4f4-w][inet[/10.0.2.15:9301]]{client=true, data=false},}, reason: zen-disco-receive(join from node[[Lilith, the daughter of Dracula][bdY6VeTBSVO4l4hEL4f4-w][inet[/10.0.2.15:9301]]{client=true, data=false}])
@KrisBuytaert
KrisBuytaert / gist:1773369
Created February 8, 2012 20:39
processor output
[root@mss htdocs]# php ./processor.php
<?
// Include main class loading config file
define('TATTLE_ROOT', str_replace(array('ajax'),'',getcwd()));
$web_root = dirname($_SERVER['PHP_SELF']);
if ($web_root != '/') {
$web_root .= '/';
}
define('TATTLE_WEB_ROOT',$web_root);
define('VIEW_PATH', TATTLE_ROOT . '/inc/views/');
Vagrant::Config.run do |config|
config.vm.box = "Centos6"
config.vm.host_name = "puppetmaster"
config.vm.network "10.16.16.2"
input {
amqp {
# ship logs to the 'rawlogs' fanout queue.
type => "all"
host => "127.0.0.1"
exchange => "rawlogs"
name => "rawlogs_consumer"
}
}
class manifests::puppetclient {
# The puppetmaster already has puppet::params defined and
# should not be redefined here.
case $::hostname {
/^puppetmaster/: {
$puppetfrequency = '*/5'
## puppet::params is already defined.
}
default: {
class{'icinga':
nrpe_allowed_hosts => '10.0.2.15',
server => true,
client => true,
use_auth => false,
plugins => ['pnp4nagios'],
icinga_vhost => '/etc/httpd/conf.d/icinga.conf',
}
file { '/etc/httpd/conf.d/pnp4nagios.conf':
@KrisBuytaert
KrisBuytaert / gist:3226055
Created August 1, 2012 11:37
How to fail at potential automation
# Do not edit this file. Also do not try to override these settings
# in main.mk since some of them are hardcoded into several files
# during setup.
#
# If you need to change these settings, you have to re-run setup.sh
# and enter new values when asked, or edit ~/.check_mk_setup.conf and
# run ./setup.sh --yes.
@KrisBuytaert
KrisBuytaert / gist:3987634
Created October 31, 2012 15:22
Rubygem hell .. or is fpm broken ?
fpm --provides "rubygem(rack)" -v 1.4.1 -s gem -t rpm -n rubygem-rack rack
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.20/lib/fpm/package/deb.rb:23: warning: already initialized constant COMPRESSION_TYPES
Successfully installed rack-1.4.1
1 gem installed
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.U4shbm
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xfUlUt
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.oCjJDB
Processing files: rubygem-rack-1.4.1-1.noarch
Wrote: /tmp/package-rpm-build20121031-6688-4lglk8/RPMS/noarch/rubygem-rack-1.4.1-1.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.kXCiPS