summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added missing log.[ch] filesDavid Sommerseth2009-10-222-0/+185
|
* Fixed missing initialisation - causing SEGV during exit if not calloc'edDavid Sommerseth2009-10-221-1/+1
|
* First cut at implementing a generic loggerDavid Sommerseth2009-10-2115-234/+309
|
* Moved status codes into its own header fileDavid Sommerseth2009-10-214-12/+41
|
* Corrected missing or misleading doxygen commentsDavid Sommerseth2009-10-217-28/+69
|
* Fixed a couple of memory leaks in db_wait_notification()David Sommerseth2009-10-211-0/+3
|
* Implemented database LISTEN via db_wait_notification()David Sommerseth2009-10-213-5/+92
| | | | | | | | | | | | This introduces async waiting for report parsing. Commit 2584a3c36c97c757dc80108b898eede52b91dc44 introduced sending a NOTIFY whenever an INSERT is done into the submissionqueue table. With the db_wait_notification() the process_submission_queue() function will sleep until a a notification is received. The LISTEN, UNLISTEN and NOTIFY SQL commands are PostgreSQL dependent. Other database implementations may use what that database supports, or just simply do a sleep() to change the behaviour to a polling model.
* Extended rtevalruns table to contain a submid fieldDavid Sommerseth2009-10-217-4/+19
| | | | | This new field references submissionqueue.submid, to keep a link between parsed rtevalruns and the original submission.
* Simplified and made the get_destination_path() function more robustDavid Sommerseth2009-10-213-48/+39
| | | | Also added missing error check of the result of the function call
* Added trigger function on INSERT on submissionqueueDavid Sommerseth2009-10-211-0/+24
| | | | | This will NOTIFY all clients listening to 'rteval_submq', to trigger processing of this table after INSERTs have completed.
* Added another missing fileDavid Sommerseth2009-10-211-0/+36
|
* Added missing rteval_parserd ... with the needed main() functionDavid Sommerseth2009-10-211-0/+342
|
* Added error message when submissionqueue update to STAT_INPROG failsDavid Sommerseth2009-10-211-0/+5
|
* Added logic to move parsed files into a specified report directory.David Sommerseth2009-10-206-45/+233
| | | | | This directory is set in the 'xmlrpc_parser' section, with 'reportdir'. If this is not set, it defaults to /var/lib/rteval/reports.
* Fixed a memory leakDavid Sommerseth2009-10-201-1/+3
|
* Added support for histogram data for cyclictestDavid Sommerseth2009-10-203-44/+74
|
* Fixed typosDavid Sommerseth2009-10-201-3/+3
|
* Added another database user account, and renamed the old oneDavid Sommerseth2009-10-192-14/+16
| | | | | | | rtevxmlrpc - the user account the XML-RPC process uses rtevparser - the user the rteval_parserd program uses Adopted the right user levels to each table to this new setup
* Big rewrite, but now a working rteval_parserd process is readyDavid Sommerseth2009-10-195-67/+222
| | | | | Need to add daemonizing mode, add proper logging and fix all FIXME's in the code
* Added a missing status levelDavid Sommerseth2009-10-152-12/+13
|
* Rearrenged return codes from parsethread()David Sommerseth2009-10-152-14/+22
|
* Cleaned up and added commentsDavid Sommerseth2009-10-152-27/+60
|
* Added first-cut of the parsethread() functionDavid Sommerseth2009-10-142-0/+135
|
* Added db_begin(), db_rollback() and db_commit() functionsDavid Sommerseth2009-10-142-1/+72
|
* Added needed pgsql.h file and cleaned up the DB API a little bitDavid Sommerseth2009-10-132-20/+52
|
* Added doxygen comments for xmlparser.[ch] and pgsql.cDavid Sommerseth2009-10-123-2/+188
|
* Added db_register_cyclictest()David Sommerseth2009-10-121-0/+65
|
* Note to self: it's more clever to use strdup_nullsafe() than strdup() ...David Sommerseth2009-10-121-1/+1
|
* Added db_register_rtevalrun()David Sommerseth2009-10-122-2/+82
| | | | | Registers report XML data into the rtevalruns and rtevalruns_details tables in the database.
* Added db_register_system()David Sommerseth2009-10-121-3/+111
| | | | | This functions registers a report XML's system and hostname information in the database. It will return the numeric syskey ID.
* Added sqldataGetHostInfo()David Sommerseth2009-10-122-1/+42
| | | | | | This function parses the input report XML through the xmlparser.xsl XSLT template. It returns hostname and IP address via the function arguments and an sqldata XML document as the return value. On errors, NULL is returned.
* Refactored sqldataGetFid() and sqldataGetValue() functionsDavid Sommerseth2009-10-122-11/+15
| | | | | | | | sqldataGetFid() now takes xmlNode instead of xmlDoc, and sqldataGetValue() takes field name instead of numeric field id (fid) to simpilfy the API. Fixed a double-free bug caused by a missing strdup() in sqldataValueHas().
* Made some basic DB API stuff more genericDavid Sommerseth2009-10-091-1/+6
| | | | | Renamed connectdb() to db_connect() and introduced db_disconnect(). This is to make it easier to introduce a new database backend.
* Make pgsql_INSERT() make use of the new neat functions in xmlparserDavid Sommerseth2009-10-091-46/+11
|
* Added some more useful functions to xmlparserDavid Sommerseth2009-10-092-0/+153
|
* Added needed pieces to make the C based summary.xml parser workDavid Sommerseth2009-10-0714-0/+2126
|
* Add XML-RPC submissions into a submission queue instead of parsing it directlyDavid Sommerseth2009-09-303-10/+31
| | | | | | This is to avoid overloading the Apache process doing XML parsing and database inserts on bigger XML reports. A separate parser process will need to pick files from the submission queue and parse them in separate thread(s).
* Added submissionqueue tableDavid Sommerseth2009-09-301-0/+19
|
* rteval::XMLRPC_Send(): Fixed syntax error in except statementDavid Sommerseth2009-09-281-1/+1
|
* Fixed missing requires after rteval.spec cleanupDavid Sommerseth2009-09-281-1/+1
|
* Fixed missing variable. The value should be picked out from the configurationDavid Sommerseth2009-09-251-2/+2
|
* Updated XML-RPC README file and installation scriptsDavid Sommerseth2009-09-253-68/+127
|
* Added creation of database user and database to the SQL scriptDavid Sommerseth2009-09-241-0/+10
|
* Rewritten XML-RPC server to use rtevalConfigDavid Sommerseth2009-09-243-12/+35
| | | | | | | | | | | | | | | | | | | | | | | | | Introduced a new rteval.conf section for configuring the xmlrpc server. [xmlrpc_server] datadir: <path to where to save copy of summary.xml report> xsltpath: <path to where xmlparser.xsl can be found> db_server: <hostname of PostgreSQL server to connect to> db_port: <port number of PostgreSQL> database: <database to use> db_username: <connect to database as this user> db_password: <password for the db account> The default values of these parameters are: datadir: /var/lib/rteval xsltpath: /usr/share/rteval db_server: localhost db_port: 5432 database: rteval db_username: xmlrpc db_password: rtevaldb The xmlrpc_server section in the /etc/rteval.conf file only need those parameters which are different from the default values.
* Added append mode to rtevalConfig::Load()David Sommerseth2009-09-241-7/+8
|
* Added missing COPYING fileDavid Sommerseth2009-09-241-0/+824
|
* Merge commit 'clark/master' into configDavid Sommerseth2009-09-240-0/+0
|\
| * version bump to v1.3Clark Williams2009-09-222-2/+8
| |
| * fixed syntax error (missing close paren)Clark Williams2009-09-221-2/+1
| |
| * Merge commit 'davids/config' into clarkClark Williams2009-09-223-1/+104
| |\