Changeset 260 for trunk/src/sh_log_check.c
- Timestamp:
- Dec 7, 2009, 10:00:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_check.c
r257 r260 28 28 29 29 /* List of supported logfile types, format is 30 * { "TYPE_CODE", Reader_Callback_Function, Parser_Callback_function } 30 * { 31 * "TYPE_CODE", 32 * Reader_Callback_Function, 33 * Parser_Callback_function, 34 * Evaluate_Callback_Function 35 * } 31 36 * If Reader_Callback_Function is NULL, the default (line-oriented 32 37 * text file) reader is used. … … 78 83 plen = strlen(save_dir); 79 84 80 if (SL_TRUE == sl_ok_adds(plen, 1 29))81 { 82 plen += 1 29; /* 64 + 64 + 1*/85 if (SL_TRUE == sl_ok_adds(plen, 130)) 86 { 87 plen += 130; /* 64 + 64 + 2 */ 83 88 path = SH_ALLOC(plen); 84 89 (void) sl_snprintf(path, plen, "%s/%lu_%lu", save_dir, … … 860 865 { 861 866 sh_check_watches(); 867 sh_keep_match(); 862 868 } 863 869 SH_MUTEX_UNLOCK(mutex_logmon_check); … … 1036 1042 1037 1043 /* Define a check rule. 1038 * Format: Queue_Label : Regex 1039 * TYPE must be 'report' or 'sum' 1044 * Format: [KEEP(seconds,label):]Queue_Label : Regex 1045 * KEEP indicates that we keep the label, to perform 1046 * correlation matching 1040 1047 */ 1041 1048 static int sh_logmon_add_rule (const char * str)
Note:
See TracChangeset
for help on using the changeset viewer.