Load MIBs to log server
Posted: Tue Mar 15, 2016 1:21 pm
I'd like to know how to load mibs to log server. We have two clustered servers.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rbCode: Select all
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 1: require: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 2: require: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 3: require: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 4: require: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 6: module: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 7: class: command not found
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 8: syntax error near unexpected token `('
/usr/local/nagioslogserver/logstash/vendor/jruby/lib/ruby/1.9/dl/import.rb: line 8: ` def initialize(handlers)'
Code: Select all
yum install libsmi libsmi-devel -y
gem install snmp
gem install dl
wget https://raw.githubusercontent.com/hallidave/ruby-snmp/master/import.rb
mkdir mibs
(move your mibs into the mibs folder)
ruby import.rb mibs/
cd data/ruby/snmp/mibs/
ls -ltrCode: Select all
-rwxrwxr-x. 1 nagios nagios 728 Jan 18 16:20 CIRCUIT-IF-MIB.yaml
-rwxrwxr-x. 1 nagios nagios 742 Jan 18 16:20 ATM-TC-MIB.yaml
-rwxrwxr-x. 1 nagios nagios 5135 Mar 18 08:16 DS1-MIB.yaml