-/* @(#) $Id: ./src/error_messages/error_messages.h, 2011/09/08 dcid Exp $
- */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
* Foundation
*/
-/* Part of OSSEC HIDS ( http://www.ossec.net )
- * Error/debug messages
- */
-
-
#ifndef _ERROR_MESSAGES__H
-
#define _ERROR_MESSAGES__H
-
- /*** Error messages - English ***/
-
+/*** Error messages - English ***/
/* SYSTEM ERRORS */
-#define FORK_ERROR "%s(1101): ERROR: Unable to fork. Exiting."
-#define MEM_ERROR "%s(1102): ERROR: Not enough Memory. Exiting."
-#define FOPEN_ERROR "%s(1103): ERROR: Unable to open file '%s'."
+#define FORK_ERROR "%s(1101): ERROR: Could not fork due to [(%d)-(%s)]."
+#define MEM_ERROR "%s(1102): ERROR: Could not acquire memory due to [(%d)-(%s)]."
+#define FOPEN_ERROR "%s(1103): ERROR: Could not open file '%s' due to [(%d)-(%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 MKDIR_ERROR "%s(1107): ERROR: Unable to create directory: '%s'"
-#define PERM_ERROR "%s(1108): ERROR: Permission error. Operation not completed."
+#define FORMAT_ERROR "%s(1106): ERROR: String not correctly formatted."
+#define MKDIR_ERROR "%s(1107): ERROR: Could not create directory '%s' due to [(%d)-(%s)]."
+//#define PERM_ERROR "%s(1108): ERROR: Permission error. Operation not completed."
#define THREAD_ERROR "%s(1109): ERROR: Unable to create new pthread."
-#define READ_ERROR "%s(1110): ERROR: Unable to read from socket."
-#define WAITPID_ERROR "%s(1111): ERROR: Unable to Waitpid()."
-#define SETSID_ERROR "%s(1112): ERROR: Unable to Setsid()."
+//#define READ_ERROR "%s(1110): ERROR: Unable to read from socket."
+#define WAITPID_ERROR "%s(1111): ERROR: Error during waitpid()-call due to [(%d)-(%s)]."
+#define SETSID_ERROR "%s(1112): ERROR: Error during setsid()-call due to [(%d)-(%s)]."
#define MUTEX_ERROR "%s(1113): ERROR: Unable to set pthread mutex."
-#define SELECT_ERROR "%s(1114): ERROR: Unable to select()."
-#define FREAD_ERROR "%s(1115): ERROR: Error reading file '%s'."
-#define FSEEK_ERROR "%s(1116): ERROR: Error handling file '%s' (fseek)."
+#define SELECT_ERROR "%s(1114): ERROR: Error during select()-call due to [(%d)-(%s)]."
+#define FREAD_ERROR "%s(1115): ERROR: Could not read from file '%s' due to [(%d)-(%s)]."
+#define FSEEK_ERROR "%s(1116): ERROR: Could not set position in file '%s' due to [(%d)-(%s)]."
#define FILE_ERROR "%s(1117): ERROR: Error handling file '%s' (date)."
-#define SYSTEM_ERROR "%s(1118): ERROR: Internal error. Exiting.."
+#define FSTAT_ERROR "%s(1117): ERROR: Could not retrieve informations of file '%s' due to [(%d)-(%s)]."
#define FGETS_ERROR "%s(1119): ERROR: Invalid line on file '%s': %s."
-#define PIPE_ERROR "%s(1120): ERROR: Pipe error."
+//#define PIPE_ERROR "%s(1120): ERROR: Pipe error."
#define GLOB_ERROR "%s(1121): ERROR: Glob error. Invalid pattern: '%s'."
#define GLOB_NFOUND "%s(1122): ERROR: No file found by pattern: '%s'."
#define UNLINK_ERROR "%s(1123): ERROR: Unable to delete file: '%s'."
-#define RENAME_ERROR "%s(1124): ERROR: Unable to rename file: '%s'."
+#define RENAME_ERROR "%s(1124): ERROR: Could not rename file '%s' to '%s' due to [(%d)-(%s)]."
#define INT_ERROR "%s(1125): ERROR: Internal error (undefined)."
-#define OPEN_ERROR "%s(1126): ERROR: Unable to open file '%s' reason '%s'"
+#define OPEN_ERROR "%s(1126): ERROR: Unable to open file '%s' due to [(%d)-(%s)]."
+#define CHMOD_ERROR "%s(1127): ERROR: Could not chmod object '%s' due to [(%d)-(%s)]."
+#define MKSTEMP_ERROR "%s(1128): ERROR: Could not create temporary file '%s' due to [(%d)-(%s)]."
+#define DELETE_ERROR "%s(1129): ERROR: Could not unlink file '%s' due to [(%d)-(%s)]."
+#define SETGID_ERROR "%s(1130): ERROR: Unable to switch to group '%s' due to [(%d)-(%s)]."
+#define SETUID_ERROR "%s(1131): ERROR: Unable to switch to user '%s' due to [(%d)-(%s)]."
+#define CHROOT_ERROR "%s(1132): ERROR: Unable to chroot to directory '%s' due to [(%d)-(%s)]."
+#define CHDIR_ERROR "%s(1133): ERROR: Unable to chdir to directory '%s' due to [(%d)-(%s)]."
+#define LINK_ERROR "%s(1134): ERROR: Unable to link from '%s' to '%s' due to [(%d)-(%s)]."
+#define CHOWN_ERROR "%s(1135): ERROR: Could not chown object '%s' due to [(%d)-(%s)]."
+/* auditd support */
+#define FTELL_ERROR "%s(1139): ERROR: Could not get position from file '%s' due to [(%d)-(%s)]."
/* COMMON ERRORS */
-#define CONN_ERROR "%s(1201): ERROR: No remote connection configured."
-#define CONFIG_ERROR "%s(1202): ERROR: Configuration error at '%s'. Exiting."
-#define USER_ERROR "%s(1203): ERROR: Invalid user '%s' or group '%s' given."
-#define CONNTYPE_ERROR "%s(1204): ERROR: Invalid connection type: '%s'."
-#define PORT_ERROR "%s(1205): INFO: No port specified. Using default: '%d'."
-#define BIND_ERROR "%s(1206): ERROR: Unable to Bind port '%d'"
-#define SETGID_ERROR "%s(1207): ERROR: Unable to switch to group: '%s'."
-#define SETUID_ERROR "%s(1208): ERROR: Unable to switch to user: '%s'."
-#define CHROOT_ERROR "%s(1209): ERROR: Unable to chroot to directory: '%s'."
-#define QUEUE_ERROR "%s(1210): ERROR: Queue '%s' not accessible: '%s'."
-#define QUEUE_FATAL "%s(1211): ERROR: Unable to access queue: '%s'. Giving up.."
-#define PID_ERROR "%s(1212): ERROR: Unable to create PID file."
-#define DENYIP_WARN "%s(1213): WARN: Message from %s not allowed."
-#define MSG_ERROR "%s(1214): WARN: Problem receiving message from %s."
-#define CLIENT_ERROR "%s(1215): ERROR: No client configured. Exiting."
-#define CONNS_ERROR "%s(1216): ERROR: Unable to connect to '%s'."
-#define UNABLE_CONN "%s(1242): ERROR: Unable to connect to server. Exausted all options."
-#define SEC_ERROR "%s(1217): ERROR: Error creating encrypted message."
-#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 CONN_ERROR "%s(1201): ERROR: No remote connection configured."
+#define CONFIG_ERROR "%s(1202): ERROR: Configuration error at '%s'. Exiting."
+#define USER_ERROR "%s(1203): ERROR: Invalid user '%s' or group '%s' given."
+#define CONNTYPE_ERROR "%s(1204): ERROR: Invalid connection type: '%s'."
+#define PORT_ERROR "%s(1205): INFO: No port specified. Using default: '%d'."
+#define BIND_ERROR "%s(1206): ERROR: Unable to Bind port '%s'"
+#define QUEUE_ERROR "%s(1210): ERROR: Queue '%s' not accessible: '%s'."
+#define QUEUE_FATAL "%s(1211): ERROR: Unable to access queue: '%s'. Giving up.."
+#define PID_ERROR "%s(1212): ERROR: Unable to create PID file."
+#define DENYIP_WARN "%s(1213): WARN: Message from '%s' not allowed."
+#define MSG_ERROR "%s(1214): WARN: Problem receiving message from '%s'."
+#define CLIENT_ERROR "%s(1215): ERROR: No client configured. Exiting."
+#define CONNS_ERROR "%s(1216): ERROR: Unable to connect to '%s'."
+#define UNABLE_CONN "%s(1242): ERROR: Unable to connect to server. Exhausted all options."
+#define SEC_ERROR "%s(1217): ERROR: Error creating encrypted message."
+#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 SIGNAL_RECV "%s(1225): INFO: SIGNAL [(%d)-(%s)] Received. Exit Cleaning..."
#define XML_ERROR "%s(1226): ERROR: Error reading XML file '%s': %s (line %d)."
#define XML_ERROR_VAR "%s(1227): ERROR: Error applying XML variables '%s': %s."
#define XML_NO_ELEM "%s(1228): ERROR: Element '%s' without any option."
#define INVALID_TIME "%s(1240): ERROR: Invalid time format: '%s'."
#define INVALID_DAY "%s(1241): ERROR: Invalid day format: '%s'."
-#define MAILQ_ERROR "%s(1221): ERROR: No Mail queue at %s"
-#define IMSG_ERROR "%s(1222): ERROR: Invalid msg: %s"
-#define SNDMAIL_ERROR "%s(1223): ERROR: Error Sending email to %s (smtp server)"
+#define MAILQ_ERROR "%s(1221): ERROR: No Mail queue at %s"
+#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 */
#define MAX_RK_MSG "%s(1250): ERROR: Maximum number of global files reached: %d"
#define INVALID_RKCL_NAME "%s(1251): ERROR: Invalid rk configuration name: '%s'."
#define INVALID_ROOTDIR "%s(1253): ERROR: Invalid rootdir (unable to retrieve)."
#define INVALID_RKCL_VAR "%s(1254): ERROR: Invalid rk variable: '%s'."
-
/* syscheck */
#define SYSCHECK_NO_OPT "%s(1701): WARN: No option provided for directories: '%s', ignoring it."
#define SK_NO_DIR "%s(1702): INFO: No directory provided for syscheck to monitor."
#define SK_INV_MSG "%s(1755): ERROR: Invalid syscheck message received."
#define SK_DUP "%s(1756): ERROR: Duplicated directory given: '%s'."
#define SK_INV_REG "%s(1757): ERROR: Invalid syscheck registry entry: '%s'."
-#define SK_REG_OPEN "%s(1758): ERROR: Unable to open registry key: '%s'."
-
+#define SK_REG_OPEN "%s(1758): ERROR: Unable to open registry key using 32 bit registry: '%s'."
+#define SK_REG_OPEN64 "%s(1759): ERROR: Unable to open registry key using 64 bit registry: '%s'."
-/* Analysisd */
+/* analysisd */
#define FTS_LIST_ERROR "%s(1260): ERROR: Error initiating FTS list"
#define CRAFTED_IP "%s(1271): WARN: Invalid IP Address '%s'. Possible logging attack."
#define CRAFTED_USER "%s(1272): WARN: Invalid username '%s'. Possible logging attack."
#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 */
+#define INVALID_IGNORE_MD5DB "%s(1277) ERROR: Cannot open MD5 database: '%s'."
+#define MD5_NOT_CHECKED "%s(1278) WARN: File with MD5 '%s' not processed."
+/* logcollector */
+#define SYSTEM_ERROR "%s(1600): ERROR: Internal error. Exiting.."
-/* Remoted */
+/* remoted */
#define NO_REM_CONN "%s(1750): ERROR: No remote connection configured. Exiting."
+#define NO_CLIENT_KEYS "%s(1751): ERROR: File client.keys not found or empty."
-/* 1760 - 1769 -- reserver for maild */
+/* 1760 - 1769 -- reserved for maild */
-
-/* Active response */
+/* Active Response */
#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 " \
#define AR_DEF_AGENT "%s(1304): ERROR: No agent defined for response."
#define AR_NO_TIMEOUT "%s(1305): ERROR: Timeout not allowed for command: '%s'."
-
#define EXECD_INV_MSG "%s(1310): WARN: Invalid active response (execd) message '%s'."
#define EXEC_INV_NAME "%s(1311): ERROR: Invalid command name '%s' provided."
#define EXEC_CMDERROR "%s(1312): ERROR: Error executing '%s': %s"
#define AR_NOAGENT_ERROR "%s(1320): ERROR: Agent '%s' not found."
-
/* List operations */
#define LIST_ERROR "%s(1290): ERROR: Unable to create a new list (calloc)."
#define LIST_ADD_ERROR "%s(1291): ERROR: Error adding nodes to list."
#define LIST_SIZE_ERROR "%s(1292): ERROR: Error setting error size."
#define LIST_FREE_ERROR "%s(1293): ERROR: Error setting data free pointer."
-
/* Log collector messages */
#define MISS_LOG_FORMAT "%s(1901): ERROR: Missing 'log_format' element."
#define MISS_FILE "%s(1902): ERROR: Missing 'location' element."
#define VAR_LOG_MON "%s(1952): INFO: Monitoring variable log file: '%s'."
#define INV_MULTILOG "%s(1953): ERROR: Invalid DJB multilog file: '%s'."
-
-/* Encryption/ auth errors */
+/* Encryption/auth errors */
#define INVALID_KEY "%s(1401): ERROR: Error reading authentication key: '%s'."
#define NO_AUTHFILE "%s(1402): ERROR: Authentication key file '%s' not found."
-#define ENCFORMAT_ERROR "%s(1403): ERROR: Incorrectly formated message from '%s'."
+#define ENCFORMAT_ERROR "%s(1403): ERROR: Incorrectly formatted message from '%s'."
#define ENCKEY_ERROR "%s(1404): ERROR: Authentication error. Wrong key from '%s'."
#define ENCSIZE_ERROR "%s(1405): ERROR: Message size not valid: '%s'."
#define ENCSUM_ERROR "%s(1406): ERROR: Checksum mismatch on message from '%s'."
#define ENCTIME_ERROR "%s(1407): ERROR: Duplicated counter for '%s'."
-#define ENC_IP_ERROR "%s(1408): ERROR: Invalid ID for the source ip: '%s'."
+#define ENC_IP_ERROR "%s(1408): ERROR: Invalid ID %s for the source ip: '%s'."
#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'."
-
/* Mail errors */
#define INVALID_SMTP "%s(1501): ERROR: Invalid SMTP Server: %s"
#define INVALID_MAIL "%s(1502): ERROR: Invalid Email Address: %s"
-
/* Decoders */
#define PPLUGIN_INV "%s(2101): ERROR: Parent decoder name invalid: '%s'."
#define PDUP_INV "%s(2102): ERROR: Duplicated decoder with prematch: '%s'."
#define INV_OFFSET "%s(2120): ERROR: Invalid offset value: '%s'"
#define INV_ATTR "%s(2121): ERROR: Invalid decoder attribute: '%s'"
-
/* os_zlib */
#define COMPRESS_ERR "%s(2201): ERROR: Error compressing string: '%s'."
#define UNCOMPRESS_ERR "%s(2202): ERROR: Error uncompressing string."
-
/* read defines */
#define DEF_NOT_FOUND "%s(2301): ERROR: Definition not found for: '%s.%s'."
#define INV_DEF "%s(2302): ERROR: Invalid definition for %s.%s: '%s'."
-
/* Agent errors */
#define AG_WAIT_SERVER "%s(4101): WARN: Waiting for server reply (not started). Tried: '%s'."
-#define AG_CONNECTED "%s(4102): INFO: Connected to the server (%s:%d)."
+#define AG_CONNECTED "%s(4102): INFO: Connected to server %s, port %s."
#define AG_USINGIP "%s(4103): INFO: Server IP address already set. Trying that before the hostname."
#define AG_INV_HOST "%s(4104): ERROR: Invalid hostname: '%s'."
#define AG_INV_IP "%s(4105): ERROR: No valid server IP found."
#define AG_MAX_ERROR "%s(4110): ERROR: Maximum number of agents '%d' reached."
#define AG_AX_AGENTS "%s(4111): INFO: Maximum number of agents allowed: '%d'."
-
/* Rules reading errors */
#define RL_INV_ROOT "%s(5101): ERROR: Invalid root element: '%s'."
#define RL_INV_RULE "%s(5102): ERROR: Invalid rule element: '%s'."
#define RL_NO_OPT "%s(5106): ERROR: Rule '%d' without any options. "\
"It may lead to false positives. Exiting. "
-
/* Syslog output */
#define XML_INV_CSYSLOG "%s(5301): ERROR: Invalid client-syslog configuration."
-
/* Agentless */
#define XML_INV_AGENTLESS "%s(7101): ERROR: Invalid agentless configuration."
#define XML_INV_MISSFREQ "%s(7102): ERROR: Frequency not set for the periodic option."
#define XML_INV_MISSOPTS "%s(7103): ERROR: Missing agentless options."
-
/* Database messages */
#define DBINIT_ERROR "%s(5201): ERROR: Error initializing database handler."
#define DBCONN_ERROR "%s(5202): ERROR: Error connecting to database '%s'(%s): ERROR: %s."
#define DB_CLOSING "%s(5209): INFO: Closing connection to database."
#define DB_ATTEMPT "%s(5210): INFO: Attempting to reconnect to database."
-
-
/* Verbose messages */
-#define STARTUP_MSG "%s: INFO: Started (pid: %d)."
-#define PRIVSEP_MSG "%s: INFO: Chrooted to directory: %s, using user: %s"
+#define STARTUP_MSG "%s: INFO: Started (pid: %d)."
+#define CHROOT_MSG "%s: INFO: Chrooted to directory: %s"
+#define PRIVSEP_MSG "%s: INFO: Using user: %s"
#define MSG_SOCKET_SIZE "%s: INFO: (unix_domain) Maximum send buffer set to: '%d'."
#define NO_SYSLOG "%s(1501): ERROR: No IP or network allowed in the access list" \
#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 ..."
#define ASINIT "%s: DEBUG: Active response initialized ..."
#define READ_CONFIG "%s: DEBUG: Read configuration ..."
-
/* Wait operations */
#define WAITING_MSG "%s: WARN: Process locked. Waiting for permission..."
#define WAITING_FREE "%s: INFO: Lock free. Continuing..."
#define SERVER_UNAV "%s: WARN: Server unavailable. Setting lock."
#define SERVER_UP "%s: INFO: Server responded. Releasing lock."
-/* Ossec alert messages */
+/* OSSEC alert messages */
#define OS_AD_STARTED "ossec: Ossec started."
#define OS_AG_STARTED "ossec: Agent started: '%s->%s'."
#define OS_AG_DISCON "ossec: Agent disconnected: '%s'."
-
#endif /* _ERROR_MESSAGES__H */
-