diff options
author | Michael Kerrin <michael.kerrin@hp.com> | 2015-02-10 15:16:40 +0000 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2015-02-10 11:01:33 -0500 |
commit | 5d1f3bb8b1f40372f70eb3421295b22082cb6c1d (patch) | |
tree | 56daa2e47923955bc1bfc5138930617a293bf9c8 | |
parent | 198f32e2fdd91cda93377fcf7fbece57bbc179e5 (diff) | |
download | sos-5d1f3bb8b1f40372f70eb3421295b22082cb6c1d.tar.gz |
[haproxy] Fix haproxy on Debian systems
Gather /var/log/haproxy.log files
Fixes #500
Signed-off-by: Michael Kerrin <michael.kerrin@hp.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r-- | sos/plugins/haproxy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/plugins/haproxy.py b/sos/plugins/haproxy.py index 48c03b1c..f2975a5a 100644 --- a/sos/plugins/haproxy.py +++ b/sos/plugins/haproxy.py @@ -13,10 +13,10 @@ # 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 +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin -class HAProxy(Plugin, RedHatPlugin): +class HAProxy(Plugin, RedHatPlugin, DebianPlugin): """HAProxy load balancer """ @@ -29,4 +29,6 @@ class HAProxy(Plugin, RedHatPlugin): self.add_copy_spec("/etc/haproxy/haproxy.cfg") self.add_cmd_output("haproxy -f /etc/haproxy/haproxy.cfg -c") + self.add_copy_spec("/var/log/haproxy.log") + # vim: et ts=4 sw=4 |