cloudstack-nagios 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5d536aec1a546c0db7ad0a729fceed3ea4349c6
4
- data.tar.gz: 95c4507d6e980e3f0751822af703026540eabea4
3
+ metadata.gz: 03827f3422783fbb581345b23c1e77e6a16e4f81
4
+ data.tar.gz: b28228db0803a34ee63aa1d8d3920c316cb925ad
5
5
  SHA512:
6
- metadata.gz: 6512dc8236d4f5be881d036dc7c46b65c8d8d718eed44e5d78279c3e1a0f2761faea1cee4397960ba039e1c58e33e3a373160d135f5026e6c9d47820e0630c44
7
- data.tar.gz: 98f368563062e52e021bb21ad730bb2626a52061d49682c3f4133f3333aae2c37574a27fafcfc8af7165e2cbb7112cf72248af088c3fc2d6ad4ae128551d3941
6
+ metadata.gz: 3b82d5e0af8fb887afd9d0e4b3cd65f0618c7d5b5ce5f0c43b4b546691666917ad8e16de61b6af5ec6f604568240f51018775985b606978dad5187791fbcc2b2
7
+ data.tar.gz: 4148e97b700fff326eb915f464ab716e9b699ba209970ad016e1fef26eadea039b9a6b9bd05a98d51b732b14a4d3c9923b850bbb26227e7261150b52a0d17fac
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-nagios (0.7.6)
4
+ cloudstack-nagios (0.7.7)
5
5
  cloudstack_client (~> 0.4, >= 0.4.4)
6
6
  erubis (~> 2.7.0)
7
7
  highline (~> 1.6.20)
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module CloudstackNagios
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm