sensu-plugins-check-lan 0.0.4 → 0.0.5

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: b3202ca9ee63aa72b3c0732a005d693f997ad3f4
4
- data.tar.gz: 2bc52313ccf154eae4cc7112db540e0c86fbdaf4
3
+ metadata.gz: 18cab72e56ff7599345a2b0fef03b50d2dddeb08
4
+ data.tar.gz: 0612a894852f84a15de56eacbcdcb7cc730ebb3d
5
5
  SHA512:
6
- metadata.gz: 1c1eec74c1eb34ae2728aa0d15407c618411d3b8e74abb8bc686291663baf5e7ef0393406833bda4b9faba9d1cdcaea94db1a9251b4c2b95559adb377cccd4a4
7
- data.tar.gz: 39957efbdcaf96df1197730fbb19785bd8d6ff341a11b182e22c8bf085e69e0ac9a2576ff271832710ca0631c24c75bcbcef8ef7c59ac7173c7c6c2cad2c7cf7
6
+ metadata.gz: c54a4567d60bbc15c69fe5b97eb5d992f09b606c072e1c409ccca04d4f0fc13df1444cce96f9ec52b7787c103e20d3059aba0dc77f0e4e9407359d9d74118764
7
+ data.tar.gz: 012bf9c4b6c95160bdf0b40ce6a6627e4b8940ea5f44b26b881ebd1bba6e952db1653784d4d8c1f58f17180a8ab8f7b99e7b9c5a80a1027d45f59ba87cb90c56
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env ruby
1
+ #! /usr/bin/ruby
2
2
  #
3
3
  # check-lan
4
4
  #
@@ -6,6 +6,9 @@
6
6
  # This plugin uses checks (standalone) if a given ip is reachable and if it is not restarts the given interface.
7
7
  # If this is not successfull this plugin reboots the client machine.
8
8
  #
9
+ # OUTPUT:
10
+ # plain text
11
+ #
9
12
  # PLATFORMS:
10
13
  # Linux
11
14
  #
@@ -17,13 +20,11 @@
17
20
  # NOTES:
18
21
  #
19
22
  # LICENSE:
20
- # Copyright 2017 Max
23
+ # Copyright 2017
21
24
  # Released under the same terms as Sensu (the MIT license); see LICENSE
22
25
  # for details.
23
26
 
24
27
  require 'sensu-plugin/check/cli'
25
- require 'sys/filesystem'
26
- include Sys
27
28
 
28
29
  class CheckLan < Sensu::Plugin::Check::CLI
29
30
  #change the IP whatever IP you want to ping.
@@ -6,7 +6,7 @@ module SensuPluginsCheckLan
6
6
  module Version
7
7
  MAJOR = 0
8
8
  MINOR = 0
9
- PATCH = 4
9
+ PATCH = 5
10
10
 
11
11
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-check-lan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max