Fixed bug #0000003
[public/netxms.git] / sql / policy.in
CommitLineData
6eec168c
VK
1/*
2** Default event processing policy
3**
4** ex: syntax=sql
5*/
6
7INSERT INTO event_policy (rule_id,flags,comments,alarm_message,alarm_severity,alarm_key,alarm_ack_key)
8 VALUES (0,7944,'Show alarm when node status isn#27t NORMAL',
9 '%m',5,'NODE_STATUS_%i','NODE_STATUS_%i');
10INSERT INTO event_policy (rule_id,flags,comments,alarm_message,alarm_severity,alarm_key,alarm_ack_key)
11 VALUES (1,7944,'Acknowlege node status alarms when node status changes to NORMAL',
89d48d8c 12 '%m',6,'#00','NODE_STATUS_%i');
b688074e
VK
13INSERT INTO event_policy (rule_id,flags,comments,alarm_message,alarm_severity,alarm_key,alarm_ack_key)
14 VALUES (2,7944,'Generate alarm when incorrect network mask detected on interface',
15 '%m',2,'BAD_NETMASK_%i_%2','BAD_NETMASK_%i_%2');
6eec168c 16
c19b2871
VK
17INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_WARNING);
18INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_MINOR);
19INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_MAJOR);
20INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_CRITICAL);
21INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_UNKNOWN);
22INSERT INTO policy_event_list (rule_id,event_code) VALUES (0,EVENT_NODE_UNMANAGED);
23INSERT INTO policy_event_list (rule_id,event_code) VALUES (1,EVENT_NODE_NORMAL);
24INSERT INTO policy_event_list (rule_id,event_code) VALUES (2,EVENT_INCORRECT_NETMASK);