Skip to content

Instantly share code, notes, and snippets.

View jodok's full-sized avatar

Jodok Batlogg jodok

View GitHub Profile
@jodok
jodok / template
Created October 15, 2010 21:16
recipe
targets = []
flatten_tree(node[:smokeping][:targets][:tree]).each do |target|
target_data = data_bag_item('smokeping_targets', target["id"])
target_header = "#{target['level']} #{target_data['name']}"
# no need for id, make it as easy as possible to iterate in template
target_data.delete("id")
target_data.delete("name")
targets << { "header" => target_header,
"params" => target_data }
end
[Fri, 15 Oct 2010 21:23:38 +0000] ERROR: template[/etc/smokeping/config.d/Targets] (/var/cache/chef/cookbooks/smokeping/recipes/master.rb:70:in `from_file') had an error:
Chef::Mixin::Template::TemplateError (undefined method `each' for nil:NilClass) on line #9:
7: # The given adresses aren't real to avoid DoS.
8:
9: <% @targets.each do |target| %>
10: <%= target["header"] %>
[Fri, 15 Oct 2010 21:43:19 +0000] ERROR: template[/etc/smokeping/config.d/Targets] (/var/cache/chef/cookbooks/smokeping/recipes/master.rb:70:in `from_file') had an error:
Chef::Mixin::Template::TemplateError (undefined method `each' for nil:NilClass) on line #10:
8:
9: <%= @targets.inspect %>
10: <% @targets.each do |target| %>
11: <%= target["header"] %>
12: <% target["params"].each do |k, v| %>
-bash-3.2$ /usr/java/default/bin/java -Dproc_fs -Xmx1000m -Xmx512m -Dhadoop.log.dir=/usr/lib/hadoop-0.20/logs -Dhadoop.log.file=hadoop-hadoop-tasktracker-ip-10-234-202-245.log -Dhadoop.home.dir=/usr/lib/hadoop-0.20 -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,TLA -Dhadoop.policy.file=hadoop-policy.xml -classpath /usr/lib/hadoop-0.20/conf:/usr/java/default/lib/tools.jar:/usr/lib/hadoop-0.20:/usr/lib/hadoop-0.20/hadoop-core-0.20.2-cdh3u0.jar:/usr/lib/hadoop-0.20/lib/ant-contrib-1.0b3.jar:/usr/lib/hadoop-0.20/lib/aspectjrt-1.6.5.jar:/usr/lib/hadoop-0.20/lib/aspectjtools-1.6.5.jar:/usr/lib/hadoop-0.20/lib/commons-cli-1.2.jar:/usr/lib/hadoop-0.20/lib/commons-codec-1.4.jar:/usr/lib/hadoop-0.20/lib/commons-daemon-1.0.1.jar:/usr/lib/hadoop-0.20/lib/commons-el-1.0.jar:/usr/lib/hadoop-0.20/lib/commons-httpclient-3.0.1.jar:/usr/lib/hadoop-0.20/lib/commons-logging-1.0.4.jar:/usr/lib/hadoop-0.20/lib/commons-logging-api-1.0.4.jar:/usr/lib/hadoop-0.20/lib/commons-net-1.4.1.jar:/usr/lib/hadoop-0.20/lib/core-3.1.1.jar:/us
@jodok
jodok / gist:1275463
Created October 10, 2011 14:30
stderr
*** glibc detected *** /usr/lib/jvm/java-1.6.0-sun-1.6.0.14/jre/bin/java: double free or corruption (!prev): 0x00007fe8dc010760 ***
#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: pthread_getattr_np
#
# Internal Error (os_linux_x86.cpp:681), pid=5257, tid=140637422737152
# Error: pthread_getattr_np
#
# JRE version: 6.0_14-b08
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 54381
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
SELECT COUNT(*) FROM content WHERE content.state = E'published' AND (content.contenttype = E'ugcarticle') AND content.created >= E'2011-08-31 23:00:00+00:00' AND content.created <= E'2011-10-01 22:59:00+00:00' AND content.fulltext @@ to_tsquery(E'default', E'kirchenchor')
08:07:25 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
08:07:26 PM all 13.58 0.00 0.73 4.23 0.00 0.44 0.00 0.00 81.02
08:07:26 PM 0 92.00 0.00 5.00 0.00 0.00 3.00 0.00 0.00 0.00
08:07:26 PM 1 0.00 0.00 0.00 1.51 0.00 0.00 0.00 0.00 98.49
08:07:26 PM 2 0.00 0.00 0.00 4.02 0.00 0.00 0.00 0.00 95.98
08:07:26 PM 3 0.53 0.00 0.00 9.63 0.00 0.00 0.00 0.00 89.84
08:07:26 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
08:07:27 PM all 13.45 0.00 0.86 0.00 0.00 0.43 0.00 0.00 85.26
08:07:27 PM 0 94.00 0.00 4.00 0.00 0.00 2.00 0.00 0.00 0.00
postgres 25663 0.0 0.5 8748492 180216 ? S Oct12 0:03 /usr/bin/postmaster -p 11911 -D /ebs/pgdata/az
postgres 25665 0.0 0.0 160048 948 ? Ss Oct12 0:01 \_ postgres: logger process
postgres 25670 0.0 1.4 8752704 467128 ? Ss Oct12 0:07 \_ postgres: writer process
postgres 25671 0.0 0.0 8752592 1664 ? Ss Oct12 0:03 \_ postgres: wal writer process
postgres 25672 0.0 0.0 8752864 1404 ? Ss Oct12 0:01 \_ postgres: autovacuum launcher process
postgres 25673 0.0 0.0 160324 1164 ? Ss Oct12 0:57 \_ postgres: stats collector process
postgres 25714 0.0 0.1 8754004 35172 ? Ss Oct12 0:01 \_ postgres: az az 10.48.85.48(33036) idle
postgres 25721 3.3 8.7 8859228 2860980 ? Ss Oct12 42:12 \_ postgres: az az 10.48.85.48(33041) idle
postgres 25722 3.2 8.0 8858916 2639396 ? Rs Oct12 41:16 \_ postgres: az az 10.48.85.48(330
[admin@de1 openvswitch-1.7.1]$ rpmbuild -vv -bb rhel/openvswitch-kmod-rhel6.spec
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: ========== +++ openvswitch-kmod-1.7.1-1.el6 x86_64/linux 0x0
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: read h# 205 Header sanity check: OK
D: added key gpg-pubkey-192a7d7d-4a5769d0 to keyring