zoukankan      html  css  js  c++  java
  • logstash 安装zabbix插件

    <pre name="code" class="html">[root@xxyy yum.repos.d]# yum install ruby 
    
    
    Loaded plugins: refresh-packagekit, security
    Setting up Install Process
    Resolving 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 Resolution
    
    Dependencies Resolved
    
    =================================================================================================================================================================================
    
    ======================
     Package                                              Arch                                       Version                                                Repository                
    
                    Size
    =================================================================================================================================================================================
    
    ======================
    Installing:
     ruby                                                 x86_64                                     1.8.7.374-4.el6_6                                      base                      
    
                   538 k
    Installing 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 M
    
    Transaction Summary
    =================================================================================================================================================================================
    
    [root@xxyy yum.repos.d]# rpm -qa | grep ruby
    ruby-libs-1.8.7.374-4.el6_6.x86_64
    ruby-1.8.7.374-4.el6_6.x86_64
    
    
    yum install ruby ruby-devel rubygems rpm-build
    
    [root@xxyy yum.repos.d]# rpm -qa | grep ruby
    ruby-rdoc-1.8.7.374-4.el6_6.x86_64
    ruby-libs-1.8.7.374-4.el6_6.x86_64
    ruby-irb-1.8.7.374-4.el6_6.x86_64
    ruby-1.8.7.374-4.el6_6.x86_64
    ruby-devel-1.8.7.374-4.el6_6.x86_64
    rubygems-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, but
    CHANGELOG.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.13
    Validating logstash-output-zabbix
    
    
    Unable 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.org
    https://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.13
    Validating logstash-output-zabbix
    Installing logstash-output-zabbix
    Installation successful
    


    
                                        
    
  • 相关阅读:
    select(Linux 编程)
    Amazon DynamoDB, 面向互联网应用的高性能、可扩展的NoSQL数据库
    键值表
    工厂方法模式之C++实现
    spring(16)------spring的数据源配置
    LeetCode 206 Reverse Linked List(反转链表)(Linked List)(四步将递归改写成迭代)(*)
    地图之CLLocationManager的使用 定位功能使用
    正则则表达式大全(收集)
    文件的读取和写入(指定路径)
    二维码(带有图片)的生成
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350256.html
Copyright © 2011-2022 走看看