Commit | Line | Data |
---|---|---|
4997be5c VK |
1 | /* |
2 | ** NetXMS - Network Management System | |
3 | ** Copyright (C) 2003 Victor Kirhenshtein | |
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 | ** | |
19 | ** $module: nxevent.h | |
20 | ** | |
21 | **/ | |
22 | ||
23 | #ifndef _nxevent_h_ | |
24 | #define _nxevent_h_ | |
25 | ||
26 | // | |
5ebea5e0 VK |
27 | // Event flags |
28 | // | |
29 | ||
30 | #define EF_LOG 0x0001 | |
31 | ||
32 | ||
33 | // | |
4997be5c VK |
34 | // Event severity codes |
35 | // | |
36 | ||
37 | #define EVENT_SEVERITY_INFO 0 | |
38 | #define EVENT_SEVERITY_MINOR 1 | |
39 | #define EVENT_SEVERITY_WARNING 2 | |
40 | #define EVENT_SEVERITY_MAJOR 3 | |
41 | #define EVENT_SEVERITY_CRITICAL 4 | |
42 | ||
43 | ||
44 | // | |
45 | // System-defined events | |
46 | // | |
47 | ||
48 | #define EVENT_NODE_ADDED 1 | |
49 | #define EVENT_SUBNET_ADDED 2 | |
50 | #define EVENT_INTERFACE_ADDED 3 | |
51 | #define EVENT_INTERFACE_UP 4 | |
52 | #define EVENT_INTERFACE_DOWN 5 | |
53 | #define EVENT_NODE_NORMAL 6 | |
54 | #define EVENT_NODE_MINOR 7 | |
55 | #define EVENT_NODE_WARNING 8 | |
56 | #define EVENT_NODE_MAJOR 9 | |
57 | #define EVENT_NODE_CRITICAL 10 | |
58 | #define EVENT_NODE_UNKNOWN 11 | |
59 | #define EVENT_NODE_UNMANAGED 12 | |
60 | #define EVENT_NODE_FLAGS_CHANGED 13 | |
61 | #define EVENT_SNMP_FAIL 14 | |
62 | #define EVENT_AGENT_FAIL 15 | |
63 | #define EVENT_INTERFACE_DELETED 16 | |
64 | #define EVENT_THREAD_HANGS 1001 | |
65 | ||
66 | #endif |