This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb | |
index c1e310a..39111bd 100644 | |
--- a/lib/oxidized/source/csv.rb | |
+++ b/lib/oxidized/source/csv.rb | |
@@ -21,9 +21,9 @@ class CSV < Source | |
def load | |
nodes = [] | |
file = File.expand_path(@cfg.file) | |
- file = if @cfg.gpg? | |
+ if @cfg.gpg? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mib: RAY-MIB | |
modules: | |
sensors: | |
temperature: | |
data: | |
- | |
oid: temperatureRadio | |
num_oid: .1.3.6.1.4.1.33555.1.1.4.2. | |
descr: Internal Temp | |
index: 'temperatureRadio.{{ $index }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/ruby -w -I"lib:spec" -I"/usr/local/share/gems/gems/rake-11.2.2/lib" "/usr/local/share/gems/gems/rake-11.2.2/lib/rake/rake_test_loader.rb" "spec/cli_spec.rb" "spec/githubrepo_spec.rb" "spec/input/ssh_spec.rb" "spec/node_spec.rb" "spec/nodes_spec.rb" | |
/usr/local/share/gems/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/abstract.rb:61: warning: private attribute? | |
Run options: --seed 44955 | |
# Running: | |
Use assert_nil if expecting nil from /usr/local/share/gems/gems/minitest-5.10.1/lib/minitest/spec.rb:23:in `must_equal'. This will fail in MT6. | |
..Use assert_nil if expecting nil from /usr/local/share/gems/gems/minitest-5.10.1/lib/minitest/spec.rb:23:in `must_equal'. This will fail in MT6. | |
.D, [2017-09-25T20:07:45.900672 #16581] DEBUG -- : resolving DNS for example.com... | |
D, [2017-09-25T20:07:45.900770 #16581] DEBUG -- : IPADDR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Toshiba MIB | |
-- MIB for Toshiba G9000 Uninterruptible Power Supply | |
-- | |
--{iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) | |
-- toshiba(186) equ(1) equups(19) ticups(2) rmti4 (5) upsG9000-G2020(1)} | |
--============================================================================= | |
TIC-RMTI4-G9000-G2020-MIB DEFINITIONS ::= BEGIN | |
--============================================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PowerConnect < Oxidized::Model | |
prompt /^([\w\s.@-]+[#>]\s?)$/ # allow spaces in hostname..dell does not limit it.. # | |
comment '! ' | |
expect /^\s*--More--\s+.*$/ do |data, re| | |
send ' ' | |
data.sub re, '' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl http2; | |
server_name web01.lathwood.uk; | |
ssl_certificate /etc/letsencrypt/live/web01.lathwood.uk/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/web01.lathwood.uk/privkey.pem; | |
root /opt/librenms/html; | |
index index.php; | |
access_log /opt/librenms/logs/access_log; | |
error_log /opt/librenms/logs/error_log; | |
charset utf-8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GUDEADS-ETS-MIB DEFINITIONS ::= BEGIN | |
IMPORTS | |
enterprises, | |
MODULE-IDENTITY, | |
OBJECT-TYPE, | |
NOTIFICATION-TYPE, | |
Integer32, | |
IpAddress | |
FROM SNMPv2-SMI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.0G ./paas | |
8.1G ./os | |
18G ./updates | |
712M ./storage | |
56K ./fasttrack | |
2.1G ./virt | |
3.9G ./atomic | |
6.8G ./cloud | |
4.4G ./centosplus | |
333M ./rt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php | |
index 6ace36283..fb3680ea1 100644 | |
--- a/includes/snmp.inc.php | |
+++ b/includes/snmp.inc.php | |
@@ -220,7 +220,8 @@ function snmp_get_multi_oid($device, $oids, $options = '-OUQn', $mib = null, $mi | |
} | |
$cmd = gen_snmpget_cmd($device, $oids, $options, $mib, $mibdir); | |
- $data = trim(external_exec($cmd)); | |
+ $data = external_exec($cmd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class XOS < Oxidized::Model | |
# Extreme Networks XOS | |
prompt /^*?[\w .-]+# $/ | |
comment '# ' | |
cmd :all do |cfg| | |
# xos inserts leading \r characters and other trailing white space. | |
# this deletes extraneous \r and trailing white space. |