适用于OpenBSD OS的Sensu客户端

时间:2016-02-16 07:53:16

标签: openbsd sensu

我们正在从nagios迁移或监控到sensu,其中一部分是将我们的openbsd服务器迁移到sensu。我知道这里没有本地客户,但我一直想知道是否有人在此尝试并取得了成功。

到目前为止,找不到任何有用的东西,所以任何帮助都会受到赞赏。

到目前为止我发现的所有内容都是link 但我无法弄清楚他是怎么做到的。

我也尝试创建一个新的盒子并通过gem install sensu安装sensu客户端,安装完成但没有错误,但客户端没有运行,我得到了这个:

-bash-4.3# sensu-client18   
/usr/local/lib/ruby/gems/1.8/gems/ffi-1.9.10/lib/ffi_c.so: Cannot load specified object - /usr/local/lib/ruby/gems/1.8/gems/ffi-1.9.10/lib/ffi_c.so (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/cust
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/gems/1.8/gems/sensu
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/gems/1.8/gems/sensu
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/gems/1.8/gems/sensu
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/site_ruby/1.8/rubyg
        from /usr/local/lib/ruby/gems/1.8/gems/sensu
        from /usr/local/bin/sensu-client18:23:in `lo
        from /usr/local/bin/sensu-client18:23

安装过程:

*** LOCAL GEMS ***

-bash-4.3# gem18 install sensu
Fetching: multi_json-1.11.2.gem (100%)
Fetching: uuidtools-2.1.5.gem (100%)
Fetching: eventmachine-1.0.8.gem (100%)
Building native extensions.  This could take a while>Fetching: sensu-logger-1.1.0.gem (100%)
Fetching: sensu-settings-3.3.0.gem (100%)
Fetching: sensu-extension-1.3.0.gem (100%)
Fetching: sensu-extensions-1.4.0.gem (100%)
Fetching: amq-protocol-1.9.2.gem (100%)
Fetching: amqp-1.5.0.gem (100%)
Fetching: em-redis-unified-1.0.1.gem (100%)
Fetching: sensu-transport-3.3.0.gem (100%)
Fetching: em-worker-0.0.2.gem (100%)
Fetching: ffi-1.9.10.gem (100%)
Building native extensions.  This could take a while>Fetching: childprocess-0.5.8.gem (100%)
Fetching: sensu-spawn-1.6.0.gem (100%)
Fetching: rack-1.6.4.gem (100%)
Fetching: tilt-2.0.2.gem (100%)
Fetching: rack-protection-1.5.3.gem (100%)
Fetching: sinatra-1.4.6.gem (100%)
Fetching: async_sinatra-1.2.0.gem (100%)
Fetching: daemons-1.2.3.gem (100%)
Fetching: thin-1.6.3.gem (100%)
Building native extensions.  This could take a while>Fetching: sensu-
0.22.0.gem (100%)
Successfully installed multi_json-1.11.2
Successfully installed uuidtools-2.1.5
Successfully installed eventmachine-1.0.8
Successfully installed sensu-logger-1.1.0
Successfully installed sensu-settings-3.3.0
Successfully installed sensu-extension-1.3.0
Successfully installed sensu-extensions-1.4.0
Successfully installed amq-protocol-1.9.2
Successfully installed amqp-1.5.0
Successfully installed em-redis-unified-1.0.1
Successfully installed sensu-transport-3.3.0
Successfully installed em-worker-0.0.2
Successfully installed ffi-1.9.10
Successfully installed childprocess-0.5.8
Successfully installed sensu-spawn-1.6.0
Successfully installed rack-1.6.4
Successfully installed tilt-2.0.2
Successfully installed rack-protection-1.5.3
Successfully installed sinatra-1.4.6
Successfully installed async_sinatra-1.2.0
Successfully installed daemons-1.2.3
Successfully installed thin-1.6.3
Successfully installed sensu-0.22.0
23 gems installed

任何想法的人?

编辑:我应该提一下,我对红宝石很新,所以我可能会遗漏一些非常愚蠢的东西

1 个答案:

答案 0 :(得分:0)

我尝试过和adJ OpenBSD 6.0,它似乎工作正常。

$ doas pkg_add ruby
$ doas gem install sensu
$ sensu-client -V
0.26.5

我甚至可以使用redis作为传输来启动服务器和客户端。