Blame SOURCES/sos-bz1028072-add-nfs-client-plugin.patch

6b17e9
commit 9259b1ba0b19e4376815b3d77545cfb4f700c6dd
6b17e9
Author: Bryn M. Reeves <bmr@redhat.com>
6b17e9
Date:   Fri Nov 8 14:59:56 2013 +0000
6b17e9
6b17e9
    Add simple nfs plug-in
6b17e9
    
6b17e9
    There has been an nfsserver plug-in for some time however no
6b17e9
    corresponding client-side data is collected.
6b17e9
    
6b17e9
    This was added to sos-2.2 earlier this year. This commit is a
6b17e9
    forward port of those changes:
6b17e9
    
6b17e9
        commit 71066b4a7d4fd97692b50bf231ad6810df5ec3d0
6b17e9
        Author: root <root@rhel6-vm2.(none)>
6b17e9
        Date:   Wed Jul 10 17:11:52 2013 +0100
6b17e9
    
6b17e9
            Collect additional nfs-client relevant files
6b17e9
    
6b17e9
            Additional NFS client-side data collection:
6b17e9
    
6b17e9
                "/etc/nfsmount.conf",
6b17e9
                "/proc/fs/nfsfs/servers",
6b17e9
                "/proc/fs/nfsfs/volumes"
6b17e9
    
6b17e9
            Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
6b17e9
    
6b17e9
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
6b17e9
6b17e9
diff --git a/sos/plugins/nfs.py b/sos/plugins/nfs.py
6b17e9
new file mode 100644
6b17e9
index 0000000..4acbe38
6b17e9
--- /dev/null
6b17e9
+++ b/sos/plugins/nfs.py
6b17e9
@@ -0,0 +1,31 @@
6b17e9
+### This program is free software; you can redistribute it and/or modify
6b17e9
+## it under the terms of the GNU General Public License as published by
6b17e9
+## the Free Software Foundation; either version 2 of the License, or
6b17e9
+## (at your option) any later version.
6b17e9
+
6b17e9
+## This program is distributed in the hope that it will be useful,
6b17e9
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
6b17e9
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6b17e9
+## GNU General Public License for more details.
6b17e9
+
6b17e9
+## You should have received a copy of the GNU General Public License
6b17e9
+## along with this program; if not, write to the Free Software
6b17e9
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
6b17e9
+
6b17e9
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
6b17e9
+
6b17e9
+class Nfs(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
6b17e9
+    """NFS related information
6b17e9
+    """
6b17e9
+    plugin_name = 'nfs'
6b17e9
+    packages = ['nfs-utils']
6b17e9
+
6b17e9
+    def setup(self):
6b17e9
+	self.add_copy_specs([
6b17e9
+                "/etc/nfsmount.conf",
6b17e9
+                "/etc/idmapd.conf",
6b17e9
+                "/proc/fs/nfsfs/servers",
6b17e9
+                "/proc/fs/nfsfs/volumes"
6b17e9
+        ])
6b17e9
+        return
6b17e9
+