X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ferror_messages%2Ferror_messages.h;h=ca365383b25baa294eadfb00b4c1fbb10e2c9390;hb=ff0e686ac67bbd82b60c277eb324910dbc60f65f;hp=d1e0ab7aa20f6914855010eb6794853895cf4cf1;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/error_messages/error_messages.h b/src/error_messages/error_messages.h index d1e0ab7..ca36538 100755 --- a/src/error_messages/error_messages.h +++ b/src/error_messages/error_messages.h @@ -1,11 +1,12 @@ -/* @(#) $Id: error_messages.h,v 1.88 2009/06/24 17:06:25 dcid Exp $ */ +/* @(#) $Id: ./src/error_messages/error_messages.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -28,7 +29,7 @@ #define FOPEN_ERROR "%s(1103): ERROR: Unable to open file '%s'." #define SIZE_ERROR "%s(1104): ERROR: Maximum string size reached for: %s." #define NULL_ERROR "%s(1105): ERROR: Attempted to use null string. " -#define FORMAT_ERROR "%s(1106): ERROR: String not correctly formated." +#define FORMAT_ERROR "%s(1106): ERROR: String not correctly formated." #define MKDIR_ERROR "%s(1107): ERROR: Unable to create directory: '%s'" #define PERM_ERROR "%s(1108): ERROR: Permission error. Operation not completed." #define THREAD_ERROR "%s(1109): ERROR: Unable to create new pthread." @@ -48,6 +49,7 @@ #define UNLINK_ERROR "%s(1123): ERROR: Unable to delete file: '%s'." #define RENAME_ERROR "%s(1124): ERROR: Unable to rename file: '%s'." #define INT_ERROR "%s(1125): ERROR: Internal error (undefined)." +#define OPEN_ERROR "%s(1126): ERROR: Unable to open file '%s' reason '%s'" /* COMMON ERRORS */ @@ -72,6 +74,7 @@ #define SEND_ERROR "%s(1218): ERROR: Unable to send message to %s." #define RULESLOAD_ERROR "%s(1219): ERROR: Unable to access the rules directory." #define RULES_ERROR "%s(1220): ERROR: Error loading the rules: '%s'." +#define LISTS_ERROR "%s(1221): ERROR: Error loading the list: '%s'." #define QUEUE_SEND "%s(1224): ERROR: Error sending message to queue." #define SIGNAL_RECV "%s(1225): INFO: SIGNAL Received. Exit Cleaning..." #define XML_ERROR "%s(1226): ERROR: Error reading XML file '%s': %s (line %d)." @@ -95,6 +98,8 @@ #define IMSG_ERROR "%s(1222): ERROR: Invalid msg: %s" #define SNDMAIL_ERROR "%s(1223): ERROR: Error Sending email to %s (smtp server)" #define XML_INV_GRAN_MAIL "%s(1224): ERROR: Invalid 'email_alerts' config (missing parameters)." +#define CHLDWAIT_ERROR "%s(1261): ERROR: Waiting for child process. (status: %d)." +#define TOOMANY_WAIT_ERROR "%s(1262): ERROR: Too many errors waiting for child process(es)." /* rootcheck */ @@ -102,7 +107,7 @@ #define INVALID_RKCL_NAME "%s(1251): ERROR: Invalid rk configuration name: '%s'." #define INVALID_RKCL_VALUE "%s(1252): ERROR: Invalid rk configuration value: '%s'." #define INVALID_ROOTDIR "%s(1253): ERROR: Invalid rootdir (unable to retrieve)." -#define INVALID_RKCL_VAR "%s(1254): ERROR: Invalid rk variable: '%s'." +#define INVALID_RKCL_VAR "%s(1254): ERROR: Invalid rk variable: '%s'." /* syscheck */ @@ -124,6 +129,9 @@ #define INVALID_CAT "%s(1273): ERROR: Invalid category '%s' chosen." #define INVALID_CONFIG "%s(1274): ERROR: Invalid configuration. Element '%s': %s." #define INVALID_HOSTNAME "%s(1275): ERROR: Invalid hostname in syslog message: '%s'." +#ifdef GEOIP +#define INVALID_GEOIP_DB "%s(1276): ERROR: Cannot open GeoIP database: '%s'." +#endif /* Log collector */ @@ -140,7 +148,7 @@ #define AR_CMD_MISS "%s(1280): ERROR: Missing command options. " \ "You must specify a 'name', 'executable' and 'expect'." #define AR_MISS "%s(1281): ERROR: Missing options in the active response " \ - "configuration. " + "configuration. " #define ARQ_ERROR "%s(1301): ERROR: Unable to connect to active response queue." #define AR_INV_LOC "%s(1302): ERROR: Invalid active response location: '%s'." #define AR_INV_CMD "%s(1303): ERROR: Invalid command '%s' in the active response." @@ -191,7 +199,7 @@ #define ENCFILE_CHANGED "%s(1409): INFO: Authentication file changed. Updating." #define ENC_READ "%s(1410): INFO: Reading authentication keys file." - + /* Regex errors */ #define REGEX_COMPILE "%s(1450): ERROR: Syntax error on regex: '%s': %d." #define REGEX_SUBS "%s(1451): ERROR: Missing sub_strings on regex: '%s'." @@ -214,7 +222,7 @@ #define DUP_REGEX "%s(2109): ERROR: Duplicated offsets for same regex: '%s'." #define INV_DECOPTION "%s(2110): ERROR: Invalid decoder argument for %s: '%s'." #define DECODE_ADD "%s(2111): ERROR: Additional data to plugin decoder: '%s'." - + #define INV_OFFSET "%s(2120): ERROR: Invalid offset value: '%s'" #define INV_ATTR "%s(2121): ERROR: Invalid decoder attribute: '%s'" @@ -244,7 +252,7 @@ /* Rules reading errors */ -#define RL_INV_ROOT "%s(5101): ERROR: Invalid root element: '%s'." +#define RL_INV_ROOT "%s(5101): ERROR: Invalid root element: '%s'." #define RL_INV_RULE "%s(5102): ERROR: Invalid rule element: '%s'." #define RL_INV_ENTRY "%s(5103): ERROR: Invalid rule on '%s'. Missing id/level." #define RL_EMPTY_ATTR "%s(5104): ERROR: Rule attribute '%s' empty." @@ -271,7 +279,7 @@ #define DB_MISS_CONFIG "%s(5205): ERROR: Missing database configuration. "\ "It requires host, user, pass and database." #define DB_CONFIGERR "%s(5206): ERROR: Database configuration error." -#define DB_COMPILED "%s(5207): ERROR: OSSEC not compiled with support for '%s'." +#define DB_COMPILED "%s(5207): ERROR: OSSEC not compiled with support for '%s'." #define DB_MAINERROR "%s(5208): ERROR: Multiple database errors. Exiting." #define DB_CLOSING "%s(5209): INFO: Closing connection to database." #define DB_ATTEMPT "%s(5210): INFO: Attempting to reconnect to database." @@ -288,7 +296,7 @@ #define CONN_TO "%s: INFO: Connected to '%s' (%s queue)" #define MAIL_DIS "%s: INFO: E-Mail notification disabled. Clean Exit." - + /* Debug Messages */ #define STARTED_MSG "%s: DEBUG: Starting ..." #define FOUND_USER "%s: DEBUG: Found user/group ..." @@ -302,7 +310,6 @@ #define SERVER_UNAV "%s: WARN: Server unavailable. Setting lock." #define SERVER_UP "%s: INFO: Server responded. Releasing lock." - /* Ossec alert messages */ #define OS_AD_STARTED "ossec: Ossec started." #define OS_AG_STARTED "ossec: Agent started: '%s->%s'."