summaryrefslogtreecommitdiffstats
path: root/server/parser
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed log level argument from int to char *David Sommerseth2009-10-222-3/+43
| | | | | Makes it easier to implement log parameters from argument parsing or config file
* Added argument parser source filesDavid Sommerseth2009-10-222-0/+112
|
* Added missing #includeDavid Sommerseth2009-10-221-0/+1
|
* Logging to syslog by default. Fixed a typoDavid Sommerseth2009-10-221-2/+2
|
* Fixed memory leak in db_connect()David Sommerseth2009-10-221-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 informationDavid Sommerseth2009-10-2210-122/+173
|
* 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-215-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 robustDavid Sommerseth2009-10-213-48/+39
| | | | Also added missing error check of the result of the function call
* 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-205-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 leakDavid Sommerseth2009-10-201-1/+3
|
* Added support for histogram data for cyclictestDavid Sommerseth2009-10-201-43/+27
|
* Fixed typosDavid Sommerseth2009-10-201-3/+3
|
* 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