newrelic_f5_plugin 1.0.7 → 1.0.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.
- data/CHANGES +4 -0
- data/bin/f5_monitor +1 -0
- data/config/newrelic_plugin.yml +5 -1
- data/lib/newrelic_f5_plugin/agent.rb +12 -3
- data/newrelic_f5_plugin.gemspec +2 -2
- metadata +2 -2
data/CHANGES
CHANGED
data/bin/f5_monitor
CHANGED
data/config/newrelic_plugin.yml
CHANGED
@@ -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
|
+
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') { "#{
|
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
|
data/newrelic_f5_plugin.gemspec
CHANGED
@@ -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.
|
17
|
-
s.date = '2013-
|
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.
|
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-
|
12
|
+
date: 2013-12-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: newrelic_plugin
|