Skip to content

Instantly share code, notes, and snippets.

Fedora-20-x86_64-DVD.iso | 297856 kB | 19857.1 kB/s | ETA: 00:03:31 | 6%
19857 KB/s
= 19,86 MB/s
= 158,86 Mbps
= 18,94 MiB/s
= 71,49 GB/h
= 1,19 GB/min
@halcyonardency
halcyonardency / gist:6df49c834615f3c5dcfc
Created July 26, 2014 19:43
Verification that /etc/defaults/sensu won't get reverted back to the rpm default when updating to 0.13.0. Yay!
...
Installed:
sensu.x86_64 1:0.12.6-5
Complete!
[root@localhost ~]# cat /etc/default/sensu
EMBEDDED_RUBY=false
[root@localhost ~]# echo "EMBEDDED_RUBY=true" > /etc/default/sensu
[root@localhost ~]# cat /etc/default/sensu; yum -q -y update sensu; rpm -q sensu; cat /etc/default/sensu
@halcyonardency
halcyonardency / sensu-client-error.log
Created June 19, 2014 21:15
Sensu 0.12.6 + June, 10, 2014 clone of sensu-custom-plugins.
The sensu-client is loading handlers on load (which it probably shouldn't do). In doing so, the redis_output handler has a fault if there's no default settings found.
{"timestamp":"2014-06-19T13:41:09.234543-0700","level":"info","message":"loaded extension","type":"handler","name":"redis_output","description":"outputs events output to a redis list or channel"}
{"timestamp":"2014-06-19T13:41:09.308415-0700","level":"info","message":"Setting up TTL expiration loop"}
/etc/sensu/extensions/handlers/redis_output.rb:15:in `post_init': undefined method `[]' for nil:NilClass (NoMethodError)
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.12.6/lib/sensu/extensions.rb:103:in `block in initialize'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:959:in `call'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:959:in `block in run_deferred_callbacks'
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/e
@halcyonardency
halcyonardency / daemonpath.sh
Created June 17, 2014 20:17
Add to /etc/profile.d/daemonpath.sh, adds /command to the default $PATH
# add /command to the default path
export PATH=${PATH}:/command
@halcyonardency
halcyonardency / sensjack.sh
Created June 4, 2014 18:12
You got your Flapjack in my Sensu! You got your Sensu in my Flapjack! How to install Flapjack into Sensu's omnibus ruby path under CentOS 6.
#!/bin/sh
### This seemed to install Flapjack under CentOS6, using the embedded Ruby that comes with Sensu
### This does not install init scripts or anything else important
### Very likely this is a horrible thing I've done and should be repeated by no one, ever
# install gcc because we are going to build some things, and libtcmalloc for redis 2.8
yum -q -y install gcc gcc-c++ gperftools-libs
export OLD_GEM_PATH=${GEM_PATH}
@halcyonardency
halcyonardency / api.json
Last active August 29, 2015 14:01
Sensu Client Skeleton
{ "api": {
"host": "XXAPIHOST",
"port": XXAPIPORT
}
}
@halcyonardency
halcyonardency / gist:11267037
Created April 24, 2014 19:42
Future Conferences, Post-May 2014
- Velocity, June 24-26: Santa Clara, CA
- TechWeek Chicago, June 23-29, Chicago, IL
- OSCON, July 20-24: Portland, Oregon
- LinuxCon, Aug 20-24: Chicago, IL
- PuppetConf, Sept 23-24: San Francisco, CA
- TechWeek New York, Sept 29-Oct 5, New York, NY
- Usenix/Lisa, Nov 9-14: Seattle, WA
- ApacheCon Eur, Nov 17-21: Budapest, Hungary
- TechWeek Los Angeles, Nov 17-23, Los Angeles, CA
Are you gonna graph a time-series tonight?
Oh, data center respond to that amber light.
Are you gonna count live packets out?
Real-time Graphite,
You make the operations' world go round.
@halcyonardency
halcyonardency / gist:6944744
Created October 12, 2013 01:52
FUUUUUUUUUUUUUUUUUUU ruby.
$gem install rb-readline
Fetching: rb-readline-0.5.0.gem (100%)
Successfully installed rb-readline-0.5.0
Parsing documentation for rb-readline-0.5.0
Installing ri documentation for rb-readline-0.5.0
1 gem installed
$ bundle exec guard start
You're running a version of ruby with no Readline support
Please `gem install rb-readline` or recompile ruby --with-readline.
$ sudo gem install rb-readline
Sep 10 14:55:35 SOMEHOST collectd[20478]: -1 Type `three/gauge' isn't defined.