1

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

到目前为止找不到任何有帮助的东西,所以任何帮助都将不胜感激。

到目前为止,我发现的只是这个链接 ,但我不知道他是怎么做到的。

我还尝试创建一个新盒子并通过安装 sensu 客户端gem install 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

有什么想法吗?

编辑:我应该提一下,我对 ruby​​ 很陌生,所以我可能在这里遗漏了一些非常愚蠢的东西

4

1 回答 1

0

我尝试使用并调整 OpenBSD 6.0,它似乎工作正常。

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

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

于 2016-10-20T14:28:40.550 回答