diff options
author | Peter Portante <peter.portante@redhat.com> | 2014-01-29 21:50:27 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-03-12 15:38:06 +0000 |
commit | c55c58cf2dabf93c924c839c8ed045c18e31ba1c (patch) | |
tree | 00c7f9b4ec26cf7ebc3d8b7afb4acb658dae2f3b | |
parent | 7146472eb85bb4ea39a244ca252e66478b3e30dd (diff) | |
download | sos-c55c58cf2dabf93c924c839c8ed045c18e31ba1c.tar.gz |
Add tuned plugin
Resolves Issue #232.
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/tuned.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sos/plugins/tuned.py b/sos/plugins/tuned.py new file mode 100644 index 00000000..60c22bcd --- /dev/null +++ b/sos/plugins/tuned.py @@ -0,0 +1,30 @@ +## Copyright (C) 2014 Red Hat, Inc., Peter Portante <peter.portante@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 + +class Tuned(Plugin, RedHatPlugin): + """Tuned related information + """ + packages = ('tuned',) + plugin_name = 'tuned' + + def setup(self): + self.add_cmd_output("tuned-adm list") + self.add_cmd_output("tuned-adm active") + self.add_cmd_output("tuned-adm recommend") + self.add_copy_spec("/var/log/tuned/tuned.log") + |