Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
/*
* Structure returned by statfs(2) and fstatfs(2).
* This structure and associated system calls have been replaced
* by statvfs(2) and fstatvfs(2) and will be removed from the system
* in a near-future release.
*/
(logging/init :file "riemann.log")
(instrumentation {:interval 1})
(periodically-expire 1)
(let [index (default :ttl 3 (update-index (index)))]
(streams
(expired prn)
index))
[2013-09-27 00:39:38.546650] [debug] java.lang.IllegalArgumentException: No implementation of method: :update! of protocol: #'interval-metrics.core/Metric found for class: nil[2013-09-27 00:39:38.546677] [debug]
[2013-09-27 00:39:38.546820] [debug] at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:541)[2013-09-27 00:39:38.546842] [debug]
[2013-09-27 00:39:38.546908] [debug] at interval_metrics.core$fn__7442$G__7437__7449.invoke(core.clj:22)[2013-09-27 00:39:38.546935] [debug]
[2013-09-27 00:39:38.546997] [debug] at riemann.core$stream_BANG_.invoke(core.clj:16)[2013-09-27 00:39:38.547018] [debug]
[2013-09-27 00:39:38.547043] [debug] at clojure.lang.Var.invoke(Var.java:419)[2013-09-27 00:39:38.547060] [debug]
[2013-09-27 00:39:38.547129] [debug] at com.omniti.reconnoiter.EventHandler.sendEvent(EventHandler.java:155)[2013-09-27 00:39:38.547139] [debug]
[2013-09-27 00:39:38.547190] [debug] at com.omniti.reconnoiter.event.NoitMetric.handle(NoitMetric.java:64)
[2013-09-27 00:39:38.547227] [debug] a
=CRASH REPORT==== 9-Oct-2013::18:48:11 ===
crasher:
initial call: tcp_acceptor:init/1
pid: <0.11371.0>
registered_name: []
exception exit: {accept_failed,econnaborted}
in function gen_server:terminate/6 (gen_server.erl, line 747)
ancestors: ['tcp_acceptor_sup_0.0.0.0:5672',<0.4631.0>,rabbit_sup,
<0.4472.0>]
messages: []
module(..., package.seeall)
function config()
local http = ats.config.proxy.config.http
http.server_ports("8888 443:ipv4:ssl")
end
function config_ssl(add)
add({ dest_ip = "*", ssl_cert_name = "bar.pem", ssl_key_name = "barKey.pem" })
end
module(..., package.seeall)
function config()
ats.config.proxy.config.http.server_ports("8888 8443:ipv4:ssl")
ats.config.proxy.config.url_remap.pristine_host_hdr(0)
end
function config_ssl(add)
add({ dest_ip = "*", ssl_cert_name = "bar.pem", ssl_key_name = "barKey.pem" })
end
; cat /var/tmp/remap.yaml ⏎ client-10-8-3-13
map:
- from : http://localhost:8888/google/
to : https://www.google.com/
- from : http://localhost:8888/
to : http://omniti.com/
"zfs:0:arcstats:size":{"_type":"L","_value":"55096213352"},"zfs:0:data:nread":{"_type":"L","_value":"332094594560"},"zfs:0:data:nwritten":{"_type":"L","_value":"32129210871808"},"zfs:0:data:rcnt":{"_type":"L","_value":"0"},"zfs:0:data:reads":{"_type":"L","_value":"28215983"},"zfs:0:data:rlastupdate":{"_type":"L","_value":"7524868784686798"},"zfs:0:data:rlentime":{"_type":"L","_value":"5156481252245708"},"zfs:0:data:rtime":{"_type":"L","_value":"133209341936635"},"zfs:0:data:wcnt":{"_type":"L","_value":"0"},"zfs:0:data:wlastupdate":{"_type":"L","_value":"7524868727966330"},"zfs:0:data:wlentime":{"_type":"L","_value":"1423693695640809108"},"zfs:0:data:writes":{"_type":"L","_value":"1126752799"},"zfs:0:data:wtime":{"_type":"L","_value":"114905143843555"},"zfs:0:rpool:nread":{"_type":"L","_value":"239072280576"},"zfs:0:rpool:nwritten":{"_type":"L","_value":"163340221440"},"zfs:0:rpool:rcnt":{"_type":"L","_value":"0"},"zfs:0:rpool:reads":{"_type":"L","_value":"3463708"},"zfs:0:rpool:rlastupdate":{"_type":"L","_val
; ldd /bin/i86/truss osdev3
libproc.so.1 => /lib/libproc.so.1
librtld_db.so.1 => /lib/librtld_db.so.1
libc_db.so.1 => /lib/libc_db.so.1
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libtsol.so.2 => /lib/libtsol.so.2
libnvpair.so.1 => /lib/libnvpair.so.1
libc.so.1 => /lib/libc.so.1
libelf.so.1 => /lib/libelf.so.1
; grep DTRACE_LLQUANTIZE_NSTEP /usr/include/sys/dtrace.h ⏎ solid
#define DTRACE_LLQUANTIZE_NSTEPSHIFT 0
#define DTRACE_LLQUANTIZE_NSTEPMASK UINT16_MAX
#define DTRACE_LLQUANTIZE_NSTEPS(x) \
(uint16_t)(((x) & DTRACE_LLQUANTIZE_NSTEPMASK) >> \
DTRACE_LLQUANTIZE_NSTEPSHIFT)