aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-08-30 13:49:37 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-11-01 14:17:59 +0000
commit8baf738f111d6351788530c663d6b920013863d0 (patch)
tree099c2c18990a396781d636d25ea842ba01d1a7c3
parentc0a01babf324f4df36ac666338cfde0c008306ff (diff)
downloadsos-8baf738f111d6351788530c663d6b920013863d0.tar.gz
[perl] add new plugin and move package verification
Add a new plugin for the perl runtime and move the perl.* package verification checks from the RPM plugin. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/perl.py28
-rw-r--r--sos/plugins/rpm.py1
2 files changed, 28 insertions, 1 deletions
diff --git a/sos/plugins/perl.py b/sos/plugins/perl.py
new file mode 100644
index 00000000..91884a2d
--- /dev/null
+++ b/sos/plugins/perl.py
@@ -0,0 +1,28 @@
+# 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.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin
+
+
+class Perl(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
+ """Perl runtime"""
+
+ plugin_name = "perl"
+ profiles = ('webserver', 'perl')
+ verify_packages = ('perl.*',)
+
+ def setup(self):
+ self.add_cmd_output("perl -V")
+
+# vim: set et ts=4 sw=4 :
diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py
index 53043664..3a9eb993 100644
--- a/sos/plugins/rpm.py
+++ b/sos/plugins/rpm.py
@@ -27,7 +27,6 @@ class Rpm(Plugin, RedHatPlugin):
("rpmva", "runs a verify on all packages", "slow", False)]
verify_list = [
- 'perl.*',
'rpm', 'yum',
'spacewalk.*',
]