onering-report-plugins 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'resolv'
|
2
2
|
|
3
|
-
protocols = %w{tcp}
|
3
|
+
protocols = %w{tcp tcp6 udp udp6}
|
4
4
|
|
5
5
|
flags = "--numeric-hosts --numeric-ports --programs --tcp --udp -ee"
|
6
6
|
|
@@ -28,6 +28,7 @@ end
|
|
28
28
|
|
29
29
|
listening.lines.to_a[2..-1].each do |line|
|
30
30
|
protocol, recvq, sendq, local, foreign, state, user, inode, program = line.split(' ', 9)
|
31
|
+
|
31
32
|
next unless protocols.include?(protocol)
|
32
33
|
|
33
34
|
local = local.split(':')
|
@@ -38,6 +39,9 @@ listening.lines.to_a[2..-1].each do |line|
|
|
38
39
|
foreign_port = foreign[-1]
|
39
40
|
pid = program.split('/').first
|
40
41
|
|
42
|
+
command = getcommandline(pid)
|
43
|
+
next if command.nil?
|
44
|
+
|
41
45
|
netstat['listening'] << {
|
42
46
|
"protocol" => protocol,
|
43
47
|
"address" => local_host,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onering-report-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.42
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-04-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: onering-client
|
16
|
-
requirement: &
|
16
|
+
requirement: &22574360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *22574360
|
25
25
|
description: Base plugins for providing system information via the Onering client
|
26
26
|
utility
|
27
27
|
email: ghetzel@outbrain.com
|