aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-10 20:52:12 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-10 20:53:44 +0100
commit65cbfba75d42398460cc830b32e135a35c006525 (patch)
tree4e2f741b412933a3097804318c6558a591587a77
parentc2c1d5230bba657d09602a3bca6b822210dc8bac (diff)
downloadsos-65cbfba75d42398460cc830b32e135a35c006525.tar.gz
[ipvs, cluster] new plugin for IP virtual server
Remove the ipvsadm command collection from the cluster plugin and put it in it's own plugin. Also collect connection entries with 'ipvsadm -Lc'. Fixes #302. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/cluster.py1
-rw-r--r--sos/plugins/ipvs.py33
2 files changed, 33 insertions, 1 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index 6b9864e8..b3b517e8 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -72,7 +72,6 @@ class Cluster(Plugin, RedHatPlugin):
"cman_tool nodes",
"cman_tool status",
"ccs_tool lsnode",
- "ipvsadm -L",
"corosync-quorumtool -l",
"corosync-quorumtool -s",
"corosync-cpgtool",
diff --git a/sos/plugins/ipvs.py b/sos/plugins/ipvs.py
new file mode 100644
index 00000000..8b845e0e
--- /dev/null
+++ b/sos/plugins/ipvs.py
@@ -0,0 +1,33 @@
+## Copyright (C) 2014 Red Hat, Inc. Jamie Bainbridge <jbainbri@redhat.com>
+## Copyright (C) 2014 Red Hat, Inc. Bryn M. Reeves <bmr@redhat.com>
+### This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin
+
+class Ipvs(Plugin, RedHatPlugin, DebianPlugin):
+ """Ipvs information
+ """
+
+ plugin_name = 'ipvs'
+
+ packages = ('ipvsadm',)
+
+ def setup(self):
+ self.add_cmd_outputs([
+ "ipvsadm -Ln",
+ "ipvsadm -Lc"
+ ])
+
+# vim: et ts=4 sw=4