Sandro Bonazzola has uploaded a new change for review.

Change subject: WIP: sos: added ovirt_engine_reports sos plugin
......................................................................

WIP: sos: added ovirt_engine_reports sos plugin

TODO:
- change bug-url to the sos bug
- define what else need to be collected for ovirt-engine-dwh

Bug-Url: https://bugzilla.redhat.com/1073590

Change-Id: Id76ce5a1cd835fa160057a7d9d71aae82f1669f5
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/__main__.py
M src/sos/plugins/Makefile.am
A src/sos/plugins/ovirt_engine_reports.py
3 files changed, 34 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/19/25519/1

diff --git a/src/__main__.py b/src/__main__.py
index 24e4580..5633050 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -835,6 +835,7 @@
             "apache",
             "memory",
             "ovirt_engine_dwh",
+            "ovirt_engine_reports",
         ))
         self.configuration["sos_options"] = self.build_options()
         self.caller.call(
diff --git a/src/sos/plugins/Makefile.am b/src/sos/plugins/Makefile.am
index 5d9cffa..43326f4 100644
--- a/src/sos/plugins/Makefile.am
+++ b/src/sos/plugins/Makefile.am
@@ -25,12 +25,14 @@
 dist_sosplugins_PYTHON = \
        engine.py \
        ovirt_engine_dwh.py \
+       ovirt_engine_reports.py \
        postgresql.py \
        $(NULL)
 else
 dist_noinst_PYTHON = \
        engine.py \
        ovirt_engine_dwh.py \
+       ovirt_engine_reports.py \
        postgresql.py \
        $(NULL)
 endif
diff --git a/src/sos/plugins/ovirt_engine_reports.py 
b/src/sos/plugins/ovirt_engine_reports.py
new file mode 100644
index 0000000..4296afb
--- /dev/null
+++ b/src/sos/plugins/ovirt_engine_reports.py
@@ -0,0 +1,31 @@
+## Copyright (C) 2014 Red Hat, Inc., Sandro Bonazzola <[email protected]>
+
+### 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.
+
+
+"""oVirt Engine Reports related information"""
+
+
+from sos.plugintools import PluginBase
+
+
+class ovirt_engine_reports(PluginBase):
+    """oVirt Engine Reports related information"""
+
+    def setup(self):
+        self.addCopySpec('/var/log/ovirt-engine-reports')
+
+
+# vim: expandtab tabstop=4 shiftwidth=4


-- 
To view, visit http://gerrit.ovirt.org/25519
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id76ce5a1cd835fa160057a7d9d71aae82f1669f5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to