summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports
Commit message (Collapse)AuthorAgeFilesLines
* Reports: Fix import error (Reported by emias on IRC)Sol Jerome2011-04-191-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added next() method to Reports BatchFetch iterator for compatibility with ↵Chris St. Pierre2011-04-121-0/+4
| | | | pre-3.0 versions of python
* Reports: Use the newer DATABASES option in settings.pyTim Laszlo2011-04-111-19/+28
|
* PY3K + PEP8 fixes for remaining filesSol Jerome2011-04-071-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix deprecated 'raise' usageSol Jerome2011-04-062-7/+7
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: PY3K + PEP8 fixesSol Jerome2011-04-068-196/+275
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* sensible defaults for the Django module admin email addressesChris St. Pierre2011-04-051-1/+1
|
* Reports: Disable template loading from Python eggsSol Jerome2011-02-211-1/+0
| | | | | | | | | | | | This does not appear to work with the default settings for some distributions. Here is what happens on Ubuntu: [error] /usr/lib/pymodules/python2.6/django/template/loader.py:64: UserWarning: Your TEMPLATE_LOADERS setting includes 'django.template.loaders.eggs.load_template_source', but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS. This appears to be disabled in django by default as per http://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* export: Update version number for reportsSol Jerome2011-01-241-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Don't set TIME_ZONE unless it's supportedSol Jerome2010-11-021-1/+2
| | | | | | | Django added the TIME_ZONE = None bit in 1.2 and we are still supporting distros with 1.0 installed by default. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Fix default time zone settings (Resolves Ticket #957)Sol Jerome2010-11-021-1/+1
| | | | | | | | | | | We were previously defaulting to America/Chicago instead of leaving this option up to the user. Setting the default to None will cause Django to go by the system time. Note also that Django sets the os.environ['TZ'] variable when this is not none, so we want to be careful not to set that if we don't have to. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web_reports: Moved location of reports.wsgi to a more stable locationTim Laszlo2010-11-021-4/+0
|
* web_reports: determine static prefix automaticallyTim Laszlo2010-11-022-7/+44
|
* Reports: Fix typoSol Jerome2010-11-021-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web_reports: more PATH_INFO fixesTim Laszlo2010-11-021-2/+2
|
* web_reports: use PATH_INFO instead of path in the resolver. fixes prefix ↵Tim Laszlo2010-11-021-3/+3
| | | | problems.
* web_reports: remove commentsTim Laszlo2010-11-021-4/+0
|
* web_reports: remove web_prefix, add wsgi handlerTim Laszlo2010-11-022-17/+13
|
* reports: Remove svn merge conflictsSol Jerome2010-11-022-345/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* reports: Point to the bcfg2.org URLsSol Jerome2010-11-021-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* web reports: fix quotes in base-timeview.htmlTim Laszlo2010-11-021-1/+1
|
* web reports: tweaks and updatesTim Laszlo2010-11-021-21/+21
|
* web reports: new skinTim Laszlo2010-11-0233-1077/+1771
|
* reports: fix bcfg2-admin reports init when db is nonexistentTim Laszlo2010-11-021-2/+6
|
* DBStats: Purge historic data and expired clientsTim Laszlo2010-09-261-0/+34
| | | | | | | Adds a purge command to bcfg2-admin reports to permanently remove interactions and clients. Extends bcfg2-admin scrub to remove orphaned Reason and Entries objects. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6070 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix random mysql errorsTim Laszlo2010-07-301-12/+11
| | | | | | | | | Occasionally importing ping data would fail with "Commands out of sync; you can't run this command now". Improved logging and error handling for imports. Fixed indentation error in GetCurrentEntry git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5992 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Support for postgresqlTim Laszlo2010-07-162-83/+41
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5975 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Improved handling of binary objects in the databaseTim Laszlo2010-07-084-4/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5962 ce84e21b-d406-0410-9b95-82705330c041
* Removing old Django modelsTim Laszlo2010-07-083-572/+294
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5961 ce84e21b-d406-0410-9b95-82705330c041
* tabs -> spacesSol Jerome2010-06-102-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257 Fabian Affolter2010-06-093-40/+54
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5903 ce84e21b-d406-0410-9b95-82705330c041
* updatefix.py doesn't load initial database version for django 1.*Tim Laszlo2010-06-071-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5892 ce84e21b-d406-0410-9b95-82705330c041
* Performance improvements for bcfg2-admin reports scrub.Tim Laszlo2010-06-071-0/+30
| | | | | | | Switched object updates to executemany statements. Added BatchFetch to retreive Django objects in groups. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5891 ce84e21b-d406-0410-9b95-82705330c041
* Switch location to hostname. Urls break things.Tim Laszlo2010-06-041-6/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5887 ce84e21b-d406-0410-9b95-82705330c041
* Performance updates to dynamic reportsTim Laszlo2010-06-037-60/+140
| | | | | | | | | | | | | | | | | Added bad_entries, modified_entries, extra_entries database fields to reduce the number of calls. Created (bad|modified|extra)_entry_count methods to return the sbove fields and populate any missing values. Consolidate interaction_per_client query. Added unique constraint on client_id and timestamp in Interaction. Greatly improved the performance of interaction_per_client. Modified detailed-list.html to add modified field and reduce the database calls to two... unless the bad_entries, modified_entries, extra_entries fields need updating. Modified client index to use only two database queries. Adding automatic update Updating load_stats to update counters in reports_interaction git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5885 ce84e21b-d406-0410-9b95-82705330c041
* Assoicated elements only displays current elementTim Laszlo2010-06-011-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5871 ce84e21b-d406-0410-9b95-82705330c041
* Add option to log importscript.py messages to syslogTim Laszlo2010-05-261-9/+13
| | | | | | | Since we need the ability to do this for DBStats.py it doesn't hurt to add this if importscript.py runs with statistics.xml data. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5868 ce84e21b-d406-0410-9b95-82705330c041
* Use logging instead of print statements in importscript.pyTim Laszlo2010-05-261-13/+21
| | | | | | | | Switch from print statements to the standard Logger.py functions. This allows load_stats in importscript.py to log error messages when daemonized. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5867 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Handle errors in load_statsTim Laszlo2010-05-261-8/+14
| | | | | | | | If any of the sql database insertsor selects failed, the all of the data for the client at that point was lost. This uses an empty Reason object to preserve the rest of the data. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5866 ce84e21b-d406-0410-9b95-82705330c041
* reports: Fixes for Tickets #833 and #885Sol Jerome2010-05-203-7/+8
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5861 ce84e21b-d406-0410-9b95-82705330c041
* importscript.py: Add support for -C option (Patch from euth in Ticket #852)Sol Jerome2010-03-071-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5756 ce84e21b-d406-0410-9b95-82705330c041
* Reports/settings.py: Fix outdated link to time zone choicesSol Jerome2010-03-011-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5743 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix html validation errors for #798 (Patch from Thorsten Lockert)Sol Jerome2009-12-1910-54/+66
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5625 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-192-8/+8
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix traceback in Summary/System views (ticket #793 Reported by ↵Sol Jerome2009-11-121-3/+5
| | | | | | | | | | | | Thorsten Lockert) This commit actually fixes two issues: * Check for unicode strings * We were trying to modify an immutable tuple Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5577 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix incorrect error message (reported by Thorsten Lockert) [bugfix]Sol Jerome2009-11-101-1/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5567 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Stylesheet fixes from Tim LaszloSol Jerome2009-11-101-12/+11
| | | | | | | | | | | | | | | <quote who="Tim Laszlo" address="tim.laszlo@gmail.com"> > On Tue, Nov 10, 2009 at 9:50 AM, Tim Laszlo <tim.laszlo@gmail.com> wrote: > > This is a little cleanup work. Some of the divs aren't displaying properly > and in IE the layout is offset and occasionally pushed down. With this > patch the sidebar also extends down the length of the page to match the > content. Previously it stopped sort and looked funny with large amounts of > content. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5566 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Add missing space (Patch from Tim Laszlo)Sol Jerome2009-11-101-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5565 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Detailed Client List view from Tim LaszloSol Jerome2009-11-096-2/+159
| | | | | | | | | | | This commit adds a new view for the reporting system submitted by Tim Laszlo. It gives detailed information about clients in a table format with State, Good/Bad/Extra entry counts, time of last run, and server client last communicated with. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5563 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix interaction display (Patch from Tim Laszlo) [bugfix]Sol Jerome2009-11-092-8/+20
| | | | | | | | | | | | | | | | | | From mailing list: This has bugged me for a while.. not sure where it broke but when clicking on an action on a node the details no longer display. Every entry displayed "This item does not currently exist on the host but is specified to exist in the configuration.". This is for the "/elements/bad/266499/" views. Also the clients affected list was no longer being displayed. I changed the look up for item here to throw a 404 if it wasnt found. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5561 ce84e21b-d406-0410-9b95-82705330c041