aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/postfix.py5
-rw-r--r--sos/plugins/sendmail.py20
2 files changed, 13 insertions, 12 deletions
diff --git a/sos/plugins/postfix.py b/sos/plugins/postfix.py
index 0a5ee1a7..b2a7432e 100644
--- a/sos/plugins/postfix.py
+++ b/sos/plugins/postfix.py
@@ -28,7 +28,10 @@ class Postfix(Plugin):
"/etc/postfix/main.cf",
"/etc/postfix/master.cf"
])
- self.add_cmd_output("postconf")
+ self.add_cmd_output([
+ 'postconf',
+ 'mailq'
+ ])
class RedHatPostfix(Postfix, RedHatPlugin):
diff --git a/sos/plugins/sendmail.py b/sos/plugins/sendmail.py
index 811804f5..510d1cd2 100644
--- a/sos/plugins/sendmail.py
+++ b/sos/plugins/sendmail.py
@@ -23,33 +23,31 @@ class Sendmail(Plugin):
plugin_name = "sendmail"
profiles = ('services', 'mail')
-
packages = ('sendmail',)
+ def setup(self):
+ self.add_copy_spec("/etc/mail/*")
+ self.add_cmd_output([
+ 'mailq',
+ 'mailq -Ac'
+ ])
+
class RedHatSendmail(Sendmail, RedHatPlugin):
files = ('/etc/rc.d/init.d/sendmail',)
- packages = ('sendmail',)
def setup(self):
super(RedHatSendmail, self).setup()
- self.add_copy_spec([
- "/etc/mail/*",
- "/var/log/maillog"
- ])
+ self.add_copy_spec('/var/log/maillog')
class DebianSendmail(Sendmail, DebianPlugin, UbuntuPlugin):
files = ('/etc/init.d/sendmail',)
- packages = ('sendmail',)
def setup(self):
super(DebianSendmail, self).setup()
- self.add_copy_spec([
- "/etc/mail/*",
- "/var/log/mail.*"
- ])
+ self.add_copy_spec("/var/log/mail.*")
# vim: set et ts=4 sw=4 :