Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Changed log level argument from int to char * | David Sommerseth | 2009-10-22 | 2 | -3/+43 | |
| | | | | | Makes it easier to implement log parameters from argument parsing or config file | |||||
* | Added argument parser source files | David Sommerseth | 2009-10-22 | 2 | -0/+112 | |
| | ||||||
* | Added missing #include | David Sommerseth | 2009-10-22 | 1 | -0/+1 | |
| | ||||||
* | Logging to syslog by default. Fixed a typo | David Sommerseth | 2009-10-22 | 1 | -2/+2 | |
| | ||||||
* | Fixed memory leak in db_connect() | David Sommerseth | 2009-10-22 | 1 | -0/+1 | |
| | | | | | The memory region needed for the dbconn structure was not released in db_disconnect(). This leak was introduced in commit 9526e7d8844a47fa | |||||
* | Improved overall logging information | David Sommerseth | 2009-10-22 | 10 | -122/+173 | |
| | ||||||
* | 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 | 5 | -4/+16 | |
| | | | | | 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 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 | 5 | -44/+225 | |
| | | | | | 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 | 1 | -43/+27 | |
| | ||||||
* | Fixed typos | David Sommerseth | 2009-10-20 | 1 | -3/+3 | |
| | ||||||
* | 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 | |