Skip to content

Commit

Permalink
[conntrack] add conntrack info
Browse files Browse the repository at this point in the history
The plugin conntrackd is renamed to conntrack. Added the following
conntrack commands to the plugin.
conntrack -L -o extended
conntrack -S

Closes: #2049
Resolves: #2251

Signed-off-by: Hemanth Nakkina hemanth.nakkina@canonical.com
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
  • Loading branch information
hemanthnakkina authored and TurboTurtle committed Oct 1, 2020
1 parent a3bfeaa commit e6af528
Showing 1 changed file with 11 additions and 4 deletions.
Expand Up @@ -11,16 +11,17 @@
UbuntuPlugin, SuSEPlugin)


class Conntrackd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin):
class Conntrack(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin):

short_desc = 'conntrackd - netfilter connection tracking user-space daemon'
short_desc = 'conntrack - netfilter connection tracking'

plugin_name = 'conntrackd'
plugin_name = 'conntrack'
profiles = ('network', 'cluster')

packages = ('conntrack-tools', 'conntrackd')
packages = ('conntrack-tools', 'conntrack', 'conntrackd')

def setup(self):
# Collect info from conntrackd
self.add_copy_spec("/etc/conntrackd/conntrackd.conf")
self.add_cmd_output([
"conntrackd -s network",
Expand All @@ -33,4 +34,10 @@ def setup(self):
"conntrackd -s expect",
])

# Collect info from conntrack
self.add_cmd_output([
"conntrack -L -o extended",
"conntrack -S",
])

# vim: set et ts=4 sw=4 :

0 comments on commit e6af528

Please sign in to comment.