Changes between Version 1 and Version 2 of ShmDocDatabaseLogMsg
- Timestamp:
- 02/05/2009 03:19:49 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShmDocDatabaseLogMsg
v1 v2 3 3 The 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: 4 4 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). 6 6 * '''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. 7 7 * '''Operational''' (numeric value 25): messages about exceptional conditions during data processing in the data centre. Mainly for debugging and code optmisation purposes. … … 9 9 * '''Error''' (numeric value 40): error conditions like a large time lag in online data streams or detected timing errors. 10 10 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.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. 12 12 13 13 List of modules: