Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added missing log.[ch] files | David Sommerseth | 2009-10-22 | 2 | -0/+185 |
| | |||||
* | Fixed missing initialisation - causing SEGV during exit if not calloc'ed | David Sommerseth | 2009-10-22 | 1 | -1/+1 |
| | |||||
* | First cut at implementing a generic logger | David Sommerseth | 2009-10-21 | 15 | -234/+309 |
| | |||||
* | Moved status codes into its own header file | David Sommerseth | 2009-10-21 | 4 | -12/+41 |
| | |||||
* | Corrected missing or misleading doxygen comments | David Sommerseth | 2009-10-21 | 7 | -28/+69 |
| | |||||
* | Fixed a couple of memory leaks in db_wait_notification() | David Sommerseth | 2009-10-21 | 1 | -0/+3 |
| | |||||
* | Implemented database LISTEN via db_wait_notification() | David Sommerseth | 2009-10-21 | 3 | -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 field | David Sommerseth | 2009-10-21 | 7 | -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 robust | David Sommerseth | 2009-10-21 | 3 | -48/+39 |
| | | | | Also added missing error check of the result of the function call | ||||
* | Added trigger function on INSERT on submissionqueue | David Sommerseth | 2009-10-21 | 1 | -0/+24 |
| | | | | | This will NOTIFY all clients listening to 'rteval_submq', to trigger processing of this table after INSERTs have completed. | ||||
* | Added another missing file | David Sommerseth | 2009-10-21 | 1 | -0/+36 |
| | |||||
* | Added missing rteval_parserd ... with the needed main() function | David Sommerseth | 2009-10-21 | 1 | -0/+342 |
| | |||||
* | Added error message when submissionqueue update to STAT_INPROG fails | David Sommerseth | 2009-10-21 | 1 | -0/+5 |
| | |||||
* | Added logic to move parsed files into a specified report directory. | David Sommerseth | 2009-10-20 | 6 | -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 leak | David Sommerseth | 2009-10-20 | 1 | -1/+3 |
| | |||||
* | Added support for histogram data for cyclictest | David Sommerseth | 2009-10-20 | 3 | -44/+74 |
| | |||||
* | Fixed typos | David Sommerseth | 2009-10-20 | 1 | -3/+3 |
| | |||||
* | Added another database user account, and renamed the old one | David Sommerseth | 2009-10-19 | 2 | -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 ready | David Sommerseth | 2009-10-19 | 5 | -67/+222 |
| | | | | | Need to add daemonizing mode, add proper logging and fix all FIXME's in the code | ||||
* | Added a missing status level | David Sommerseth | 2009-10-15 | 2 | -12/+13 |
| | |||||
* | Rearrenged return codes from parsethread() | David Sommerseth | 2009-10-15 | 2 | -14/+22 |
| | |||||
* | Cleaned up and added comments | David Sommerseth | 2009-10-15 | 2 | -27/+60 |
| | |||||
* | Added first-cut of the parsethread() function | David Sommerseth | 2009-10-14 | 2 | -0/+135 |
| | |||||
* | Added db_begin(), db_rollback() and db_commit() functions | David Sommerseth | 2009-10-14 | 2 | -1/+72 |
| | |||||
* | Added needed pgsql.h file and cleaned up the DB API a little bit | David Sommerseth | 2009-10-13 | 2 | -20/+52 |
| | |||||
* | Added doxygen comments for xmlparser.[ch] and pgsql.c | David Sommerseth | 2009-10-12 | 3 | -2/+188 |
| | |||||
* | Added db_register_cyclictest() | David Sommerseth | 2009-10-12 | 1 | -0/+65 |
| | |||||
* | Note to self: it's more clever to use strdup_nullsafe() than strdup() ... | David Sommerseth | 2009-10-12 | 1 | -1/+1 |
| | |||||
* | Added db_register_rtevalrun() | David Sommerseth | 2009-10-12 | 2 | -2/+82 |
| | | | | | Registers report XML data into the rtevalruns and rtevalruns_details tables in the database. | ||||
* | Added db_register_system() | David Sommerseth | 2009-10-12 | 1 | -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 Sommerseth | 2009-10-12 | 2 | -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() functions | David Sommerseth | 2009-10-12 | 2 | -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 generic | David Sommerseth | 2009-10-09 | 1 | -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 xmlparser | David Sommerseth | 2009-10-09 | 1 | -46/+11 |
| | |||||
* | Added some more useful functions to xmlparser | David Sommerseth | 2009-10-09 | 2 | -0/+153 |
| | |||||
* | Added needed pieces to make the C based summary.xml parser work | David Sommerseth | 2009-10-07 | 14 | -0/+2126 |
| | |||||
* | Add XML-RPC submissions into a submission queue instead of parsing it directly | David Sommerseth | 2009-09-30 | 3 | -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 table | David Sommerseth | 2009-09-30 | 1 | -0/+19 |
| | |||||
* | rteval::XMLRPC_Send(): Fixed syntax error in except statement | David Sommerseth | 2009-09-28 | 1 | -1/+1 |
| | |||||
* | Fixed missing requires after rteval.spec cleanup | David Sommerseth | 2009-09-28 | 1 | -1/+1 |
| | |||||
* | Fixed missing variable. The value should be picked out from the configuration | David Sommerseth | 2009-09-25 | 1 | -2/+2 |
| | |||||
* | Updated XML-RPC README file and installation scripts | David Sommerseth | 2009-09-25 | 3 | -68/+127 |
| | |||||
* | Added creation of database user and database to the SQL script | David Sommerseth | 2009-09-24 | 1 | -0/+10 |
| | |||||
* | Rewritten XML-RPC server to use rtevalConfig | David Sommerseth | 2009-09-24 | 3 | -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 Sommerseth | 2009-09-24 | 1 | -7/+8 |
| | |||||
* | Added missing COPYING file | David Sommerseth | 2009-09-24 | 1 | -0/+824 |
| | |||||
* | Merge commit 'clark/master' into config | David Sommerseth | 2009-09-24 | 0 | -0/+0 |
|\ | |||||
| * | version bump to v1.3 | Clark Williams | 2009-09-22 | 2 | -2/+8 |
| | | |||||
| * | fixed syntax error (missing close paren) | Clark Williams | 2009-09-22 | 1 | -2/+1 |
| | | |||||
| * | Merge commit 'davids/config' into clark | Clark Williams | 2009-09-22 | 3 | -1/+104 |
| |\ |