nat-monitor 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nat-monitor.rb +2 -2
- data/lib/nat-monitor/version.rb +1 -1
- 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: c2d895268e15e8f4652f7957bc640e433cce2e10
|
4
|
+
data.tar.gz: 9f1091d77b11b1b4de113a34987a791bc0c55b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65a92e8cb17fb483f02cbe521224902e9508d852e943923d6f8eb4cfac74bdb35e088d144a59b34692a513efc13adced47ebbb631bb5b6d57200728ccbd51c8
|
7
|
+
data.tar.gz: b27966f54669bd1117ba155457cde5c798cbee858dc90b7e30f2b6cb342e1de1a38ab0941abaaae8608353c465f8681088c9a767797074b29e7a6a89eb185b8d
|
data/lib/nat-monitor.rb
CHANGED
@@ -160,11 +160,11 @@ module EtTools
|
|
160
160
|
output msg unless msg.nil?
|
161
161
|
return unless @conf['monitor_enabled']
|
162
162
|
url = @conf['monitor_urls'][status]
|
163
|
-
url += "?msg=#{msg}" if status == 'fail' && !msg.nil?
|
163
|
+
url += "?msg=#{URI.escape(msg)}" if status == 'fail' && !msg.nil?
|
164
164
|
|
165
165
|
output 'Notifying external heartbeat monitor'
|
166
166
|
|
167
|
-
Net::HTTP.get(URI
|
167
|
+
Net::HTTP.get(URI url)
|
168
168
|
end
|
169
169
|
|
170
170
|
private
|
data/lib/nat-monitor/version.rb
CHANGED