diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 6 | ||||
-rw-r--r-- | include/db.h | 4 |
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 |