summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 12:37:47 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 12:37:47 +0000
commit8c5f2e7ee625064dac24f0100fc3614047831558 (patch)
tree0d7cc1da1a8bb7b80fc1bdc009e0d1268c9b18c8 /include
parent9263d30eec5cc7a206439fc54a9d5af88e63e587 (diff)
downloadzabbix-8c5f2e7ee625064dac24f0100fc3614047831558.tar.gz
zabbix-8c5f2e7ee625064dac24f0100fc3614047831558.tar.xz
zabbix-8c5f2e7ee625064dac24f0100fc3614047831558.zip
- [DEV-127] new status for alerts.status - FAILED (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@5453 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
-rw-r--r--include/db.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index c6e5dd17..a41d0fe5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -326,7 +326,8 @@ typedef enum
typedef enum
{
ALERT_STATUS_NOT_SENT = 0,
- ALERT_STATUS_SENT
+ ALERT_STATUS_SENT,
+ ALERT_STATUS_FAILED
} zbx_alert_status_t;
/* Item statuses */
@@ -417,6 +418,9 @@ typedef enum
#define ACTION_STATUS_ACTIVE 0
#define ACTION_STATUS_DISABLED 1
+/* Max number of retries for alerts */
+#define ACTION_MAX_RETRIES 3
+
/* Operation types */
#define OPERATION_TYPE_MESSAGE 0
#define OPERATION_TYPE_COMMAND 1
diff --git a/include/db.h b/include/db.h
index e9a56eaf..500b1210 100644
--- a/include/db.h
+++ b/include/db.h
@@ -407,8 +407,8 @@ DB_ALERT
char *subject;
char *message;
zbx_alert_status_t status;
-/* int retries;
- int delay;*/
+ int retries;
+/* int delay;*/
};
DB_HOUSEKEEPER