• 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
    


    
                                        
    
  • 相关阅读:
    拓扑排序笔记
    Codeforces Round #683 (Div. 2, by Meet IT)(A->C)(构造,思维,贪心)
    Acwing 846. 树的重心(DFS枚举删除每一个点)
    Acwing 125. 耍杂技的牛(贪心)(从局部到全局)
    Acwing 802. 区间和(下标离散化+vector+二分)
    Acwing 799. 最长连续不重复子序列(双指针)
    Acwing 139. 回文子串的最大长度(前缀+后缀处理+哈希+二分)
    Linux shell 变量$#,$@,$0....的含义
    一双不锈钢筷子 的测试用例?
    OSI模型 TCP/IP模型 再整理
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350256.html
Copyright © 2020-2023  润新知