newrelic_f5_plugin 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ * 1.0.8
2
+ - Changed the name attribute to agent_name as name wasn't being picked up
3
+ and we don't want to break systems that might have it set.
4
+
1
5
  * 1.0.7
2
6
  - Better handling of older versions of BIG-IP (pre 11.3.0)
3
7
  - Print F5 version in debug logs
data/bin/f5_monitor CHANGED
@@ -26,6 +26,7 @@ EOF
26
26
  end
27
27
 
28
28
  opts.on("-h", "--help") do
29
+ puts "New Relic F5 Plugin version #{NewRelic::F5Plugin::VERSION}"
29
30
  puts opts
30
31
  if File.basename($0) == File.basename(__FILE__)
31
32
  exit 0
@@ -31,8 +31,12 @@ agents:
31
31
  f5:
32
32
  # Define one or more instances
33
33
  -
34
- name: 'My F5'
35
34
  hostname: 'my-f5'
36
35
  port: 161
37
36
  snmp_community: 'public'
37
+ # -
38
+ # agent_name: 'Optional Label in New Relic (defaults to hostname)'
39
+ # hostname: 'my-other-f5'
40
+ # port: 161
41
+ # snmp_community: 'public'
38
42
 
@@ -4,7 +4,7 @@ require 'newrelic_plugin'
4
4
  require 'snmp'
5
5
 
6
6
  module NewRelic::F5Plugin
7
- VERSION = '1.0.7'
7
+ VERSION = '1.0.8'
8
8
 
9
9
  # Register and run the agent
10
10
  def self.run
@@ -27,8 +27,17 @@ module NewRelic::F5Plugin
27
27
  class Agent < NewRelic::Plugin::Agent::Base
28
28
  agent_guid 'com.newrelic.f5'
29
29
  agent_version VERSION
30
- agent_config_options :hostname, :port, :snmp_community
31
- agent_human_labels('F5') { "#{hostname}" }
30
+ agent_config_options :hostname, :port, :snmp_community, :agent_name
31
+ agent_human_labels('F5') { "#{agent_label}" }
32
+
33
+ #
34
+ #
35
+ #
36
+ def agent_label
37
+ return agent_name unless agent_name.nil?
38
+ return hostname
39
+ end
40
+
32
41
 
33
42
  #
34
43
  # Required, but not used
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'newrelic_f5_plugin'
16
- s.version = '1.0.7'
17
- s.date = '2013-10-28'
16
+ s.version = '1.0.8'
17
+ s.date = '2013-12-31'
18
18
  s.rubyforge_project = 'newrelic_f5_plugin'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_f5_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-28 00:00:00.000000000 Z
12
+ date: 2013-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_plugin