change log updated
[public/netxms.git] / include / nxevent.h
CommitLineData
b30bb1bc 1/*
4997be5c 2** NetXMS - Network Management System
1d7917d5 3** Copyright (C) 2003-2017 Victor Kirhenshtein
4997be5c
VK
4**
5** This program is free software; you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation; either version 2 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program; if not, write to the Free Software
17** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18**
8ab158c4 19** File: nxevent.h
4997be5c
VK
20**
21**/
22
23#ifndef _nxevent_h_
24#define _nxevent_h_
25
26//
5ebea5e0
VK
27// Event flags
28//
29
bc97ab99
VK
30#define EF_LOG 0x00000001
31
32
33//
34// Event flags used by client library (has no meaning for server)
35//
36
37#define EF_MODIFIED 0x01000000
38#define EF_DELETED 0x02000000
5ebea5e0 39
d9152256
VK
40#define SERVER_FLAGS_BITS 0x00FFFFFF
41
5ebea5e0
VK
42
43//
4997be5c
VK
44// Event severity codes
45//
46
333ece94 47#define EVENT_SEVERITY_NORMAL 0
9eb7685c
VK
48#define EVENT_SEVERITY_WARNING 1
49#define EVENT_SEVERITY_MINOR 2
4997be5c
VK
50#define EVENT_SEVERITY_MAJOR 3
51#define EVENT_SEVERITY_CRITICAL 4
52
53
54//
55// System-defined events
56//
57
7b30e5ae
VK
58#define EVENT_NODE_ADDED 1
59#define EVENT_SUBNET_ADDED 2
60#define EVENT_INTERFACE_ADDED 3
61#define EVENT_INTERFACE_UP 4
62#define EVENT_INTERFACE_DOWN 5
63#define EVENT_NODE_NORMAL 6
64#define EVENT_NODE_WARNING 7
65#define EVENT_NODE_MINOR 8
66#define EVENT_NODE_MAJOR 9
67#define EVENT_NODE_CRITICAL 10
68#define EVENT_NODE_UNKNOWN 11
69#define EVENT_NODE_UNMANAGED 12
a0cc56b3 70#define EVENT_NODE_CAPABILITIES_CHANGED 13
7b30e5ae
VK
71#define EVENT_SNMP_FAIL 14
72#define EVENT_AGENT_FAIL 15
73#define EVENT_INTERFACE_DELETED 16
74#define EVENT_THRESHOLD_REACHED 17
75#define EVENT_THRESHOLD_REARMED 18
76#define EVENT_SUBNET_DELETED 19
77#define EVENT_THREAD_HANGS 20
78#define EVENT_THREAD_RUNNING 21
79#define EVENT_SMTP_FAILURE 22
80#define EVENT_MAC_ADDR_CHANGED 23
81#define EVENT_INCORRECT_NETMASK 24
82#define EVENT_SERVICE_DOWN 25
83#define EVENT_SERVICE_UP 26
84#define EVENT_SERVICE_UNKNOWN 27
85#define EVENT_NODE_DOWN 28
86#define EVENT_NODE_UP 29
87#define EVENT_SMS_FAILURE 30
88#define EVENT_SNMP_OK 31
89#define EVENT_AGENT_OK 32
90#define EVENT_SCRIPT_ERROR 33
91#define EVENT_CONDITION_ACTIVATED 34
92#define EVENT_CONDITION_DEACTIVATED 35
93#define EVENT_DB_CONNECTION_LOST 36
94#define EVENT_DB_CONNECTION_RESTORED 37
95#define EVENT_CLUSTER_RESOURCE_MOVED 38
96#define EVENT_CLUSTER_RESOURCE_DOWN 39
97#define EVENT_CLUSTER_RESOURCE_UP 40
98#define EVENT_CLUSTER_DOWN 41
99#define EVENT_CLUSTER_UP 42
100#define EVENT_ALARM_TIMEOUT 43
101#define EVENT_LOG_RECORD_MATCHED 44
102#define EVENT_INTERFACE_UNKNOWN 45
103#define EVENT_INTERFACE_DISABLED 46
104#define EVENT_INTERFACE_TESTING 47
105#define EVENT_EVENT_STORM_DETECTED 48
106#define EVENT_EVENT_STORM_ENDED 49
107#define EVENT_NETWORK_CONNECTION_LOST 50
108#define EVENT_NETWORK_CONNECTION_RESTORED 51
109#define EVENT_DB_QUERY_FAILED 52
110#define EVENT_DCI_UNSUPPORTED 53
111#define EVENT_DCI_DISABLED 54
112#define EVENT_DCI_ACTIVE 55
113#define EVENT_IP_ADDRESS_CHANGED 56
114#define EVENT_8021X_PAE_STATE_CHANGED 57
115#define EVENT_8021X_BACKEND_STATE_CHANGED 58
116#define EVENT_8021X_PAE_FORCE_UNAUTH 59
117#define EVENT_8021X_AUTH_FAILED 60
118#define EVENT_8021X_AUTH_TIMEOUT 61
119#define EVENT_INTERFACE_UNEXPECTED_UP 62
120#define EVENT_INTERFACE_EXPECTED_DOWN 63
121#define EVENT_CONTAINER_AUTOBIND 64
122#define EVENT_CONTAINER_AUTOUNBIND 65
123#define EVENT_TEMPLATE_AUTOAPPLY 66
124#define EVENT_TEMPLATE_AUTOREMOVE 67
125#define EVENT_NODE_UNREACHABLE 68
126#define EVENT_TABLE_THRESHOLD_ACTIVATED 69
127#define EVENT_TABLE_THRESHOLD_DEACTIVATED 70
128#define EVENT_IF_PEER_CHANGED 71
129#define EVENT_AP_ADOPTED 72
130#define EVENT_AP_UNADOPTED 73
131#define EVENT_AP_DOWN 74
132#define EVENT_IF_MASK_CHANGED 75
133#define EVENT_IF_IPADDR_ADDED 76
134#define EVENT_IF_IPADDR_DELETED 77
135#define EVENT_MAINTENANCE_MODE_ENTERED 78
136#define EVENT_MAINTENANCE_MODE_LEFT 79
137#define EVENT_LDAP_SYNC_ERROR 80
138#define EVENT_AGENT_LOG_PROBLEM 81
139#define EVENT_AGENT_LOCAL_DATABASE_PROBLEM 82
de1be1b5
VK
140#define EVENT_IF_EXPECTED_STATE_UP 83
141#define EVENT_IF_EXPECTED_STATE_DOWN 84
142#define EVENT_IF_EXPECTED_STATE_IGNORE 85
f4b2ebd3 143#define EVENT_ROUTING_LOOP_DETECTED 86
1d7917d5
VK
144#define EVENT_PACKAGE_INSTALLED 87
145#define EVENT_PACKAGE_UPDATED 88
146#define EVENT_PACKAGE_REMOVED 89
7b30e5ae
VK
147
148#define EVENT_SNMP_UNMATCHED_TRAP 500
149#define EVENT_SNMP_COLD_START 501
150#define EVENT_SNMP_WARM_START 502
151#define EVENT_SNMP_LINK_DOWN 503
152#define EVENT_SNMP_LINK_UP 504
153#define EVENT_SNMP_AUTH_FAILURE 505
154#define EVENT_SNMP_EGP_NL 506
155
156#define FIRST_USER_EVENT_ID 100000
f1147c5d 157
4997be5c 158#endif