summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid recursion calls in do_free_vals()David Sommerseth2009-11-101-6/+11
|
* Simplified the API to parse_report() and check_filesize()David Sommerseth2009-11-101-41/+35
| | | | | Passing threadData_t * directly, instead of several individual parameters deriving from a threadData_t pointer.
* Corrected commentsDavid Sommerseth2009-11-101-2/+4
|
* Cosmetic fixDavid Sommerseth2009-11-101-1/+1
|
* Fixed a misleading log message during shutdown and a tiny memleakDavid Sommerseth2009-11-101-3/+2
|
* Added new config parameter: max_report_sizeDavid Sommerseth2009-11-106-7/+55
| | | | | | | | | | | | To avoid potential DoS attacks by sending big XML files, the max_report_size rejects reports which is bigger than this value. The default value is 2MB if this value is not configured. A new status code was introduced, STAT_FTOOBIG (12). The submissionqueue record will be updated with this value on records which fails this check. In addition minor SIGSEGV failure was fixed when rteval_parserd shutsdown before worker threads have really started.
* Fixed potential thread collision with oid return valuesDavid Sommerseth2009-11-101-3/+4
|
* autotoolised rteval_parserdDavid Sommerseth2009-11-055-13/+1266
|
* Merge branch 'master_ipv4' into clarkDavid Sommerseth2009-10-2634-238/+4931
|\ | | | | | | | | | | Conflicts: Makefile rteval.spec
| * Added xmlrpc mod_python stuff into rteval.spec fileDavid Sommerseth2009-10-262-11/+14
| | | | | | | | | | | | Rewrote the server/install.sh a little bit and moved out the apache conf generation to server/gen_config.sh which is also used by the rteval.spec file.
| * Cleaned up the XML-RPC serverDavid Sommerseth2009-10-266-227/+17
| | | | | | | | | | | | Removed code not needed any more and updated README with correct information. This is all connected to the introduction of the rteval_parserd process, which is found in ./parser.
| * Fixed a memory leak introduced in commit 70c850c13dabed16a69bDavid Sommerseth2009-10-231-0/+1
| |
| * Get rid of the sleep() calls and use blocking POSIX MQ callsDavid Sommerseth2009-10-232-12/+41
| | | | | | | | | | This way, the rteval_parserd will also shutdown almost instantly unless one of the threads are in the progress of parsing a report.
| * Improved robustness of database connections and thread controlDavid Sommerseth2009-10-233-19/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both the process_submission_queue() and parserthread() functions now make use of db_ping() to make sure they have an alive database connection. And if not, trigger the needed notifications. If the process_submission_queue() looses the database connection completely, it will shutdown rteval_parserd immediately. If the parserthread()s looes the database connection, it will reduce the activethreads counter. And if this counter reaches 0, it will signal the main thread which initiates a complete shutdown of rteval_parserd. Btw. db_ping() will indeed try to restore the database connection before presuming the database is unavailable.
| * Added db_ping() function and made db_wait_notification() more solidDavid Sommerseth2009-10-232-0/+49
| |
| * Extract kthreads and services info from XML reportsDavid Sommerseth2009-10-231-1/+1
| |
| * Added READMEDavid Sommerseth2009-10-221-0/+134
| |
| * Added simple Makefile, before it's automated completelyDavid Sommerseth2009-10-221-0/+13
| |
| * Fixed doxygen errorsDavid Sommerseth2009-10-229-13/+55
| |
| * Added daemonising of the processDavid Sommerseth2009-10-221-12/+80
| | | | | | | | | | And fixed an error when the program exits before POSIX MQ queue is opened and initialised.
| * If logging to file, fflush() on each writelog() callDavid Sommerseth2009-10-221-0/+4
| |
| * Make use of the 'threads' config/argument settingDavid Sommerseth2009-10-221-1/+7
| |
| * Added --help|-h with usage info, added missing --threads|-t argumentDavid Sommerseth2009-10-221-7/+67
| |
| * Implemented argument parsingDavid Sommerseth2009-10-223-9/+25
| |
| * 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-216-4/+18
| | | | | | | | | | 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-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-202-43/+60
| |
| * Fixed typosDavid Sommerseth2009-10-201-3/+3
| |
| * Added another database user account, and renamed the old oneDavid Sommerseth2009-10-191-1/+1
| | | | | | | | | | | | | | 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
| |