Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

sensu-client crashes immediately #395

Closed
Dieterbe opened this issue Oct 16, 2012 · 5 comments
Closed

sensu-client crashes immediately #395

Dieterbe opened this issue Oct 16, 2012 · 5 comments

Comments

@Dieterbe
Copy link

Hi, just installed sensu as per installation docs, on centos 6.2 64bit, using the omnibus package.
after installing, I was following https://github.com/sensu/sensu/wiki/HOWTO:-Add-a-check to add my first check.
I installed the plugin, modified the config as prescribed, but when restarting the client, I get this:

[root@dfvimeonms1 ~]# /etc/init.d/sensu-client restart
Stopping sensu-client                                      [  OK  ]
Starting sensu-client/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0028 p:---- s:0099 b:0099 l:000098 d:000098 CFUNC  :initialize
c:0027 p:---- s:0097 b:0097 l:000096 d:000096 CFUNC  :new
c:0026 p:0099 s:0094 b:0092 l:000091 d:000091 METHOD /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67
c:0025 p:0090 s:0083 b:0082 l:000081 d:000081 CLASS  /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:17
c:0024 p:0011 s:0080 b:0080 l:000079 d:000079 CLASS  /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:12
c:0023 p:0074 s:0078 b:0078 l:000077 d:000077 TOP    /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:9
c:0022 p:---- s:0076 b:0076 l:000075 d:000075 FINISH
c:0021 p:---- s:0074 b:0074 l:000073 d:000073 CFUNC  :require
c:0020 p:0053 s:0070 b:0070 l:000069 d:000069 METHOD /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0019 p:0027 s:0063 b:0063 l:000062 d:000062 CLASS  /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json.rb:58
c:0018 p:0021 s:0061 b:0061 l:000060 d:000060 TOP    /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json.rb:54
c:0017 p:---- s:0059 b:0059 l:000058 d:000058 FINISH
c:0016 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC  :require
c:0015 p:0174 s:0053 b:0053 l:000052 d:000052 METHOD /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55
c:0014 p:0037 s:0046 b:0046 l:000045 d:000045 TOP    /opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/lib/sensu/base.rb:5
c:0013 p:---- s:0044 b:0044 l:000043 d:000043 FINISH
c:0012 p:---- s:0042 b:0042 l:000041 d:000041 CFUNC  :require
c:0011 p:0174 s:0038 b:0038 l:000037 d:000037 METHOD /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55
c:0010 p:0039 s:0031 b:0031 l:000030 d:000030 TOP    /opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/lib/sensu/client.rb:1
c:0009 p:---- s:0029 b:0029 l:000028 d:000028 FINISH
c:0008 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC  :require
c:0007 p:0174 s:0023 b:0023 l:000022 d:000022 METHOD /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55
c:0006 p:0068 s:0016 b:0016 l:000015 d:000015 TOP    /opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/bin/sensu-client:7
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:001928 d:001050 EVAL   /opt/sensu/bin/sensu-client:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001928 d:001928 TOP   

-- Ruby level backtrace information ----------------------------------------
/opt/sensu/bin/sensu-client:19:in `<main>'
/opt/sensu/bin/sensu-client:19:in `load'
/opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/bin/sensu-client:7:in `<top (required)>'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/lib/sensu/client.rb:1:in `<top (required)>'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/opt/sensu/embedded/lib/ruby/gems/1.9.1/gems/sensu-0.9.7/lib/sensu/base.rb:5:in `<top (required)>'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json.rb:54:in `<top (required)>'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json.rb:58:in `<module:JSON>'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:9:in `<top (required)>'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:12:in `<module:JSON>'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext.rb:17:in `<module:Ext>'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67:in `generator='
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67:in `new'
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67:in `initialize'

-- C level backtrace information -------------------------------------------
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19f808) [0x7f4a193c3808]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x5c9fd) [0x7f4a192809fd]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_bug+0x127) [0x7f4a19280b40]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_check_type+0x1ab) [0x7f4a19281019]
/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/generator.so(+0x452f) [0x7f4a12a6f52f] generator.c:910
/opt/sensu/embedded/lib/libruby.so.1.9(+0x1928ea) [0x7f4a193b68ea]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x195c4c) [0x7f4a193b9c4c]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x196ff7) [0x7f4a193baff7]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x196f4a) [0x7f4a193baf4a]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_funcall2+0x31) [0x7f4a193bb238]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_obj_call_init+0x6f) [0x7f4a19287356]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_class_new_instance+0x30) [0x7f4a192d7042]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x1928ea) [0x7f4a193b68ea]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval+0x30) [0x7f4a193c0b99]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64d57) [0x7f4a19288d57]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_require_safe+0x18e) [0x7f4a19289b29]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_f_require+0x20) [0x7f4a19289137]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x192921) [0x7f4a193b6921]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval+0x30) [0x7f4a193c0b99]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64d57) [0x7f4a19288d57]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_require_safe+0x18e) [0x7f4a19289b29]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_f_require+0x20) [0x7f4a19289137]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x192921) [0x7f4a193b6921]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval+0x30) [0x7f4a193c0b99]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64d57) [0x7f4a19288d57]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_require_safe+0x18e) [0x7f4a19289b29]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_f_require+0x20) [0x7f4a19289137]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x192921) [0x7f4a193b6921]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval+0x30) [0x7f4a193c0b99]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64d57) [0x7f4a19288d57]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_require_safe+0x18e) [0x7f4a19289b29]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_f_require+0x20) [0x7f4a19289137]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x192921) [0x7f4a193b6921]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval+0x30) [0x7f4a193c0b99]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64d57) [0x7f4a19288d57]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x64faf) [0x7f4a19288faf]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x1928ea) [0x7f4a193b68ea]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19279e) [0x7f4a193b679e]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x191b23) [0x7f4a193b5b23]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x18c732) [0x7f4a193b0732]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x19c1b1) [0x7f4a193c01b1]
/opt/sensu/embedded/lib/libruby.so.1.9(rb_iseq_eval_main+0x30) [0x7f4a193c0bdb]
/opt/sensu/embedded/lib/libruby.so.1.9(+0x61b8e) [0x7f4a19285b8e]
/opt/sensu/embedded/lib/libruby.so.1.9(ruby_exec_node+0x1e) [0x7f4a19285cb2]
/opt/sensu/embedded/lib/libruby.so.1.9(ruby_run_node+0x38) [0x7f4a19285c85]
/opt/sensu/embedded/bin/ruby() [0x4008a7]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x3fa0a1ecdd]
/opt/sensu/embedded/bin/ruby() [0x4007a9]

-- Other runtime information -----------------------------------------------

* Loaded script: /opt/sensu/bin/sensu-client

* Loaded features:

    0 enumerator.so
    1 /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    2 /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    3 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/defaults.rb
    4 /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    5 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/deprecate.rb
    6 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/exceptions.rb
    7 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb
    8 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems.rb
    9 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/version.rb
   10 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/requirement.rb
   11 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/dependency.rb
   12 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/platform.rb
   13 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/specification.rb
   14 /opt/sensu/embedded/lib/ruby/1.9.1/rubygems/path_support.rb
   15 /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/version.rb
   16 /opt/sensu/embedded/lib/ruby/1.9.1/ostruct.rb
   17 /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/generic_object.rb
   18 /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb
   19 /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/parser.so
   20 /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/generator.so

* Process memory map:

00400000-00401000 r-xp 00000000 fd:01 557513                             /opt/sensu/embedded/bin/ruby
00600000-00601000 rw-p 00000000 fd:01 557513                             /opt/sensu/embedded/bin/ruby
01503000-019b9000 rw-p 00000000 00:00 0                                  [heap]
32cac00000-32cace3000 r-xp 00000000 fd:01 345277                         /usr/lib64/libruby.so.1.8.7
32cace3000-32caee2000 ---p 000e3000 fd:01 345277                         /usr/lib64/libruby.so.1.8.7
32caee2000-32caee7000 rw-p 000e2000 fd:01 345277                         /usr/lib64/libruby.so.1.8.7
32caee7000-32caf05000 rw-p 00000000 00:00 0 
32cc400000-32cc416000 r-xp 00000000 fd:01 453642                         /lib64/libgcc_s-4.4.6-20120305.so.1
32cc416000-32cc615000 ---p 00016000 fd:01 453642                         /lib64/libgcc_s-4.4.6-20120305.so.1
32cc615000-32cc616000 rw-p 00015000 fd:01 453642                         /lib64/libgcc_s-4.4.6-20120305.so.1
3876e00000-3876e5d000 r-xp 00000000 fd:01 450583                         /lib64/libfreebl3.so
3876e5d000-387705c000 ---p 0005d000 fd:01 450583                         /lib64/libfreebl3.so
387705c000-387705d000 r--p 0005c000 fd:01 450583                         /lib64/libfreebl3.so
387705d000-387705e000 rw-p 0005d000 fd:01 450583                         /lib64/libfreebl3.so
387705e000-3877062000 rw-p 00000000 00:00 0 
3878e00000-3878e07000 r-xp 00000000 fd:01 450597                         /lib64/libcrypt-2.12.so
3878e07000-3879007000 ---p 00007000 fd:01 450597                         /lib64/libcrypt-2.12.so
3879007000-3879008000 r--p 00007000 fd:01 450597                         /lib64/libcrypt-2.12.so
3879008000-3879009000 rw-p 00008000 fd:01 450597                         /lib64/libcrypt-2.12.so
3879009000-3879037000 rw-p 00000000 00:00 0 
3fa0200000-3fa0220000 r-xp 00000000 fd:01 450567                         /lib64/ld-2.12.so
3fa041f000-3fa0420000 r--p 0001f000 fd:01 450567                         /lib64/ld-2.12.so
3fa0420000-3fa0421000 rw-p 00020000 fd:01 450567                         /lib64/ld-2.12.so
3fa0421000-3fa0422000 rw-p 00000000 00:00 0 
3fa0600000-3fa0602000 r-xp 00000000 fd:01 450590                         /lib64/libdl-2.12.so
3fa0602000-3fa0802000 ---p 00002000 fd:01 450590                         /lib64/libdl-2.12.so
3fa0802000-3fa0803000 r--p 00002000 fd:01 450590                         /lib64/libdl-2.12.so
3fa0803000-3fa0804000 rw-p 00003000 fd:01 450590                         /lib64/libdl-2.12.so
3fa0a00000-3fa0b86000 r-xp 00000000 fd:01 450574                         /lib64/libc-2.12.so
3fa0b86000-3fa0d86000 ---p 00186000 fd:01 450574                         /lib64/libc-2.12.so
3fa0d86000-3fa0d8a000 r--p 00186000 fd:01 450574                         /lib64/libc-2.12.so
3fa0d8a000-3fa0d8b000 rw-p 0018a000 fd:01 450574                         /lib64/libc-2.12.so
3fa0d8b000-3fa0d90000 rw-p 00000000 00:00 0 
3fa0e00000-3fa0e17000 r-xp 00000000 fd:01 450917                         /lib64/libpthread-2.12.so
3fa0e17000-3fa1016000 ---p 00017000 fd:01 450917                         /lib64/libpthread-2.12.so
3fa1016000-3fa1017000 r--p 00016000 fd:01 450917                         /lib64/libpthread-2.12.so
3fa1017000-3fa1018000 rw-p 00017000 fd:01 450917                         /lib64/libpthread-2.12.so
3fa1018000-3fa101c000 rw-p 00000000 00:00 0 
3fa1600000-3fa1607000 r-xp 00000000 fd:01 450656                         /lib64/librt-2.12.so
3fa1607000-3fa1806000 ---p 00007000 fd:01 450656                         /lib64/librt-2.12.so
3fa1806000-3fa1807000 r--p 00006000 fd:01 450656                         /lib64/librt-2.12.so
3fa1807000-3fa1808000 rw-p 00007000 fd:01 450656                         /lib64/librt-2.12.so
3fa1a00000-3fa1a83000 r-xp 00000000 fd:01 450884                         /lib64/libm-2.12.so
3fa1a83000-3fa1c82000 ---p 00083000 fd:01 450884                         /lib64/libm-2.12.so
3fa1c82000-3fa1c83000 r--p 00082000 fd:01 450884                         /lib64/libm-2.12.so
3fa1c83000-3fa1c84000 rw-p 00083000 fd:01 450884                         /lib64/libm-2.12.so
7f4a12a6a000-7f4a12a6b000 rw-p 00000000 00:00 0 
7f4a12a6b000-7f4a12a72000 r-xp 00000000 fd:01 581722                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/generator.so
7f4a12a72000-7f4a12c72000 ---p 00007000 fd:01 581722                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/generator.so
7f4a12c72000-7f4a12c73000 rw-p 00007000 fd:01 581722                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/generator.so
7f4a12c73000-7f4a12c78000 r-xp 00000000 fd:01 581723                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/parser.so
7f4a12c78000-7f4a12e77000 ---p 00005000 fd:01 581723                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/parser.so
7f4a12e77000-7f4a12e78000 rw-p 00004000 fd:01 581723                     /usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/ext/parser.so
7f4a12e78000-7f4a12e7a000 r-xp 00000000 fd:01 558342                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f4a12e7a000-7f4a1307a000 ---p 00002000 fd:01 558342                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f4a1307a000-7f4a1307b000 rw-p 00002000 fd:01 558342                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f4a1307b000-7f4a1307d000 r-xp 00000000 fd:01 558301                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f4a1307d000-7f4a1327c000 ---p 00002000 fd:01 558301                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f4a1327c000-7f4a1327d000 rw-p 00001000 fd:01 558301                     /opt/sensu/embedded/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f4a1327d000-7f4a1327e000 ---p 00000000 00:00 0 
7f4a1327e000-7f4a13382000 rw-p 00000000 00:00 0 
7f4a13382000-7f4a19213000 r--p 00000000 fd:01 344634                     /usr/lib/locale/locale-archive
7f4a19213000-7f4a19219000 rw-p 00000000 00:00 0 
7f4a19224000-7f4a19466000 r-xp 00000000 fd:01 557645                     /opt/sensu/embedded/lib/libruby.so.1.9.1
7f4a19466000-7f4a19665000 ---p 00242000 fd:01 557645                     /opt/sensu/embedded/lib/libruby.so.1.9.1
7f4a19665000-7f4a1966d000 rw-p 00241000 fd:01 557645                     /opt/sensu/embedded/lib/libruby.so.1.9.1
7f4a1966d000-7f4a1968c000 rw-p 00000000 00:00 0 
7fffe66ba000-7fffe66cf000 rw-p 00000000 00:00 0                          [stack]
7fffe67ff000-7fffe6800000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

bash: line 1:  6493 Aborted                 (core dumped) /opt/sensu/bin/sensu-client -b -c /etc/sensu/config.json -p /var/run/sensu/sensu-client.pid -l /var/log/sensu/sensu-client.log
                                                           [FAILED]

here's my configs:

[root@dfvimeonms1 ~]# cat /etc/sensu/config.json
{
  "rabbitmq": {
    "host": "localhost",
    "port": 5672,
    "user": "sensu",
    "password": "sensu",
    "vhost": "/sensu"
  },
  "redis": {
    "host": "localhost",
    "port": 6379
  },
  "api": {
    "host": "localhost",
    "port": 4567
  },
  "dashboard": {
    "port": 8080,
    "user": "admin",
    "password": "secret"
  },
  "handlers": {
    "default": {
      "type": "set",
      "handlers": [
        "stdout"
      ]
    },
    "stdout": {
      "type": "pipe",
      "command": "cat"
    }
  },
  "checks": {
    "test": {
      "command": "echo -n OK",
      "subscribers": [
        "test"
      ],
      "interval": 60
    }
  },
}
[root@dfvimeonms1 ~]# cat /etc/sensu/conf.d/check_cron.json 
{
    "checks": {
      "cron_check": {
        "handler": "default",
        "command": "/etc/sensu/plugins/check-procs.rb -p crond -C 1 ",
        "interval": 60,
        "subscribers": [ "webservers" ]
      }
    }
  }
[root@dfvimeonms1 ~]# cat /etc/sensu/conf.d/client.json 
{
    "client": {
      "name": "sensu-client.domain.tld",
      "address": "127.0.0.1",
      "subscriptions": [ "test", "webservers" ]
    }
  }

client log file (contains some old entries):

cat /v[root@dfvimeonms1 ~]# cat /var/log/sensu/sensu-client.log 
{"timestamp":"2012-10-15T15:27:34.884699-0400","message":"cannot connect to rabbitmq","settings":{"host":"localhost","port":5672,"user":"sensu","password":"sensu","vhost":"/sensu"},"level":"fatal"}
{"timestamp":"2012-10-15T15:27:34.884969-0400","message":"SENSU NOT RUNNING!","level":"fatal"}
{"timestamp":"2012-10-15T15:27:41.554979-0400","message":"cannot connect to rabbitmq","settings":{"host":"localhost","port":5672,"user":"sensu","password":"sensu","vhost":"/sensu"},"level":"fatal"}
{"timestamp":"2012-10-15T15:27:41.555214-0400","message":"SENSU NOT RUNNING!","level":"fatal"}
{"timestamp":"2012-10-15T18:19:48.053362-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:19:51.055399-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:19:54.057375-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:19:57.059194-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:00.061377-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:03.063376-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:06.065228-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:09.067387-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:12.069253-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:15.117280-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:18.121207-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:22.444358-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:25.446375-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:28.448812-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:31.452445-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:34.455247-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:37.576583-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:40.738159-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:43.740166-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:46.742277-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:49.744220-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:52.969314-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:56.130301-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:20:59.135644-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:02.140347-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:05.142320-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:08.144370-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:11.147451-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:14.149376-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T18:21:17.151251-0400","message":"reconnecting to rabbitmq","level":"warn"}
{"timestamp":"2012-10-15T20:05:07.578058-0400","message":"received signal","signal":"TERM","level":"warn"}
{"timestamp":"2012-10-15T20:05:07.578211-0400","message":"stopping","level":"warn"}
{"timestamp":"2012-10-15T20:05:07.578302-0400","message":"unsubscribing from client subscriptions","level":"warn"}
{"timestamp":"2012-10-15T20:05:07.578393-0400","message":"completing checks in progress","checks_in_progress":[],"level":"info"}
{"timestamp":"2012-10-15T20:05:08.079268-0400","message":"stopping reactor","level":"warn"}
@jlambert121
Copy link
Contributor

jsonlnt.com of your config.json:

Parse error on line 42:
... } }, }
--------------------^
Expecting 'STRING'

@Dieterbe
Copy link
Author

fixed the stray comma. all configs are valid now. but crashes with the same

/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
(....)

@Dieterbe
Copy link
Author

i'm sorry. i had a stray entry in .bash_profile which set GEM_HOME=/usr/lib64/ruby/gems/1.8/gems, removing that fixed it

@joemiller
Copy link
Contributor

I'll see if i can find or a build a centos 6.2/64bit vm to test this on. We
test on a centos-6 vm using vagrant, so I'm surprised it does not work, but
there's always a possibility of some recent update that has broken
something. (we use the .box from here - http://vagrant.sensuapp.org/list)

On Tue, Oct 16, 2012 at 7:22 AM, Dieter Plaetinck
notifications@github.comwrote:

fixed the stray comma. all configs are valid now. but crashes with the same

/usr/lib64/ruby/gems/1.8/gems/gems/json-1.7.5/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
(....)


Reply to this email directly or view it on GitHubhttps://github.com//issues/395#issuecomment-9490586.

@joemiller
Copy link
Contributor

Ah! excellent. thanks for the followup

On Tue, Oct 16, 2012 at 8:16 AM, Dieter Plaetinck
notifications@github.comwrote:

i'm sorry. i had a stray entry in .bash_profile which set
GEM_HOME=/usr/lib64/ruby/gems/1.8/gems, removing that fixed it


Reply to this email directly or view it on GitHubhttps://github.com//issues/395#issuecomment-9493859.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants