Minor bugfixes
[public/netxms.git] / sql / events.in
CommitLineData
6c9e7d36
VK
1/*
2** System-defined events
3*/
c1142e46 4
3c468b80 5INSERT INTO events (id,name,severity,flags,message,description) VALUES
c1142e46 6 (
3c468b80
VK
7 EVENT_NODE_ADDED, 'NX_NODE_ADDED',
8 EVENT_SEVERITY_INFO, 1,
c1142e46 9 'Node added',
77f69c9d
VK
10 'Generated when new node object added to the database.\n' CONCAT
11 'Parameters:\n' CONCAT
c1142e46
VK
12 ' No message-specific parameters'
13 );
3c468b80 14INSERT INTO events (id,name,severity,flags,message,description) VALUES
c1142e46 15 (
3c468b80
VK
16 EVENT_SUBNET_ADDED, 'NX_SUBNET_ADDED',
17 EVENT_SEVERITY_INFO, 0,
c1142e46 18 'Subnet added',
77f69c9d
VK
19 'Generated when new subnet object added to the database.\n' CONCAT
20 'Parameters:\n' CONCAT
c1142e46
VK
21 ' No message-specific parameters'
22 );
3c468b80 23INSERT INTO events (id,name,severity,flags,message,description) VALUES
c1142e46 24 (
3c468b80
VK
25 EVENT_INTERFACE_ADDED, 'NX_IF_ADDED',
26 EVENT_SEVERITY_INFO, 1,
6a402fbc 27 'Interface "%2" added (IP Addr: %3/%4, IfIndex: %5)',
77f69c9d
VK
28 'Generated when new interface object added to the database.\n' CONCAT
29 'Please note that source of event is node, not an interface itself.\n' CONCAT
30 'Parameters:\n' CONCAT
31 ' 1) Interface object ID\n' CONCAT
32 ' 2) Interface name\n' CONCAT
33 ' 3) Interface IP address\n' CONCAT
34 ' 4) Interface netmask\n' CONCAT
c1142e46
VK
35 ' 5) Interface index'
36 );
3c468b80 37INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 38 (
3c468b80
VK
39 EVENT_INTERFACE_UP, 'NX_IF_UP',
40 EVENT_SEVERITY_INFO, 1,
6a402fbc 41 'Interface "%2" changed state to UP (IP Addr: %3/%4, IfIndex: %5)',
77f69c9d
VK
42 'Generated when interface goes up.\n' CONCAT
43 'Please note that source of event is node, not an interface itself.\n' CONCAT
44 'Parameters:\n' CONCAT
45 ' 1) Interface object ID\n' CONCAT
46 ' 2) Interface name\n' CONCAT
47 ' 3) Interface IP address\n' CONCAT
48 ' 4) Interface netmask\n' CONCAT
071a9d0a
VK
49 ' 5) Interface index'
50 );
3c468b80 51INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 52 (
3c468b80
VK
53 EVENT_INTERFACE_DOWN, 'NX_IF_DOWN',
54 EVENT_SEVERITY_WARNING, 1,
6a402fbc 55 'Interface "%2" changed state to DOWN (IP Addr: %3/%4, IfIndex: %5)',
77f69c9d
VK
56 'Generated when interface goes down.\n' CONCAT
57 'Please note that source of event is node, not an interface itself.\n' CONCAT
58 'Parameters:\n' CONCAT
59 ' 1) Interface object ID\n' CONCAT
60 ' 2) Interface name\n' CONCAT
61 ' 3) Interface IP address\n' CONCAT
62 ' 4) Interface netmask\n' CONCAT
071a9d0a
VK
63 ' 5) Interface index'
64 );
3c468b80 65INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 66 (
3c468b80
VK
67 EVENT_NODE_NORMAL, 'NX_NODE_NORMAL',
68 EVENT_SEVERITY_INFO, 1,
071a9d0a 69 'Node status changed to NORMAL',
77f69c9d
VK
70 'Generated when node status changed to normal.\n' CONCAT
71 'Parameters:\n' CONCAT
071a9d0a
VK
72 ' 1) Previous node status'
73 );
3c468b80 74INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 75 (
3c468b80
VK
76 EVENT_NODE_MINOR, 'NX_NODE_MINOR',
77 EVENT_SEVERITY_MINOR, 1,
8bf20f8c 78 'Node status changed to MINOR',
77f69c9d
VK
79 'Generated when node status changed to "Minor Problem" (informational).\n' CONCAT
80 'Parameters:\n' CONCAT
071a9d0a
VK
81 ' 1) Previous node status'
82 );
3c468b80 83INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 84 (
3c468b80
VK
85 EVENT_NODE_WARNING, 'NX_NODE_WARNING',
86 EVENT_SEVERITY_WARNING, 1,
071a9d0a 87 'Node status changed to WARNING',
77f69c9d
VK
88 'Generated when node status changed to "Warning".\n' CONCAT
89 'Parameters:\n' CONCAT
071a9d0a
VK
90 ' 1) Previous node status'
91 );
3c468b80 92INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 93 (
3c468b80
VK
94 EVENT_NODE_MAJOR, 'NX_NODE_MAJOR',
95 EVENT_SEVERITY_MAJOR, 1,
8bf20f8c 96 'Node status changed to MAJOR',
77f69c9d
VK
97 'Generated when node status changed to "Major Problem".\n' CONCAT
98 'Parameters:\n' CONCAT
071a9d0a
VK
99 ' 1) Previous node status'
100 );
3c468b80 101INSERT INTO events (id,name,severity,flags,message,description) VALUES
c1142e46 102 (
3c468b80
VK
103 EVENT_NODE_CRITICAL, 'NX_NODE_CRITICAL',
104 EVENT_SEVERITY_CRITICAL, 1,
071a9d0a 105 'Node status changed to CRITICAL',
77f69c9d
VK
106 'Generated when node status changed to critical.\n' CONCAT
107 'Parameters:\n' CONCAT
071a9d0a
VK
108 ' 1) Previous node status'
109 );
3c468b80 110INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 111 (
3c468b80
VK
112 EVENT_NODE_UNKNOWN, 'NX_NODE_UNKNOWN',
113 EVENT_SEVERITY_INFO, 1,
071a9d0a 114 'Node status changed to UNKNOWN',
77f69c9d
VK
115 'Generated when node status changed to unknown.\n' CONCAT
116 'Parameters:\n' CONCAT
071a9d0a
VK
117 ' 1) Previous node status'
118 );
3c468b80 119INSERT INTO events (id,name,severity,flags,message,description) VALUES
071a9d0a 120 (
3c468b80
VK
121 EVENT_NODE_UNMANAGED, 'NX_NODE_UNMANAGED',
122 EVENT_SEVERITY_INFO, 1,
071a9d0a 123 'Node status changed to UNMANAGED',
77f69c9d
VK
124 'Generated when node status changed to unmanaged.\n' CONCAT
125 'Parameters:\n' CONCAT
071a9d0a 126 ' 1) Previous node status'
c1142e46 127 );
3c468b80 128INSERT INTO events (id,name,severity,flags,message,description) VALUES
ba1ececc 129 (
3c468b80
VK
130 EVENT_NODE_FLAGS_CHANGED, 'NX_NODE_CAP_CHANGED',
131 EVENT_SEVERITY_INFO, 0,
ba1ececc 132 'Node capabilities changed (Old: %1; New: %2)',
77f69c9d
VK
133 'Generated when node capabilities changed.\n' CONCAT
134 'Parameters:\n' CONCAT
135 ' 1) Old capabilities' CONCAT
ba1ececc
VK
136 ' 2) New capabilities'
137 );
3c468b80 138INSERT INTO events (id,name,severity,flags,message,description) VALUES
ba1ececc 139 (
3c468b80
VK
140 EVENT_SNMP_FAIL, 'NX_SNMP_UNREACHEABLE',
141 EVENT_SEVERITY_INFO, 0,
ba1ececc 142 'SNMP agent is not responding',
77f69c9d
VK
143 'Generated when node''s SNMP agent is not responding.\n' CONCAT
144 'Parameters:\n' CONCAT
ba1ececc
VK
145 ' No message-specific parameters'
146 );
3c468b80 147INSERT INTO events (id,name,severity,flags,message,description) VALUES
ba1ececc 148 (
3c468b80
VK
149 EVENT_AGENT_FAIL, 'NX_AGENT_UNREACHEABLE',
150 EVENT_SEVERITY_INFO, 0,
ba1ececc 151 'Native agent is not responding',
77f69c9d
VK
152 'Generated when node''s native agent is not responding.\n' CONCAT
153 'Parameters:\n' CONCAT
ba1ececc
VK
154 ' No message-specific parameters'
155 );
3c468b80 156INSERT INTO events (id,name,severity,flags,message,description) VALUES
dfd34016 157 (
3c468b80
VK
158 EVENT_INTERFACE_DELETED, 'NX_IF_DELETED',
159 EVENT_SEVERITY_INFO, 1,
6a402fbc 160 'Interface "%2" deleted (IP Addr: %3/%4, IfIndex: %1)',
3c468b80 161 'Generated when interface object deleted from the database.\n' CONCAT
77f69c9d
VK
162 'Please note that source of event is node, not an interface itself.\n' CONCAT
163 'Parameters:\n' CONCAT
164 ' 1) Interface index\n' CONCAT
165 ' 2) Interface name\n' CONCAT
166 ' 3) Interface IP address\n' CONCAT
ac13a9dd 167 ' 4) Interface netmask'
dfd34016 168 );
3c468b80 169INSERT INTO events (id,name,severity,flags,message,description) VALUES
6a402fbc 170 (
3c468b80
VK
171 EVENT_THREAD_HANGS, 'NX_SYS_THREAD_HANG',
172 EVENT_SEVERITY_CRITICAL, 1,
6a402fbc 173 'Thread "%1" is not responding',
77f69c9d
VK
174 'Generated when one of the system threads hangs or stops unexpectedly.\n' CONCAT
175 'Parameters:\n' CONCAT
6a402fbc
VK
176 ' 1) Thread name'
177 );