diff options
-rw-r--r-- | sos/plugins/apache.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sos/plugins/apache.py b/sos/plugins/apache.py index f4f24dc0..a96374fe 100644 --- a/sos/plugins/apache.py +++ b/sos/plugins/apache.py @@ -22,10 +22,11 @@ class Apache(Plugin): ] def setup(self): - # collect list of installed modules + # collect list of installed modules and verify config syntax. self.add_cmd_output([ "apachectl -M", - "apachectl -S" + "apachectl -S", + "apachectl -t" ]) # The foreman plugin collects these files with a greater size limit: @@ -59,6 +60,8 @@ class RedHatApache(Apache, RedHatPlugin): self.add_forbidden_path("/etc/httpd/conf/password.conf") + self.add_cmd_output('systemctl status httpd') + # collect only the current log set by default self.add_copy_spec([ "/var/log/httpd/access_log", @@ -97,6 +100,8 @@ class DebianApache(Apache, DebianPlugin, UbuntuPlugin): "/etc/default/apache2" ]) + self.add_cmd_output('systemctl status apache2') + # collect only the current log set by default self.add_copy_spec([ "/var/log/apache2/access_log", |