logstash 安装zabbix插件

来源:互联网 发布:淘宝哪家零食好吃 编辑:程序博客网 时间:2024/04/24 06:14
<pre name="code" class="html">[root@xxyy yum.repos.d]# yum install ruby Loaded plugins: refresh-packagekit, securitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package ruby.x86_64 0:1.8.7.374-4.el6_6 will be installed--> Processing Dependency: ruby-libs = 1.8.7.374-4.el6_6 for package: ruby-1.8.7.374-4.el6_6.x86_64--> Processing Dependency: libruby.so.1.8()(64bit) for package: ruby-1.8.7.374-4.el6_6.x86_64--> Running transaction check---> Package ruby-libs.x86_64 0:1.8.7.374-4.el6_6 will be installed--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.374-4.el6_6.x86_64--> Running transaction check---> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================================================= Package                                              Arch                                       Version                                                Repository                                Size=======================================================================================================================================================================================================Installing: ruby                                                 x86_64                                     1.8.7.374-4.el6_6                                      base                                     538 kInstalling for dependencies: compat-readline5                                     x86_64                                     5.2-17.1.el6                                           base                                     130 k ruby-libs                                            x86_64                                     1.8.7.374-4.el6_6                                      base                                     1.7 MTransaction Summary=================================================================================================================================================================================[root@xxyy yum.repos.d]# rpm -qa | grep rubyruby-libs-1.8.7.374-4.el6_6.x86_64ruby-1.8.7.374-4.el6_6.x86_64yum install ruby ruby-devel rubygems rpm-build[root@xxyy yum.repos.d]# rpm -qa | grep rubyruby-rdoc-1.8.7.374-4.el6_6.x86_64ruby-libs-1.8.7.374-4.el6_6.x86_64ruby-irb-1.8.7.374-4.el6_6.x86_64ruby-1.8.7.374-4.el6_6.x86_64ruby-devel-1.8.7.374-4.el6_6.x86_64rubygems-1.3.7-5.el6.noarch淘宝源地址;  https://ruby.taobao.org    [elk@dr-mysql01 logstash-2.3.4]$ pwd  /usr/local/logstash-2.3.4  [elk@dr-mysql01 logstash-2.3.4]$ cat Gemfile | grep -i zabbix  [elk@dr-mysql01 logstash-2.3.4]$       logstash-output-zabbix      1.安装 gem 包    yum install -y gem      2.  [root@xxyy logstash-2.3.4]# grep -i zabbix *CHANGELOG.md:  - feature: new output plugin "zabbix" - similar to the nagios output, butCHANGELOG.md:    works with the Zabbix monitoring system. Contributed by Johan at[root@xxyy logstash-2.3.4]# grep -i 'taobao' *gem sources --remove http://rubygems.org/      3.gem sources -a https://ruby.taobao.org      4.gem sources -l      安装 zabbix插件    [root@xxyy bin]#  ./logstash-plugin   install logstash-output-zabbix Ignoring ffi-1.9.13 because its extensions are not built.  Try: gem pristine ffi --version 1.9.13Validating logstash-output-zabbixUnable to download data from https://rubygems.org - too many connection resets (https://api.rubygems.org/latest_specs.4.8.gz)ERROR: Installation aborted, verification failed for logstash-output-zabbix [root@xxyy bin]# gem sources -l*** CURRENT SOURCES ***https://ruby.taobao.orghttps://ruby.taobao.org[root@xxyy logstash-2.3.4]# vim Gemfile# This is a Logstash generated Gemfile.# If you modify this file manually all comments and formatting will be lost.source "https://ruby.taobao.org"gem "logstash-core", "2.3.4"[root@xxyy bin]#  ./logstash-plugin   install logstash-output-zabbix Ignoring ffi-1.9.13 because its extensions are not built.  Try: gem pristine ffi --version 1.9.13Validating logstash-output-zabbixInstalling logstash-output-zabbixInstallation successful


                                             
0 0
原创粉丝点击