Changes between Version 1 and Version 2 of ShmDocDatabaseLogMsg


Ignore:
Timestamp:
02/05/2009 03:19:49 PM (14 years ago)
Author:
MarcusWalther
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ShmDocDatabaseLogMsg

    v1 v2  
    33The core of the automatic status check is the logmsg database. It holds status messages created by various processes which are usually running as cron jobs. The messages have different severity which is characterised as an alert level. The levels implemented so far are: 
    44 
    5     * '''Alive''' (numeric value 10): alive messages of cron jobs, created when exiting the process in a normal way. The messages are used to check whether all processes are running regularly (done by program ProcessCheck.py). 
     5    * '''Alive''' (numeric value 10): alive messages of cron jobs, created when exiting the process in a normal way. The messages are used to check whether all processes are running regularly (done by program !ProcessCheck.py). 
    66    * '''Informational''' (numeric value 20): informational messages of cron jobs, e.g. about a newly created data directory (of type C) or an ISO file or a DVD has been written. These messages are for operators of the data centre. 
    77    * '''Operational''' (numeric value 25): messages about exceptional conditions during data processing in the data centre. Mainly for debugging and code optmisation purposes. 
     
    99    * '''Error''' (numeric value 40): error conditions like a large time lag in online data streams or detected timing errors.  
    1010 
    11 The messages are collected in a mysql database, named '''logmsg'''. It contains two tables, [ShmDocDatabaseMsgtab msgtab] and [ShmDocDatabaseTxttab txttab]. The status of a station is then determined by the occurrence of a message of a specific alert level within a given time. The program ''MsgDisplay.py'' evalutes the status of all stations and displays it visually in window. As parameter it takes the (integer) number of hours back in time from now. Within this time window it retrieves messages from the logmsg database. If warning or error messages are present within this window it marks the station in yellow or red colour, respectively. Once a minute it updates the status information. Possible status changes are notified by colour changes and optionally by emails sent out to an address list specified as second parameter. 
     11The messages are collected in a mysql database, named '''logmsg'''. It contains two tables, [ShmDocDatabaseMsgtab msgtab] and [ShmDocDatabaseTxttab txttab]. The status of a station is then determined by the occurrence of a message of a specific alert level within a given time. The program ''!MsgDisplay.py'' evalutes the status of all stations and displays it visually in window. As parameter it takes the (integer) number of hours back in time from now. Within this time window it retrieves messages from the logmsg database. If warning or error messages are present within this window it marks the station in yellow or red colour, respectively. Once a minute it updates the status information. Possible status changes are notified by colour changes and optionally by emails sent out to an address list specified as second parameter. 
    1212 
    1313List of modules: