cloudstack-nagios 0.7.7 → 0.7.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03827f3422783fbb581345b23c1e77e6a16e4f81
|
4
|
+
data.tar.gz: b28228db0803a34ee63aa1d8d3920c316cb925ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b82d5e0af8fb887afd9d0e4b3cd65f0618c7d5b5ce5f0c43b4b546691666917ad8e16de61b6af5ec6f604568240f51018775985b606978dad5187791fbcc2b2
|
7
|
+
data.tar.gz: 4148e97b700fff326eb915f464ab716e9b699ba209970ad016e1fef26eadea039b9a6b9bd05a98d51b732b14a4d3c9923b850bbb26227e7261150b52a0d17fac
|
data/Gemfile.lock
CHANGED
@@ -29,11 +29,17 @@ class NagiosConfig < CloudstackNagios::Base
|
|
29
29
|
desc: "path of ERB template to use",
|
30
30
|
default: File.join(File.dirname(__FILE__), '..', 'templates', 'cloudstack_router_services.cfg.erb'),
|
31
31
|
aliases: '-t'
|
32
|
+
option :if_speed,
|
33
|
+
desc: 'network interface speed in bits per second',
|
34
|
+
type: :numeric,
|
35
|
+
default: 1000000,
|
36
|
+
aliases: '-s'
|
32
37
|
def router_services
|
33
38
|
service_template = load_template(options[:template])
|
34
39
|
puts service_template.result(
|
35
40
|
routers: cs_routers,
|
36
41
|
bin_path: bin_path,
|
42
|
+
if_speed: options[:if_speed],
|
37
43
|
config_file: options[:config],
|
38
44
|
date: date_string
|
39
45
|
)
|
@@ -25,7 +25,7 @@ define command {
|
|
25
25
|
|
26
26
|
define command {
|
27
27
|
command_name cs-nagios_check-network
|
28
|
-
command_line <%= bin_path -%>cs-nagios check router network -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --config <%= config_file %>
|
28
|
+
command_line <%= bin_path -%>cs-nagios check router network -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ --if-speed <%= if_speed %> --config <%= config_file %>
|
29
29
|
register 1
|
30
30
|
}
|
31
31
|
|