simple_host_monitoring 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e473f9c33841dfd3b489c434bae1751a587fec16
4
- data.tar.gz: 370acdef2777fd6865d3f8f5592a51c0a6d6fa16
3
+ metadata.gz: 7aa1f1f2ddf2259b2ddb3886b37d30c6338d75f5
4
+ data.tar.gz: 4e86c13bf7f0dcdab8a4a6e35d14978f4d95b1af
5
5
  SHA512:
6
- metadata.gz: ae38a1728b7f93b15d413a3f7759758ac41bb2e28f4487cbdefc1040626cd4e087a5fcb136028ca6c92ec522254ca450a7e15260e448febb45c69e5a763aefe5
7
- data.tar.gz: 20690ba33e9af2a95951c5269a3552db505f3041329e156915be7913b4c0464b8e450fa85c572287747d6acb31f05ebdcb9fc94d715df02475a4cd1713a3802c
6
+ metadata.gz: 1cd81405cc05cd08799491ab6794a965017d3cf5c699f424b164ca31c559dd4a6f573d5821c52ab1959478c3d138ecacf68356acf802c5d8547aff821c336a3d
7
+ data.tar.gz: de480eb748b1d79e873664e6a343480478b3d3b33f77db03fd08f89ec0fad485c5b4168c96087f5517cc1a1c22dfdac5cde846e1d7f288032b3844e693fda7bf
@@ -45,7 +45,7 @@ module BlackStack
45
45
  # TODO: Esta funcion no retorna la mac address completa
46
46
  # TODO: Validar que no se retorne una macaddress virtual, con todos valores en 0
47
47
  def self.macaddress()
48
- return `cat /sys/class/net/eth0/address`.upcase.strip.gsub(':', '-') unless BlackStack::RemoteHost.new.windows_os?
48
+ return `ifconfig | grep ether`.split[1].upcase.strip.gsub(':', '-') unless BlackStack::RemoteHost.new.windows_os?
49
49
 
50
50
  s = `ipconfig /all`
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_host_monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-08 00:00:00.000000000 Z
11
+ date: 2021-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket