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 +4 -4
- data/bin/check-check-lan.rb +5 -4
- data/lib/sensu-plugins-check-lan/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: 18cab72e56ff7599345a2b0fef03b50d2dddeb08
|
4
|
+
data.tar.gz: 0612a894852f84a15de56eacbcdcb7cc730ebb3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c54a4567d60bbc15c69fe5b97eb5d992f09b606c072e1c409ccca04d4f0fc13df1444cce96f9ec52b7787c103e20d3059aba0dc77f0e4e9407359d9d74118764
|
7
|
+
data.tar.gz: 012bf9c4b6c95160bdf0b40ce6a6627e4b8940ea5f44b26b881ebd1bba6e952db1653784d4d8c1f58f17180a8ab8f7b99e7b9c5a80a1027d45f59ba87cb90c56
|
data/bin/check-check-lan.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#! /usr/bin/
|
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
|
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.
|