diff options
author | Keith Robertson <kroberts@redhat.com> | 2011-11-09 15:05:00 -0500 |
---|---|---|
committer | Keith Robertson <kroberts@redhat.com> | 2011-11-14 09:30:04 -0500 |
commit | f5dbb92e6f6ec5b665d03ca76c7f413901597b78 (patch) | |
tree | f58323d04a9f24d6e6fbcb9c3e9d7cb365c192bd | |
parent | 9b08a42bf6a7b411c5b2cbadfbaeec1b9e49f315 (diff) | |
download | sos-f5dbb92e6f6ec5b665d03ca76c7f413901597b78.tar.gz |
New plugin for gluster.
- Added checkEnabled
-rw-r--r-- | sos/plugins/gluster.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py index 8fd20a5f..27c69b5a 100644 --- a/sos/plugins/gluster.py +++ b/sos/plugins/gluster.py @@ -12,10 +12,15 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +import os.path import sos.plugintools class gluster(sos.plugintools.PluginBase): '''gluster related information''' + def checkenabled(self): + return os.path.exists("/etc/glusterd") + def setup(self): - self.addCopySpecs(["/etc/glusterd/", "/var/log/glusterfs/"]) + self.addCopySpec("/etc/glusterd/") + self.addCopySpec("/var/log/glusterfs/") |