nat-monitor 3.0.2 → 3.0.3
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: bd97a59fe0d857bc533e90a9289cc2c6c768aa0d
|
4
|
+
data.tar.gz: a11eb00222e671afcb573ae6ed3e634463ca656e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e8a5c468d5a988dba0caee029a07a9a541f4ac47f24a22902118d7ffb8f92c86ff89a5365812be251fa945d277a19fe1ff95b9df9b8c292547aef176157656
|
7
|
+
data.tar.gz: bd13db4544f13e715a1fe31faec68202194301a108915316b96870fa1d3027fc1ba582375d1e187046875509d8469daa8594c5861a5c9670177ebc851944331b
|
data/lib/nat-monitor.rb
CHANGED
@@ -160,11 +160,11 @@ module EtTools
|
|
160
160
|
output msg
|
161
161
|
return unless @conf['monitor_enabled']
|
162
162
|
url = @conf['monitor_urls'][status]
|
163
|
-
url += "?msg=#{
|
163
|
+
url += "?msg=#{msg}" if status == 'fail' && !msg.nil?
|
164
164
|
|
165
165
|
output 'Notifying external heartbeat monitor'
|
166
166
|
|
167
|
-
Net::HTTP.get(URI url)
|
167
|
+
Net::HTTP.get(URI.escape url)
|
168
168
|
end
|
169
169
|
|
170
170
|
private
|
data/lib/nat-monitor/version.rb
CHANGED