mtr_monitor 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mtr_monitor/version.rb +1 -1
- data/lib/mtr_monitor.rb +16 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6be33185373ab79b6d011cec548f116de082abad
|
4
|
+
data.tar.gz: 93c52fe0da0cc6a194af1ba1843cc16b7f905071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac5062855e550a4a151ab961c3b2e4f39540ffc2420409987586728f662ee86370bc5363d5834cbc5769e5445d7285835dc4c8128d0e0469db863d322164733
|
7
|
+
data.tar.gz: 2b380ed039b1bd59a9b1252a2feec5f3d6fb46c33eb8f7a6249eb3e4f018ba5f7210f07e0e041463608dda3899a4b2e370ee3cb82a377d036ebea9729ed21d35
|
data/Gemfile.lock
CHANGED
data/lib/mtr_monitor/version.rb
CHANGED
data/lib/mtr_monitor.rb
CHANGED
@@ -66,20 +66,32 @@ module MtrMonitor
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def emit_provider_to_logdna
|
69
|
-
|
70
|
-
|
69
|
+
mtr_log = File.read(@log_path)
|
70
|
+
|
71
|
+
if mtr_log.include?("telia.net")
|
72
|
+
telia
|
73
|
+
elsif mtr_log.include?("gtt.net")
|
74
|
+
gtt
|
75
|
+
else
|
76
|
+
unknown
|
77
|
+
end
|
71
78
|
end
|
72
79
|
|
73
80
|
def telia
|
74
|
-
@logdna.log("
|
81
|
+
@logdna.log("Telia network provider")
|
75
82
|
@logger.info("Network provider: Telia -- Emitted to LogDNA")
|
76
83
|
end
|
77
84
|
|
78
85
|
def gtt
|
79
|
-
@logdna.log("
|
86
|
+
@logdna.log("GTT network provider")
|
80
87
|
@logger.info("Network provider: GTT -- Emitted to LogDNA")
|
81
88
|
end
|
82
89
|
|
90
|
+
def unknown
|
91
|
+
@logdna.log("Unknown network provider ")
|
92
|
+
@logger.info("Network provider: Unknown -- Emitted to LogDNA")
|
93
|
+
end
|
94
|
+
|
83
95
|
def generate_local_report
|
84
96
|
destination = @dig_ip_address ? dig : @domain
|
85
97
|
|