forked from AsuraTeam/monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdb.sql
1283 lines (1125 loc) · 143 KB
/
cmdb.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
set global max_allowed_packet=1000000000;
SET character_set_client = utf8;
SET character_set_connection = utf8;
SET character_set_database = utf8;
SET character_set_results = utf8;
SET character_set_server = utf8;
set names utf8;
create database cmdb DEFAULT CHARACTER SET utf8 ;
use cmdb;
--
-- Table structure for table `authority_log`
--
DROP TABLE IF EXISTS `authority_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `authority_log` (
`log_id` int(11) NOT NULL AUTO_INCREMENT,
`ip` varchar(32) DEFAULT NULL,
`user` varchar(32) DEFAULT NULL,
`time` varchar(32) DEFAULT NULL,
`info` text,
PRIMARY KEY (`log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authority_log`
--
LOCK TABLES `authority_log` WRITE;
/*!40000 ALTER TABLE `authority_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `authority_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `authority_pages`
--
DROP TABLE IF EXISTS `authority_pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `authority_pages` (
`pages_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`pages_url` varchar(200) DEFAULT NULL COMMENT '访问页面URL',
`pages_name` varchar(100) DEFAULT NULL COMMENT '菜单名字',
`last_modify_user` varchar(4000) DEFAULT NULL COMMENT '最近修改用户',
`create_time` bigint(20) DEFAULT NULL COMMENT '创建时间',
`last_modify_time` bigint(20) DEFAULT NULL COMMENT '最后修改时间',
`is_valid` int(11) DEFAULT NULL COMMENT '是否有效',
`model_name` varchar(100) DEFAULT NULL COMMENT '所属模块',
PRIMARY KEY (`pages_id`),
UNIQUE KEY `uidx_pages_url` (`pages_url`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authority_pages`
--
LOCK TABLES `authority_pages` WRITE;
/*!40000 ALTER TABLE `authority_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `authority_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `authority_permission`
--
DROP TABLE IF EXISTS `authority_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `authority_permission` (
`permission_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`pages_id` int(11) DEFAULT NULL COMMENT '页面id参考pages',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改时间',
`last_modify_time` varchar(32) DEFAULT NULL,
`is_valid` int(11) DEFAULT NULL COMMENT '是否有效',
`user` varchar(50) DEFAULT NULL COMMENT '用户名',
PRIMARY KEY (`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authority_permission`
--
LOCK TABLES `authority_permission` WRITE;
/*!40000 ALTER TABLE `authority_permission` DISABLE KEYS */;
/*!40000 ALTER TABLE `authority_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `authority_user`
--
DROP TABLE IF EXISTS `authority_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `authority_user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(32) DEFAULT NULL COMMENT '用户名',
`password` varchar(32) DEFAULT NULL COMMENT '密码',
`last_login` varchar(32) DEFAULT NULL COMMENT '最近登录时间',
`login_faild_count` int(11) DEFAULT NULL COMMENT '登录失败次数',
PRIMARY KEY (`user_id`),
UNIQUE KEY `uidx_auth_user_username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authority_user`
--
LOCK TABLES `authority_user` WRITE;
/*!40000 ALTER TABLE `authority_user` DISABLE KEYS */;
INSERT INTO `authority_user` VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',NULL,NULL);
/*!40000 ALTER TABLE `authority_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_quartz`
--
DROP TABLE IF EXISTS `cmdb_quartz`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_quartz` (
`quartz_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`quartz_name` varchar(32) DEFAULT NULL COMMENT '任务名称',
`quartz_url` varchar(300) DEFAULT NULL COMMENT '任务接口地址',
`quartz_time` int(11) DEFAULT NULL COMMENT '任务执行时间, 秒',
`description` varchar(200) DEFAULT NULL COMMENT '描述信息',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
PRIMARY KEY (`quartz_id`),
UNIQUE KEY `uidx_cmdb_quartz_quartz_name` (`quartz_name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_quartz`
--
LOCK TABLES `cmdb_quartz` WRITE;
/*!40000 ALTER TABLE `cmdb_quartz` DISABLE KEYS */;
INSERT INTO `cmdb_quartz` VALUES (13,'ping','http://v.asura.com/resource/configure/server/checkActive',300,'资源服务器存活检查','2016-08-10 12:54:09',''),(15,'pingAddress','http://v.asura.com/resource/configure/network/ping',300,'ping网段中的地址','2016-08-16 01:21:26','');
/*!40000 ALTER TABLE `cmdb_quartz` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_cabinet`
--
DROP TABLE IF EXISTS `cmdb_resource_cabinet`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_cabinet` (
`cabinet_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '机柜编号',
`cabinet_name` varchar(200) DEFAULT NULL COMMENT '机柜名称',
`floor_id` int(11) DEFAULT NULL,
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`create_time` bigint(20) DEFAULT NULL,
`number` int(11) DEFAULT NULL COMMENT '最多存放设备',
`cabinet_scope` varchar(100) DEFAULT NULL COMMENT '机柜所属区域',
PRIMARY KEY (`cabinet_id`),
UNIQUE KEY `uidx_cabinet_name` (`cabinet_name`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_cabinet`
--
LOCK TABLES `cmdb_resource_cabinet` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_cabinet` DISABLE KEYS */;
INSERT INTO `cmdb_resource_cabinet` VALUES (1,NULL,NULL,'2016-07-31 02:12:11',NULL,NULL,NULL,12,NULL),(3,'I01',3,'2016-07-31 02:59:49','','',1469764453,12,'I排');
/*!40000 ALTER TABLE `cmdb_resource_cabinet` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_entname`
--
DROP TABLE IF EXISTS `cmdb_resource_entname`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_entname` (
`ent_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '环境id',
`ent_name` varchar(132) DEFAULT NULL COMMENT '环境名称',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
PRIMARY KEY (`ent_id`),
UNIQUE KEY `uid_centname` (`ent_name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_entname`
--
LOCK TABLES `cmdb_resource_entname` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_entname` DISABLE KEYS */;
INSERT INTO `cmdb_resource_entname` VALUES (2,NULL,'2016-07-29 02:01:26',NULL,NULL,NULL),(3,'生产环境','2016-07-29 06:10:00','','',NULL),(5,'测试环境','2016-07-29 06:06:48','','',1469772409),(7,'开发环境','2016-07-29 06:06:52','','',1469772413),(9,'准生产环境','2016-07-29 06:06:57','','',1469772418);
/*!40000 ALTER TABLE `cmdb_resource_entname` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_floor`
--
DROP TABLE IF EXISTS `cmdb_resource_floor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_floor` (
`floor_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '机房编号',
`floor_name` varchar(1000) DEFAULT NULL COMMENT '机房楼层名称',
`floor_address` varchar(1000) DEFAULT NULL COMMENT '机房楼层地址',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`create_time` bigint(20) DEFAULT NULL,
PRIMARY KEY (`floor_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_floor`
--
LOCK TABLES `cmdb_resource_floor` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_floor` DISABLE KEYS */;
INSERT INTO `cmdb_resource_floor` VALUES (3,'酒仙桥机房4层','酒仙桥','2016-07-29 03:52:47','','',NULL);
/*!40000 ALTER TABLE `cmdb_resource_floor` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_groups`
--
DROP TABLE IF EXISTS `cmdb_resource_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_groups` (
`groups_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '业务组ID',
`groups_name` varchar(250) DEFAULT NULL,
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
PRIMARY KEY (`groups_id`),
UNIQUE KEY `uidx_groups_groups_name` (`groups_name`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_groups`
--
LOCK TABLES `cmdb_resource_groups` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `cmdb_resource_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_inventory`
--
DROP TABLE IF EXISTS `cmdb_resource_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_inventory` (
`inventory_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id,主键',
`title` varchar(100) DEFAULT NULL COMMENT '中心标志',
`groups_id` varchar(200) DEFAULT NULL COMMENT '中心拥有的组id',
`last_modify_time` varchar(32) DEFAULT NULL COMMENT '最近想修改时间',
`inventory_number` int(11) DEFAULT NULL COMMENT '库存数量',
`inventory_totle` int(11) DEFAULT NULL COMMENT '库存总量',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`update_time` varchar(32) DEFAULT NULL COMMENT '数据更新时间',
`inventory_used` int(11) DEFAULT NULL COMMENT '已使用数量',
PRIMARY KEY (`inventory_id`),
UNIQUE KEY `uidx_inventory_title` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_inventory`
--
LOCK TABLES `cmdb_resource_inventory` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `cmdb_resource_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_network`
--
DROP TABLE IF EXISTS `cmdb_resource_network`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_network` (
`network_id` int(11) NOT NULL AUTO_INCREMENT,
`network_prefix` varchar(100) DEFAULT NULL COMMENT '前缀',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
`network_suffix` int(11) DEFAULT NULL COMMENT '后缀',
`description` varchar(100) DEFAULT NULL COMMENT '描述信息',
`vlan` varchar(10) comment "网络所在vlan",
PRIMARY KEY (`network_id`),
UNIQUE KEY `idx_network_prefix` (`network_prefix`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_network`
--
LOCK TABLES `cmdb_resource_network` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_network` DISABLE KEYS */;
INSERT INTO `cmdb_resource_network` VALUES (3,'10.16.25','2016-08-15 13:53:47','','',NULL,24,'25段生产环境');
/*!40000 ALTER TABLE `cmdb_resource_network` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_network_address`
--
DROP TABLE IF EXISTS `cmdb_resource_network_address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_network_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip_prefix_id` int(11) DEFAULT NULL COMMENT '参考网络的id',
`ip_subffix` int(11) DEFAULT NULL COMMENT 'ip地址后缀',
`status` int(11) DEFAULT NULL COMMENT '使用状态',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_ip_prefix_id_ip_subffix` (`ip_prefix_id`,`ip_subffix`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_network_address`
--
LOCK TABLES `cmdb_resource_network_address` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_network_address` DISABLE KEYS */;
INSERT INTO `cmdb_resource_network_address` VALUES (1,13,11,1,'2017-01-30 03:08:57'),(3,11,53,0,'2017-01-30 03:09:16'),(5,13,179,0,'2017-01-30 03:09:21'),(7,15,219,0,'2017-01-30 03:10:35'),(9,9,162,0,'2017-01-30 03:10:24'),(11,13,153,1,'2017-01-30 03:09:16'),(13,15,74,0,'2017-01-30 03:09:37'),(15,15,218,0,'2017-01-30 03:10:34'),(17,9,47,0,'2017-01-30 03:09:17'),(19,7,28,1,'2017-01-30 03:08:15'),(21,13,228,0,'2017-01-30 03:10:12'),(23,9,38,0,'2017-01-30 03:09:08'),(25,3,102,1,'2017-01-30 03:08:04'),(27,13,218,0,'2017-01-30 03:09:57'),(29,5,224,1,'2017-01-30 03:08:37'),(31,5,241,1,'2017-01-30 03:08:37'),(33,7,117,1,'2017-01-30 03:08:57'),(35,15,239,0,'2017-01-30 03:10:55'),(37,11,71,1,'2017-01-30 03:09:23'),(39,15,145,1,'2017-01-30 03:09:49'),(41,15,150,1,'2017-01-30 03:09:49'),(43,5,104,1,'2017-01-30 03:08:25'),(45,7,33,1,'2017-01-30 03:08:15'),(47,5,38,1,'2017-01-30 03:08:16'),(49,13,196,0,'2017-01-30 03:09:37'),(51,11,47,0,'2017-01-30 03:09:13'),(53,3,179,0,'2017-01-30 03:08:39'),(55,15,186,0,'2017-01-30 03:09:57'),(57,11,150,0,'2017-01-30 03:10:12'),(59,11,119,0,'2017-01-30 03:09:45'),(61,9,214,0,'2017-01-30 03:11:18'),(63,13,152,1,'2017-01-30 03:09:16'),(65,9,121,1,'2017-01-30 03:09:56'),(67,11,43,0,'2017-01-30 03:09:11'),(69,11,195,0,'2017-01-30 03:10:54'),(71,11,94,1,'2017-01-30 03:09:33'),(73,5,172,1,'2017-01-30 03:08:33'),(75,11,107,0,'2017-01-30 03:09:42'),(77,15,207,0,'2017-01-30 03:10:22'),(79,15,137,1,'2017-01-30 03:09:49'),(81,15,104,1,'2017-01-30 03:09:48'),(83,3,147,1,'2017-01-30 03:08:20'),(85,15,50,1,'2017-01-30 03:09:12'),(87,7,106,1,'2017-01-30 03:08:57'),(89,7,250,0,'2017-01-30 03:09:16'),(91,13,223,0,'2017-01-30 03:10:03'),(93,9,241,0,'2017-01-30 03:11:46'),(95,9,68,0,'2017-01-30 03:09:40'),(97,13,165,1,'2017-01-30 03:09:17'),(99,9,212,0,'2017-01-30 03:11:16');
/*!40000 ALTER TABLE `cmdb_resource_network_address` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_os_type`
--
DROP TABLE IF EXISTS `cmdb_resource_os_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_os_type` (
`os_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '操作系统id',
`os_name` varchar(132) DEFAULT NULL COMMENT '操作系统名称',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
`image_path` varchar(200) DEFAULT NULL COMMENT '图片路径',
PRIMARY KEY (`os_id`),
UNIQUE KEY `uidx_os_name` (`os_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_os_type`
--
LOCK TABLES `cmdb_resource_os_type` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_os_type` DISABLE KEYS */;
INSERT INTO `cmdb_resource_os_type` VALUES (1,'windows_2012','2016-07-29 08:14:29','','',NULL,''),(3,'centos','2016-07-29 08:13:26','','',1469780008,''),(5,'centos6.5','2016-07-29 08:14:52','','',1469780093,''),(7,'centos6.6','2016-07-29 08:14:55','','',1469780096,''),(9,'ubantu','2016-07-29 08:15:16','','',1469780117,'');
/*!40000 ALTER TABLE `cmdb_resource_os_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_server`
--
DROP TABLE IF EXISTS `cmdb_resource_server`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_server` (
`server_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '服务器ID',
`groups_id` int(11) DEFAULT NULL COMMENT '业务线组',
`type_id` int(11) DEFAULT NULL COMMENT '服务器类型',
`os_id` int(11) DEFAULT NULL COMMENT '参考操作 系统类型',
`cabinet_id` int(11) DEFAULT NULL COMMENT '机柜ID',
`user_id` varchar(100) DEFAULT NULL COMMENT '参考用户id,管理员',
`service_id` varchar(100) DEFAULT NULL COMMENT '参考服务类型ID,逗号分隔',
`memory` varchar(32) DEFAULT NULL COMMENT '内存大小',
`cpu` varchar(32) DEFAULT NULL COMMENT 'cpu个数',
`host_id` int(11) DEFAULT NULL COMMENT '参考宿主机ID,自己的表,类型为宿主机的',
`manager_ip` varchar(32) DEFAULT NULL COMMENT '远程管理卡IP',
`domain_name` varchar(300) DEFAULT NULL COMMENT '域名',
`ent_id` int(11) DEFAULT NULL COMMENT '参考环境管理,所属环境',
`disk_size` varchar(100) DEFAULT NULL COMMENT '硬盘大小',
`ip_address` varchar(250) DEFAULT NULL,
`open_port` varchar(200) DEFAULT NULL COMMENT '开放端口',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`cabinet_level` int(11) DEFAULT NULL COMMENT '所在机柜的位置',
`create_time` bigint(20) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL COMMENT '设备描述信息',
`expire` varchar(32) DEFAULT NULL COMMENT '过期时间',
`asset_coding` varchar(132) DEFAULT NULL COMMENT '资产编码',
`status` int(11) DEFAULT NULL COMMENT '简单测试连通性,ping,检查是否活着',
PRIMARY KEY (`server_id`),
UNIQUE KEY `uid_ip_address` (`ip_address`),
UNIQUE KEY `uidx_cabinet_levelcabinet_id` (`cabinet_id`,`cabinet_level`),
KEY `uidx_server_id` (`server_id`),
KEY `uidx_manager_ip` (`manager_ip`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_server`
--
LOCK TABLES `cmdb_resource_server` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_server` DISABLE KEYS */;
/*!40000 ALTER TABLE `cmdb_resource_server` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_server_type`
--
DROP TABLE IF EXISTS `cmdb_resource_server_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_server_type` (
`type_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '服务类型ID',
`type_name` varchar(32) DEFAULT NULL,
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
`image_path` varchar(200) DEFAULT NULL COMMENT '图片路径',
`depend` varchar(5) DEFAULT NULL COMMENT '参考的类型',
PRIMARY KEY (`type_id`),
UNIQUE KEY `uidx_service_type` (`type_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_server_type`
--
LOCK TABLES `cmdb_resource_server_type` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_server_type` DISABLE KEYS */;
INSERT INTO `cmdb_resource_server_type` VALUES (1,'KVM虚拟机','2016-07-29 23:15:20','','',NULL,'','3'),(3,'KVM宿主机','2016-07-29 08:10:29','','',NULL,'',NULL),(5,'数据库物理机','2016-07-29 08:11:04','','',1469779866,'',NULL),(7,'应用物理机','2016-07-29 08:11:12','','',1469779873,'',NULL),(9,'二层交换机','2016-07-29 08:11:22','','',1469779883,'',NULL),(11,'三层交换机','2016-07-29 08:11:34','','',1469779895,'',NULL),(13,'防火墙','2016-07-29 08:11:39','','',1469779901,'',NULL),(15,'路由器','2016-07-29 08:11:44','','',1469779905,'',NULL),(17,'虚拟机','2016-07-29 08:11:59','','',1469779921,'',NULL),(19,'物理机','2016-07-29 08:12:05','','',1469779927,'',NULL),(21,'存储设备','2016-07-29 08:21:22','','',1469780483,'',NULL),(23,'光纤交换机','2016-07-29 08:21:40','','',1469780501,'',NULL),(24,'VMware虚拟机','2016-08-30 08:02:57','','',NULL,'','25'),(25,'VMware物理机','2016-08-30 08:02:42','','',1472543929,'','19');
/*!40000 ALTER TABLE `cmdb_resource_server_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_service`
--
DROP TABLE IF EXISTS `cmdb_resource_service`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_service` (
`service_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '服务类型id',
`service_name` varchar(132) DEFAULT NULL COMMENT '服务类型名称',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
PRIMARY KEY (`service_id`),
UNIQUE KEY `uidx_service` (`service_name`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_service`
--
LOCK TABLES `cmdb_resource_service` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_service` DISABLE KEYS */;
INSERT INTO `cmdb_resource_service` VALUES (3,'nginx','2016-07-30 08:18:19','','',1469866701),(5,'jdk.1.7_tomcat_7.0.56','2016-08-02 05:43:31','','',NULL),(7,'MySQL5.6','2016-11-09 02:50:18','','',NULL),(9,'kvm','2016-07-30 10:04:56','','',1469873098),(11,'nginx_php_5.4.22','2016-08-02 05:42:34','','',1470116554),(12,'zookeeper','2016-08-30 02:22:33','','',1472523520),(13,'nginx_php-5.6.25_50G','2016-09-09 06:37:42','','',NULL),(14,'nodejs','2016-09-10 08:28:10','','',1473495858),(15,'dubbo','2016-10-11 06:02:07','','',1476165726),(16,'hadoop','2016-11-08 00:32:20','','',1478565140),(17,'redis','2016-11-08 00:38:36','','',1478565516),(18,'alibaba-rocketmq','2016-11-08 01:24:35','','',1478568275),(19,'Oracle11.2.0.1','2016-11-09 02:49:51','','',1478659791),(20,'MySQL5.5','2016-11-09 02:50:34','','',1478659834),(21,'MySQL5.7','2016-11-09 02:50:51','','',1478659851),(25,'jdk.1.8_tomcat_7.0.56','2016-12-02 10:28:25','admin','admin',1480674505);
/*!40000 ALTER TABLE `cmdb_resource_service` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cmdb_resource_user`
--
DROP TABLE IF EXISTS `cmdb_resource_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cmdb_resource_user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`user_name` varchar(100) DEFAULT NULL COMMENT '用户名称',
`groups_id` int(11) DEFAULT NULL COMMENT '业务线组',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_user` varchar(32) DEFAULT NULL COMMENT '创建人',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改 用户',
`create_time` bigint(20) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`mobile` varchar(11) DEFAULT NULL,
PRIMARY KEY (`user_id`),
KEY `uidx_user_name` (`user_name`,`mobile`,`email`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cmdb_resource_user`
--
LOCK TABLES `cmdb_resource_user` WRITE;
/*!40000 ALTER TABLE `cmdb_resource_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `cmdb_resource_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_configure`
--
DROP TABLE IF EXISTS `monitor_configure`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_configure` (
`configure_id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) DEFAULT NULL COMMENT '主机,参考资源server_id',
`description` varchar(200) DEFAULT NULL COMMENT '描述信息',
`monitor_time` varchar(25) DEFAULT '7x24',
`alarm_count` int(11) DEFAULT NULL COMMENT '报警次数',
`alarm_interval` int(11) DEFAULT NULL COMMENT '报警间隔',
`script_id` int(11) DEFAULT NULL COMMENT '脚本名,参考脚本id',
`is_valid` int(11) DEFAULT NULL COMMENT '是否有效',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(20) DEFAULT NULL COMMENT '最近修改人',
`template_id` varchar(1000) DEFAULT NULL COMMENT '使用模板,可以使用多个用逗号分隔',
`groups_id` varchar(1000) DEFAULT NULL COMMENT '使用组,多个用逗号分隔',
`retry` int(11) DEFAULT NULL COMMENT '失败重试次数',
`monitor_configure_tp` varchar(20) DEFAULT NULL,
`monitor_hosts_tp` varchar(20) DEFAULT NULL,
`hosts` varchar(2000) DEFAULT NULL COMMENT '监控服务器IP地址,参考cmdb的server_id',
`arg1` varchar(1000) DEFAULT NULL COMMENT '参数1',
`arg2` varchar(1000) DEFAULT NULL COMMENT '参数2',
`arg3` varchar(1000) DEFAULT NULL COMMENT '参数3',
`arg4` varchar(1000) DEFAULT NULL COMMENT '参数4',
`arg5` varchar(1000) DEFAULT NULL COMMENT '参数5',
`arg6` varchar(1000) DEFAULT NULL COMMENT '参数6',
`arg7` varchar(1000) DEFAULT NULL COMMENT '参数7',
`arg8` varchar(1000) DEFAULT NULL COMMENT '参数8',
`check_interval` int(11) DEFAULT NULL COMMENT '脚本检查间隔',
`is_mobile` int(11) DEFAULT NULL COMMENT '报警发送给手机,1有效,0无效',
`is_email` int(11) DEFAULT NULL COMMENT '报警发送给手机,1有效,0无效',
`is_ding` int(11) DEFAULT NULL COMMENT '报警发送给钉钉,1有效,0无效',
`is_weixin` int(11) DEFAULT NULL COMMENT '报警发送给微信,1有效,0无效',
`weixin_groups` varchar(1000) DEFAULT NULL,
`ding_groups` varchar(1000) DEFAULT NULL,
`mobile_groups` varchar(1000) DEFAULT NULL,
`email_groups` varchar(1000) DEFAULT NULL,
`all_groups` varchar(1000) DEFAULT NULL,
`item_id` varchar(12) DEFAULT NULL,
`gname` varchar(11) DEFAULT NULL,
PRIMARY KEY (`configure_id`),
UNIQUE KEY `uidx_description` (`description`),
KEY `idx_configure_hid_gid_sid` (`host_id`,`groups_id`(255),`script_id`,`is_valid`,`template_id`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_configure`
--
LOCK TABLES `monitor_configure` WRITE;
/*!40000 ALTER TABLE `monitor_configure` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_configure` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_contact_group`
--
DROP TABLE IF EXISTS `monitor_contact_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_contact_group` (
`group_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`group_name` varchar(50) DEFAULT NULL COMMENT '组名字',
`description` varchar(50) DEFAULT NULL COMMENT '描述信息',
`member` varchar(100) DEFAULT NULL COMMENT '组成员',
`ismail` int(11) DEFAULT NULL COMMENT '是否发送邮件',
`ismobile` int(11) DEFAULT NULL COMMENT '是否发送邮件',
`status` int(11) DEFAULT NULL COMMENT '状态',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`is_admin` int(11) DEFAULT NULL COMMENT '是否是管理员组,所有报警都发送到管理员组',
PRIMARY KEY (`group_id`),
UNIQUE KEY `uidx_group_name` (`group_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_contact_group`
--
LOCK TABLES `monitor_contact_group` WRITE;
/*!40000 ALTER TABLE `monitor_contact_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_contact_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_contacts`
--
DROP TABLE IF EXISTS `monitor_contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_contacts` (
`contacts_id` int(11) NOT NULL AUTO_INCREMENT,
`member_name` varchar(30) DEFAULT NULL,
`mobile` varchar(11) DEFAULT NULL,
`mail` varchar(50) DEFAULT NULL,
`no` varchar(13) DEFAULT NULL COMMENT '工号',
`last_modify_user` varchar(100) DEFAULT NULL COMMENT '最近修改人',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
PRIMARY KEY (`contacts_id`),
UNIQUE KEY `idx_contacts_member_name` (`member_name`,`mobile`,`mail`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_contacts`
--
LOCK TABLES `monitor_contacts` WRITE;
/*!40000 ALTER TABLE `monitor_contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_contacts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_groups`
--
DROP TABLE IF EXISTS `monitor_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_groups` (
`groups_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组ID',
`groups_name` varchar(200) DEFAULT NULL COMMENT '组名称',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改时间',
`is_valid` int(11) DEFAULT NULL COMMENT '最近修改时间',
`hosts` text COMMENT '拥有主机',
`other_name` varchar(100) DEFAULT NULL COMMENT '组别名',
PRIMARY KEY (`groups_id`),
UNIQUE KEY `uidx_monitor_groups_groups_name` (`groups_name`,`other_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_groups`
--
LOCK TABLES `monitor_groups` WRITE;
/*!40000 ALTER TABLE `monitor_groups` DISABLE KEYS */;
INSERT INTO `monitor_groups` VALUES (1,'3','2016-09-11 23:07:27','',1,'282,286,304,306,308,461',''),(2,'1','2016-09-11 23:51:20','',1,'995,997,1017','日志组');
/*!40000 ALTER TABLE `monitor_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_index_alarm`
--
DROP TABLE IF EXISTS `monitor_index_alarm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_index_alarm` (
`index_id` int(11) DEFAULT NULL COMMENT '参考指标表id',
`server_id` int(11) DEFAULT NULL COMMENT '参考cmdb的表server_id',
`gt_value` varchar(30) DEFAULT NULL,
`lt_value` varchar(30) DEFAULT NULL,
`eq_value` varchar(30) DEFAULT NULL,
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`status_id` int(11) DEFAULT NULL COMMENT '条件达成后报警级别',
`weixin_groups` varchar(1000) DEFAULT NULL COMMENT '微信组',
`ding_groups` varchar(1000) DEFAULT NULL,
`mobile_groups` varchar(1000) DEFAULT NULL,
`email_groups` varchar(1000) DEFAULT NULL,
`alarm_id` int(11) NOT NULL AUTO_INCREMENT,
`is_mobile` int(11) DEFAULT NULL,
`is_ding` int(11) DEFAULT NULL,
`is_weixin` int(11) DEFAULT NULL,
`is_email` int(11) DEFAULT NULL,
`is_alarm` int(11) DEFAULT NULL,
`not_eq_value` varchar(30) DEFAULT NULL,
`all_groups` varchar(1000) DEFAULT NULL COMMENT '所有报警组',
`alarm_count` varchar(3) DEFAULT NULL COMMENT '报警次数',
`alarm_interval` varchar(3) DEFAULT NULL COMMENT '报警间隔',
PRIMARY KEY (`alarm_id`),
UNIQUE KEY `uidx_sid_indexid` (`server_id`,`index_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_index_alarm`
--
LOCK TABLES `monitor_index_alarm` WRITE;
/*!40000 ALTER TABLE `monitor_index_alarm` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_index_alarm` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_index_from_scripts`
--
DROP TABLE IF EXISTS `monitor_index_from_scripts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_index_from_scripts` (
`index_id` int(11) NOT NULL AUTO_INCREMENT,
`index_name` varchar(100) DEFAULT NULL COMMENT '指标名称',
`scripts_id` int(11) DEFAULT NULL COMMENT '指标属于的脚本',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(100) DEFAULT NULL COMMENT '最近修改人',
`description` varchar(30) DEFAULT NULL COMMENT ' 描述信息',
`unit` varchar(10) DEFAULT NULL COMMENT '指标单元',
PRIMARY KEY (`index_id`),
UNIQUE KEY `uidx_index_name` (`index_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_index_from_scripts`
--
LOCK TABLES `monitor_index_from_scripts` WRITE;
/*!40000 ALTER TABLE `monitor_index_from_scripts` DISABLE KEYS */;
INSERT INTO `monitor_index_from_scripts` VALUES (1,'loadavg.system.load.1',12,'2016-11-03 07:57:34','','1分钟负载',''),(3,'loadavg.system.load.5',12,'2016-11-03 07:57:44','','5分钟负载',''),(5,'loadavg.system.load.15',12,'2016-11-03 07:57:22','','15分钟负载',''),(7,'Mysql.Questions',20,'2016-11-14 10:12:08','','查询数量',''),(9,'Mysql.Com_select',20,'2016-10-31 01:08:34','','无缓冲查询数量',NULL),(11,'Mysql.Com_delete',20,'2016-10-31 01:11:34','','删除数量',NULL),(13,'Mysql.Com_update',20,'2016-10-31 01:11:44','','更新数量',NULL),(15,'Mysql.Qcache_hits',20,'2016-10-31 01:19:18','','Qcache命中',NULL),(17,'Mysql.Threads_connected',20,'2016-10-31 01:19:44','','打开链接数',NULL),(19,'Mysql.Hit',20,'2016-10-31 01:19:58','','命中率',NULL),(21,'Mysql.tps',20,'2016-10-31 01:20:14','','Tps',NULL),(32,'cpu.system.cpu.nice',7,'2016-11-03 07:42:30','','cpu使用率nice','%'),(33,'cpu.system.cpu.steal',7,'2016-11-03 07:42:56','','cpu使用率steal','%'),(34,'cpu.system.cpu.iowait',7,'2016-11-03 07:44:22','','cpu使用率iowait越大表示IO延迟越多','%'),(35,'cpu.system.cpu.idle',7,'2016-11-03 07:56:40','','越大表示cpu越空闲','%'),(37,'IO.system.io.r_s.vda',18,'2016-11-03 08:00:45','','设备每秒读的次数',''),(38,'IO.system.io.r_s.sda',18,'2016-11-03 08:00:50','','设备每秒读的次数',''),(39,'IO.system.io.w_s.sda',18,'2016-11-03 08:01:03','','设备每秒写的次数',''),(40,'IO.system.io.w_s.vda',18,'2016-11-03 08:01:08','','设备每秒写的次数',''),(41,'IO.system.io.Blk_read.vda',18,'2016-11-03 08:02:16','','设备每秒读的KB数',''),(42,'IO.system.io.Blk_read.sda',18,'2016-11-03 08:02:36','','设备每秒读的KB数',''),(43,'IO.system.io.Blk_wrtn.sda',18,'2016-11-03 08:02:57','','设备每秒写的KB数',''),(44,'IO.system.io.Blk_wrtn.vda',18,'2016-11-03 08:03:01','','设备每秒写的KB数',''),(45,'memory.system.mem.used.percent',5,'2016-11-03 08:07:46','','内存使用率百分比','%'),(46,'memory.system.mem.totle',5,'2016-11-03 08:08:09','','内存大小','KB'),(48,'memory.system.mem.free',5,'2016-11-03 08:09:59','','内存空闲','KB'),(49,'memory.system.mem.used',5,'2016-11-03 08:09:50','','内存使用大小','KB'),(50,'memory.system.mem.cache',5,'2016-11-03 08:09:06','','内存使用cache大小','KB'),(51,'memory.system.mem.buffer',5,'2016-11-03 08:09:12','','内存使用buffer大小','KB'),(52,'memory.system.swap.used',5,'2016-11-03 08:09:31','','swap使用大小','KB'),(53,'memory.system.swap.free',5,'2016-11-03 08:09:40','','swap空闲大小','KB'),(54,'PHP-FPM.php_fpm.listen_queue.max_size',21,'2016-11-04 04:49:26','','请求等待队列最高的数量',''),(55,'PHP-FPM.php_fpm.listen_queue.size',21,'2016-11-04 04:50:05','','请求等待队列,如果这个值不为0,那么要增加FPM的进程数量',''),(56,'PHP-FPM.php_fpm.processes.active',21,'2016-11-04 04:50:36','','活跃进程数量',''),(57,'PHP-FPM.php_fpm.processes.idle',21,'2016-11-04 04:50:53','','空闲进程数量',''),(58,'PHP-FPM.php_fpm.processes.totle',21,'2016-11-04 04:51:16','','总进程数量',''),(59,'PHP-FPM.php_fpm.processes.max_active',21,'2016-11-04 04:51:44','','最大的活跃进程数量(FPM启动开始算)',''),(60,'PHP_FPM.php_fpm.processes.max_reached',21,'2016-11-14 10:23:18','','进程最大数量限制的次数,如果不为0,说明最大进程数量太小了',''),(61,'PHP_FPM.php_fpm.requests.accepted_conn',21,'2016-11-04 04:54:22','','当前池子接受的请求数',''),(62,'PHP_FPM.php_fpm.requests.slow',21,'2016-11-04 04:54:38','','启用了php-fpm slow-log,缓慢请求的数量',''),(337,'cpu.system.cpu.user',7,'2016-11-04 08:07:53',NULL,NULL,NULL),(338,'cpu.system.cpu.system',7,'2016-11-04 08:07:53',NULL,NULL,NULL),(339,'traffic.system.net.bytes.rcvd.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(340,'traffic.system.net.packets_in.error.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(341,'traffic.system.net.packets_out.count.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(342,'traffic.system.net.bytes.send.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(343,'traffic.system.net.packets_in.count.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(344,'traffic.system.net.packets_out.error.eth0',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(345,'IO.system.io.util.vda',18,'2016-11-04 08:07:54',NULL,NULL,NULL),(346,'IO.system.io.await.vda',18,'2016-11-04 08:07:54',NULL,NULL,NULL),(347,'Nginx.nginx.net.request_per_s',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(348,'Nginx.nginx.net.conn_opened_per_s',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(349,'Nginx.nginx.net.conn_dropped_per_s',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(350,'Nginx.nginx.net.connections',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(351,'Nginx.nginx.net.reading',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(352,'Nginx.nginx.net.writing',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(353,'Nginx.nginx.net.waiting',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(354,'PHP_FPM.php_fpm.listen_queue.max_size',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(355,'PHP_FPM.php_fpm.listen_queue.size',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(356,'PHP_FPM.php_fpm.processes.active',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(357,'PHP_FPM.php_fpm.processes.idle',21,'2016-11-14 10:13:52','','php进程空闲数量',''),(358,'PHP_FPM.php_fpm.processes.totle',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(359,'PHP_FPM.php_fpm.processes.max_active',21,'2016-11-04 08:07:54',NULL,NULL,NULL),(360,'traffic.system.net.packets_in.count.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(361,'traffic.system.net.bytes.send.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(362,'traffic.system.net.bytes.rcvd.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(363,'traffic.system.net.packets_in.error.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(364,'traffic.system.net.packets_out.count.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(365,'traffic.system.net.packets_out.error.eth1',17,'2016-11-04 08:07:54',NULL,NULL,NULL),(366,'disk.system.disk.used.percent.SLASH',16,'2016-11-04 08:07:54',NULL,NULL,NULL),(367,'disk.system.disk.used.percent.SLASHboot',16,'2016-11-04 08:07:54',NULL,NULL,NULL),(368,'disk.system.disk.totle.SLASH',16,'2016-11-04 08:07:54',NULL,NULL,NULL),(369,'disk.system.disk.in_use.SLASH',16,'2016-11-04 08:07:54',NULL,NULL,NULL),(370,'disk.system.disk.free.SLASH',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(371,'disk.system.disk.totle.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(372,'disk.system.disk.in_use.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(373,'disk.system.disk.free.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(374,'disk.system.fs.inodes.use.percent.SLASH',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(375,'disk.system.fs.inodes.totle.SLASH',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(376,'disk.system.fs.inodes.in_use.SLASH',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(377,'disk.system.fs.inodes.free.SLASH',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(378,'disk.system.fs.inodes.use.percent.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(379,'disk.system.fs.inodes.totle.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(380,'disk.system.fs.inodes.in_use.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(381,'disk.system.fs.inodes.free.SLASHboot',16,'2016-11-04 08:07:55',NULL,NULL,NULL),(382,'IO.system.io.w_s.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(383,'IO.system.io.await.sda',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(384,'IO.system.io.util.sda',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(385,'IO.system.io.Blk_read.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(386,'IO.system.io.Blk_wrtn.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(387,'IO.system.io.await.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(388,'IO.system.io.util.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(389,'IO.system.io.r_s.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(390,'IO.system.io.r_s.vdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(391,'IO.system.io.w_s.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(392,'IO.system.io.Blk_read.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(393,'IO.system.io.Blk_wrtn.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(394,'IO.system.io.util.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(395,'IO.system.io.await.vdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(396,'IO.system.io.await.sdc',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(397,'IO.system.io.await.sdb',18,'2016-11-04 08:07:55',NULL,NULL,NULL),(398,'IO.system.io.Blk_read.sdb',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(399,'IO.system.io.w_s.sdb',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(400,'IO.system.io.r_s.sdc',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(401,'IO.system.io.w_s.sdc',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(402,'IO.system.io.r_s.sdb',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(403,'IO.system.io.Blk_wrtn.sdc',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(404,'IO.system.io.util.sdc',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(405,'IO.system.io.Blk_wrtn.sdb',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(406,'IO.system.io.Blk_read.sdc',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(407,'IO.system.io.util.sdb',18,'2016-11-04 08:07:56',NULL,NULL,NULL),(408,'Mysql.Com_insert',20,'2016-11-04 08:07:56',NULL,NULL,NULL),(409,'Mysql.Innodb_row_lock_waits',20,'2016-11-04 08:07:56',NULL,NULL,NULL),(410,'Mysql.Slow_queries',20,'2016-11-04 08:07:56',NULL,NULL,NULL),(411,'port.8081',19,'2016-11-04 08:07:56',NULL,NULL,NULL),(412,'disk.system.disk.free.percent.SLASH',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(413,'disk.system.disk.free.percent.SLASHboot',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(414,'disk.system.disk.used.percent.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(415,'disk.system.disk.totle.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(416,'disk.system.disk.in_use.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(417,'disk.system.disk.free.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(418,'disk.system.fs.inodes.use.percent.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(419,'disk.system.fs.inodes.totle.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(420,'disk.system.fs.inodes.in_use.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(421,'disk.system.fs.inodes.free.SLASHhome',16,'2016-11-04 08:07:56',NULL,NULL,NULL),(422,'ping.ping',10,'2016-11-14 10:22:31',NULL,NULL,NULL),(423,'disk.system.disk.used.percent.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(424,'disk.system.disk.totle.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(425,'disk.system.disk.in_use.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(426,'disk.system.disk.free.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(427,'disk.system.fs.inodes.use.percent.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(428,'disk.system.fs.inodes.totle.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(429,'disk.system.fs.inodes.in_use.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(430,'disk.system.fs.inodes.free.SLASHhomeSLASHmvn',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(431,'disk.system.disk.used.percent.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(432,'disk.system.disk.used.percent.SLASHtmp',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(433,'disk.system.disk.totle.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(434,'disk.system.disk.in_use.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:31',NULL,NULL,NULL),(435,'disk.system.disk.free.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(436,'disk.system.fs.inodes.use.percent.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(437,'disk.system.fs.inodes.totle.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(438,'disk.system.fs.inodes.in_use.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(439,'disk.system.fs.inodes.free.SLASHusrSLASHlocalSLASHmysql',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(440,'disk.system.disk.used.percent.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(441,'disk.system.disk.totle.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(442,'disk.system.disk.in_use.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(443,'disk.system.disk.free.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(444,'disk.system.fs.inodes.use.percent.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(445,'disk.system.fs.inodes.totle.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(446,'disk.system.fs.inodes.in_use.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(447,'disk.system.fs.inodes.free.SLASHusrSLASHlocalSLASHmysqlSLASHdata',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(448,'disk.system.disk.used.percent.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(449,'disk.system.disk.used.percent.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(450,'disk.system.disk.totle.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(451,'disk.system.disk.in_use.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(452,'disk.system.disk.free.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(453,'disk.system.disk.totle.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(454,'disk.system.disk.in_use.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(455,'disk.system.disk.free.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(456,'disk.system.disk.totle.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(457,'disk.system.disk.in_use.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(458,'disk.system.disk.free.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(459,'disk.system.fs.inodes.use.percent.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(460,'disk.system.fs.inodes.totle.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(461,'disk.system.fs.inodes.in_use.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(462,'disk.system.fs.inodes.free.SLASHtmp',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(463,'disk.system.fs.inodes.use.percent.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(464,'disk.system.fs.inodes.totle.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(465,'disk.system.fs.inodes.in_use.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(466,'disk.system.fs.inodes.free.SLASHusr',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(467,'disk.system.fs.inodes.use.percent.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(468,'disk.system.fs.inodes.totle.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(469,'disk.system.fs.inodes.in_use.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(470,'disk.system.fs.inodes.free.SLASHvar',16,'2016-11-14 10:22:32',NULL,NULL,NULL),(471,'traffic.system.net.bytes.rcvd.em1',17,'2016-11-14 10:22:32',NULL,NULL,NULL),(472,'traffic.system.net.bytes.send.em1',17,'2016-11-14 10:22:32',NULL,NULL,NULL),(473,'traffic.system.net.packets_in.count.em1',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(474,'traffic.system.net.packets_in.error.em1',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(475,'traffic.system.net.packets_out.count.em1',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(476,'traffic.system.net.packets_out.error.em1',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(477,'traffic.system.net.packets_in.count.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(478,'traffic.system.net.packets_in.error.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(479,'traffic.system.net.bytes.rcvd.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(480,'traffic.system.net.packets_out.count.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(481,'traffic.system.net.packets_in.count.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(482,'traffic.system.net.packets_in.error.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(483,'traffic.system.net.bytes.send.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(484,'traffic.system.net.packets_out.error.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(485,'traffic.system.net.packets_out.error.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(486,'traffic.system.net.bytes.send.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(487,'traffic.system.net.packets_in.error.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(488,'traffic.system.net.packets_out.error.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(489,'traffic.system.net.packets_out.count.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(490,'traffic.system.net.bytes.rcvd.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(491,'traffic.system.net.packets_out.count.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(492,'traffic.system.net.bytes.rcvd.em3',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(493,'traffic.system.net.packets_in.count.em4',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(494,'traffic.system.net.bytes.send.em2',17,'2016-11-14 10:22:33',NULL,NULL,NULL),(495,'disk.system.disk.used.percent.SLASHbootSLASHefi',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(496,'disk.system.disk.totle.SLASHbootSLASHefi',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(497,'disk.system.disk.in_use.SLASHbootSLASHefi',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(498,'disk.system.disk.free.SLASHbootSLASHefi',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(499,'disk.system.disk.used.percent.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(500,'disk.system.disk.totle.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(501,'disk.system.disk.in_use.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(502,'disk.system.disk.free.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(503,'disk.system.fs.inodes.use.percent.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(504,'disk.system.fs.inodes.totle.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(505,'disk.system.fs.inodes.in_use.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(506,'disk.system.fs.inodes.free.SLASHhomeSLASHdata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(507,'disk.system.disk.used.percent.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(508,'disk.system.disk.totle.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(509,'disk.system.disk.in_use.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(510,'disk.system.disk.free.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(511,'disk.system.fs.inodes.use.percent.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(512,'disk.system.fs.inodes.totle.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:33',NULL,NULL,NULL),(513,'disk.system.fs.inodes.in_use.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:34',NULL,NULL,NULL),(514,'disk.system.fs.inodes.free.SLASHoptSLASHappSLASHoradata',16,'2016-11-14 10:22:34',NULL,NULL,NULL),(515,'url.access',11,'2016-12-23 07:51:42',NULL,NULL,NULL),(516,'log.scripts.output.error',22,'2016-12-23 07:51:42',NULL,NULL,NULL),(517,'loadavg.loadavg.system.load.5',1,'2016-12-23 07:51:42',NULL,NULL,NULL),(518,'process.SLASHvarSLASHhollycrmSLASHtomcatSLASHtomcat_ccSLASH',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(519,'process.SLASHvarSLASHhollycrmSLASHtomcatSLASHtomcat_monitorSLASHendorsed',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(520,'process.SLASHvarSLASHhollycrmSLASHmongodbSLASHdata',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(521,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyIVRSLASHBusiProxy.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(522,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyIVRSLASHGRSService.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(523,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyIVRSLASHMCSService.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(524,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyIVRSLASHVPSService.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(525,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHls.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(526,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHeds.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(527,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHContactService.exe',23,'2016-12-23 07:51:42',NULL,NULL,NULL),(528,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHStatService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(529,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHBeeDBService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(530,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHTelService_Asterisk.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(531,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHCMUService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(532,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHJPProxyService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(533,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHIPProxyService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(534,'process.SLASHusrSLASHbinSLASHnode',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(535,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHAgentService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(536,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHGlobalService.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(537,'process.SLASHbinSLASHsh',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(538,'process.SLASHusrSLASHsrcSLASHHollyIPCCSLASHHollyContactSLASHGMSServiceEx.exe',23,'2016-12-23 07:51:43',NULL,NULL,NULL),(539,'disk.system.disk.used.percent.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(540,'disk.system.disk.used.percent.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(541,'disk.system.disk.used.percent.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(542,'disk.system.disk.totle.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(543,'disk.system.disk.in_use.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(544,'disk.system.disk.free.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(545,'disk.system.disk.totle.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(546,'disk.system.disk.in_use.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(547,'disk.system.disk.free.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(548,'disk.system.disk.totle.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(549,'disk.system.disk.in_use.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(550,'disk.system.disk.free.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(551,'disk.system.fs.inodes.use.percent.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(552,'disk.system.fs.inodes.totle.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(553,'disk.system.fs.inodes.in_use.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(554,'disk.system.fs.inodes.free.SLASHu02',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(555,'disk.system.fs.inodes.use.percent.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(556,'disk.system.fs.inodes.totle.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(557,'disk.system.fs.inodes.in_use.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(558,'disk.system.fs.inodes.free.SLASHu01',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(559,'disk.system.fs.inodes.use.percent.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(560,'disk.system.fs.inodes.totle.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(561,'disk.system.fs.inodes.in_use.SLASHora_bak',16,'2016-12-23 07:51:43',NULL,NULL,NULL),(562,'disk.system.fs.inodes.free.SLASHora_bak',16,'2016-12-23 07:51:44',NULL,NULL,NULL),(563,'disk.system.disk.used.percent.SLASHmnt',16,'2016-12-23 07:51:44',NULL,NULL,NULL),(564,'disk.system.disk.totle.SLASHmnt',16,'2016-12-23 07:51:44',NULL,NULL,NULL),(565,'disk.system.disk.in_use.SLASHmnt',16,'2016-12-23 07:51:44',NULL,NULL,NULL),(566,'disk.system.disk.free.SLASHmnt',16,'2016-12-23 07:51:44',NULL,NULL,NULL),(567,'port.1521',19,'2016-12-23 07:51:44',NULL,NULL,NULL),(568,'logMonitor.error',1,'2016-12-23 07:51:44',NULL,NULL,NULL),(569,'traffic.system.net.packets_in.error.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(570,'traffic.system.net.packets_in.count.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(571,'traffic.system.net.bytes.send.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(572,'traffic.system.net.bytes.rcvd.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(573,'traffic.system.net.packets_out.error.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(574,'traffic.system.net.packets_out.count.eth0.0081',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(575,'traffic.system.net.bytes.send.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(576,'traffic.system.net.packets_in.error.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(577,'traffic.system.net.packets_out.error.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(578,'traffic.system.net.bytes.rcvd.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(579,'traffic.system.net.packets_in.count.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(580,'traffic.system.net.packets_out.count.eth1.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(581,'traffic.system.net.packets_out.count.eth0.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(582,'traffic.system.net.packets_in.count.eth0.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(583,'traffic.system.net.packets_out.error.eth0.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(584,'traffic.system.net.bytes.send.eth0.25',17,'2016-12-23 07:51:44',NULL,NULL,NULL),(585,'traffic.system.net.packets_out.error.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(586,'traffic.system.net.bytes.send.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(587,'traffic.system.net.packets_in.count.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(588,'traffic.system.net.packets_out.error.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(589,'traffic.system.net.bytes.rcvd.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(590,'traffic.system.net.bytes.rcvd.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(591,'traffic.system.net.packets_in.count.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(592,'traffic.system.net.packets_in.error.eth0.25',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(593,'traffic.system.net.packets_in.error.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(594,'traffic.system.net.bytes.rcvd.eth0.25',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(595,'traffic.system.net.packets_out.count.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(596,'traffic.system.net.packets_in.error.eth0.55',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(597,'traffic.system.net.bytes.send.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(598,'traffic.system.net.packets_out.count.eth0.100',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(599,'traffic.system.net.packets_in.count.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(600,'traffic.system.net.packets_out.count.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(601,'traffic.system.net.bytes.rcvd.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(602,'traffic.system.net.packets_in.error.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(603,'traffic.system.net.bytes.send.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(604,'traffic.system.net.packets_out.error.eth0.15',17,'2016-12-23 07:51:45',NULL,NULL,NULL),(605,'traffic.system.net.packets_in.error.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(606,'traffic.system.net.packets_in.count.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(607,'traffic.system.net.bytes.send.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(608,'traffic.system.net.packets_out.error.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(609,'traffic.system.net.packets_out.count.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(610,'traffic.system.net.bytes.rcvd.eth0.15.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(611,'traffic.system.net.packets_in.count.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(612,'traffic.system.net.packets_out.count.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(613,'traffic.system.net.packets_in.error.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(614,'traffic.system.net.bytes.send.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(615,'traffic.system.net.bytes.rcvd.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(616,'traffic.system.net.packets_out.error.eth0.55.br',17,'2016-12-23 07:51:46',NULL,NULL,NULL),(617,'soa.dubbo.status',9,'2016-12-23 07:51:46',NULL,NULL,NULL);
/*!40000 ALTER TABLE `monitor_index_from_scripts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_information`
--
DROP TABLE IF EXISTS `monitor_information`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_information` (
`information_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`server_id` int(11) DEFAULT NULL COMMENT '主机ip,参考资源的server_id',
`script_id` int(11) DEFAULT NULL COMMENT '脚本id,参考脚本id',
`next_time` int(11) DEFAULT NULL COMMENT '下次检查时间',
`severity_id` int(11) DEFAULT NULL COMMENT '报警状态,参考serverity_id',
`info` varchar(3000) DEFAULT NULL,
`notice_number` int(11) DEFAULT NULL COMMENT '监控报警次数',
`groups_id` int(11) DEFAULT NULL COMMENT '业务线id,参考cmdb的业务线id',
PRIMARY KEY (`information_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_information`
--
LOCK TABLES `monitor_information` WRITE;
/*!40000 ALTER TABLE `monitor_information` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_information` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_item`
--
DROP TABLE IF EXISTS `monitor_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_item` (
`item_id` int(11) NOT NULL AUTO_INCREMENT,
`item_name` varchar(200) NOT NULL,
`description` varchar(200) NOT NULL,
`monitor_time` varchar(25) DEFAULT '7x24',
`check_interval` int(11) DEFAULT '5',
`alarm_count` int(11) DEFAULT '3',
`alarm_interval` int(11) DEFAULT '15',
`script_id` int(11) NOT NULL,
`arg1` varchar(2000) DEFAULT NULL,
`arg2` varchar(2000) DEFAULT NULL,
`arg3` varchar(2000) DEFAULT NULL,
`arg4` varchar(2000) DEFAULT NULL,
`is_valid` int(11) DEFAULT NULL COMMENT '是否有效',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(20) DEFAULT NULL COMMENT '最近修改人',
`template_id` varchar(1000) DEFAULT NULL COMMENT '使用模板,可以使用多个用逗号分隔',
`arg5` varchar(2000) DEFAULT NULL COMMENT '第5个参数',
`arg6` varchar(2000) DEFAULT NULL COMMENT '第5个参数',
`arg7` varchar(2000) DEFAULT NULL COMMENT '第5个参数',
`arg8` varchar(2000) DEFAULT NULL COMMENT '第8个参数',
`retry` int(11) DEFAULT '5',
`is_recover` int(11) DEFAULT '1',
`alarm_messages` varchar(800) DEFAULT NULL COMMENT '报警信息',
`recover_messages` varchar(800) DEFAULT NULL COMMENT '恢复信息',
`resend` int(11) DEFAULT '24' COMMENT '重新发送时间',
`is_merge` int(11) DEFAULT NULL COMMENT '是否合并报警信息',
`is_admin` int(11) DEFAULT NULL COMMENT '是否是管理员组,所有报警都发送到管理员组',
`is_default` int(11) DEFAULT NULL COMMENT '1为开启,开启后agent将自动监控该项目',
PRIMARY KEY (`item_id`),
KEY `idx_montor_item_tid` (`template_id`(255),`script_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_item`
--
LOCK TABLES `monitor_item` WRITE;
/*!40000 ALTER TABLE `monitor_item` DISABLE KEYS */;
INSERT INTO `monitor_item` VALUES (1,'监控rabbitmq的队列数','监控rabbitmq的队列数',NULL,30,3,15,4,'10.10.25.1','15672','sms_rab','sms_rab',1,'2016-10-03 01:40:12','',NULL,NULL,NULL,NULL,NULL,6,1,'RabbitMq队列数异常:\n${message}\n${groups}\n服务器地址:${server} ${time}','RabbitMq队列数恢复:\n${message}\n${groups}\n服务器地址:${server} ${time} ',0,0,NULL,NULL),(2,'监控内存','监控内存',NULL,30,3,15,5,'90',NULL,NULL,NULL,1,'2016-10-19 06:04:15','',NULL,NULL,NULL,NULL,NULL,6,1,'内存监控报警:\n${message}\n服务器地址:${server} ${time}','内存监控报警恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,1),(3,'监控CPU使用率','监控cpu恢复',NULL,120,3,15,7,'20','40',NULL,NULL,1,'2016-10-31 04:41:42','',NULL,NULL,NULL,NULL,NULL,6,0,'cpu','cpu',0,0,1,1),(5,'ping服务器','监控服务器是否能ping通 ',NULL,120,3,15,10,'10.16.35.193,10.16.35.197',NULL,NULL,NULL,0,'2016-10-09 06:06:59','',NULL,NULL,NULL,NULL,NULL,6,0,'ping失败:\n${message}\n服务器地址:${server} ${time}','ping恢复:\n${message}\n服务器地址:${server} ${time}',0,0,NULL,NULL),(6,'监控硬盘使用率','硬盘监控',NULL,600,3,30,16,'90','80',NULL,NULL,1,'2016-10-26 12:56:43','',NULL,NULL,NULL,NULL,NULL,6,1,'硬盘使用监控报警:\n${message}\n服务器地址:${server} ${time}','硬盘使用恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,1),(7,'监控系统负载','系统负载监控',NULL,300,3,30,12,'50,20,15','25,20,18',NULL,NULL,1,'2016-10-19 05:54:59','',NULL,NULL,NULL,NULL,NULL,6,1,'系统负载监控报警:\n${message}\n服务器地址:${server} ${time}','系统负载恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,1),(8,'监控网卡流量','监控服务器网卡流量',NULL,120,3,15,17,NULL,NULL,NULL,NULL,1,'2016-10-19 06:00:55','',NULL,NULL,NULL,NULL,NULL,6,1,'网卡流量异常:\n${message}\n服务器地址:${server} ${time}','网卡流量恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,1),(9,'监控磁盘IO性能','监控磁盘IO',NULL,60,3,15,18,NULL,NULL,NULL,NULL,1,'2016-10-19 05:55:07','',NULL,NULL,NULL,NULL,NULL,6,1,'磁盘IO异常报警:\n${message}\n服务器地址:${server} ${time}','磁盘IO异常恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,1),(11,'日志监控','日志输出监控',NULL,300,0,0,1,'Error,error','/home/asura/runtime/tomcat_8081/logs/catalina.out',NULL,NULL,0,'2016-10-11 06:16:45','',NULL,NULL,NULL,NULL,NULL,0,1,'日志监控报警:\n${message}\n服务器地址:${server} ${time}','日志监控恢复:\n${message}\n服务器地址:${server} ${time}',0,0,NULL,NULL),(12,'监控端口连通性','监控服务器端口连通',NULL,60,3,15,19,'22',NULL,NULL,NULL,0,'2016-10-12 06:11:39','',NULL,NULL,NULL,NULL,NULL,8,0,'端口监控异常报警:\n${message}\n服务器地址:${server} ${time}','端口监控报警恢复:\n${message}\n服务器地址:${server} ${time}',0,0,NULL,NULL),(13,'mysql性能指标监控','监控mysql指标只画图',NULL,30,3,15,20,NULL,NULL,NULL,NULL,0,'2016-10-31 04:45:28','',NULL,NULL,NULL,NULL,NULL,6,1,'','',0,0,0,0),(14,'监控nginx和php-fpm的性能','监控nginx和phpfpm默认监控',NULL,60,3,15,21,NULL,NULL,NULL,NULL,0,'2016-11-04 02:19:07','',NULL,NULL,NULL,NULL,NULL,6,1,'','',0,0,0,1),(15,'监控URL是否能访问','监控url访问',NULL,120,3,15,11,'http://www.xx.com/index.php','ok','5',NULL,0,'2016-11-17 04:55:52','',NULL,NULL,NULL,NULL,NULL,6,0,'URL访问异常报警:\n${message}\n服务器地址:${server} ${time}','URL访问恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,0),(16,'监控脚本数据','脚本输出监控',NULL,120,3,15,22,'ls',NULL,NULL,NULL,1,'2016-11-21 07:03:51','',NULL,NULL,NULL,NULL,NULL,6,1,'${message}\n服务器地址:${server} ${time}','锁表报警恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,0),(17,'进程存在检查','进程检查监控',NULL,120,3,15,23,'sshd',NULL,NULL,NULL,0,'2016-11-23 08:05:20','',NULL,NULL,NULL,NULL,NULL,6,0,'进程检查异常报警:\n${message}\n服务器地址:${server} ${time}','进程检查恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,0),(18,'soa服务监控','soa服务监控',NULL,120,3,15,24,'20880','127.0.0.1',NULL,NULL,1,'2017-01-20 23:53:47','zhaozq14',NULL,NULL,NULL,NULL,NULL,14,1,'dubbo异常报警:\n${message}\n服务器地址:${server} ${time}','dubbo报警恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,0),(19,'监控redis读写','监控redis是否可以写入数据',NULL,60,3,15,8,'127.0.0.1:6379','set a a','OK',NULL,0,'2017-01-22 09:39:22','zhaozq14',NULL,NULL,NULL,NULL,NULL,6,0,'redis 监控报警:\n${message}\n服务器地址:${server} ${time}','redis监控报警恢复:\n${message}\n服务器地址:${server} ${time}',0,0,1,0);
/*!40000 ALTER TABLE `monitor_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_message_channel`
--
DROP TABLE IF EXISTS `monitor_message_channel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_message_channel` (
`channel_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`channel_tp` varchar(20) DEFAULT NULL,
`channel_script` text COMMENT '发送脚本',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近修改时间',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`is_valid` int(11) DEFAULT NULL COMMENT '是否有效',
`smtp_server` varchar(60) DEFAULT NULL COMMENT '发送有服务器地址',
`smtp_user` varchar(30) DEFAULT NULL COMMENT '发送有服务器用户名',
`smtp_pass` varchar(30) DEFAULT NULL COMMENT '发送有服务器用户名密码',
`smtp_auth` varchar(30) DEFAULT NULL COMMENT '发送服务器是否使用用户名密码',
`mail_template` text COMMENT '邮件模板',
`smtp_sender` varchar(50) DEFAULT NULL COMMENT '向用户显示的邮件地址',
`ding_corp_id` varchar(200) DEFAULT NULL COMMENT '钉钉的CorpID',
`ding_secret_id` varchar(200) DEFAULT NULL COMMENT '钉钉的SecretId',
`ding_agent_id` bigint(20) DEFAULT NULL COMMENT '钉钉的agentid',
`weixin_corp_id` varchar(200) DEFAULT NULL,
`weixin_secret_id` varchar(200) DEFAULT NULL COMMENT '微信SecretId',
`weixin_encoding_AESKey` varchar(200) DEFAULT NULL COMMENT '微信企业号的EncodingAESKey',
`weixin_wechat_token` varchar(200) DEFAULT NULL COMMENT '微信订阅号token',
`weixin_app_secret` varchar(200) DEFAULT NULL COMMENT '微信订阅号secret',
`weixin_app_id` varchar(200) DEFAULT NULL COMMENT '微信订阅号app_id',
PRIMARY KEY (`channel_id`),
UNIQUE KEY `uidx_channel_tp` (`channel_tp`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_message_channel`
--
LOCK TABLES `monitor_message_channel` WRITE;
/*!40000 ALTER TABLE `monitor_message_channel` DISABLE KEYS */;
INSERT INTO `monitor_message_channel` VALUES (3,'email','脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n 脚本使用环境变量接收参数\nUSERNAMES CONTENT\nUSERNAMES 使用逗号分隔: 如 13101321011,13201210011,15810243121\nCONTENT 为发送的消息体\n如 shell 接收要发送的对象 to_user=\"$USERNAMES\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','2017-01-22 00:10:45','zhaozq14',NULL,'smtp.asura.com.cn','','',' 0 ','<style>\n .ibox {\n clear: both;\n margin-bottom: 45px;\n margin-top: 0;\n padding: 0;\n }\n .ibox-content {\n background-color: #ffffff;\n color: inherit;\n padding: 15px 20px 20px 20px;\n border-color: #e7eaec;\n -webkit-border-image: none;\n -o-border-image: none;\n border-image: none;\n border-style: solid solid none;\n border-width: 1px 0px;\n border: 1px solid #f0f0f0;\n }\n .table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n }\n table {\n background-color: transparent;\n }\n table {\n border-spacing: 0;\n border-collapse: collapse;\n }\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {\n border-top: 1px solid #e7eaec;\n line-height: 1.42857;\n padding: 8px;\n vertical-align: middle;\n }\n .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n }\n * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n user agent stylesheettr {\n display: table-row;\n vertical-align: inherit;\n border-color: inherit;\n }\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {\n border-top: 1px solid #e7eaec;\n line-height: 1.42857;\n padding: 8px;\n vertical-align: middle;\n }\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\n border: 1px solid #e7e7e7;\n }\n .table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th {\n border: 1px solid #ddd;\n }\n .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #ddd;\n }\n td, th {\n padding: 0;\n }\n\n .ibox-title {\n border-top:5px solid #1ab394;\n width: 100%;\n height: 60px;;\n }\n .ibox-title h6 {\n display: inline-block;\n font-size: 20px;\n margin: 0 0 7px;\n padding: 0;\n text-overflow: ellipsis;\n float: left;\n margin-top: 15px;\n margin-left: 30px;\n margin-bottom: 5px;;\n }\n\n .ibox-title .label {\n float: left;\n margin-left: 4px;\n }\n .padding {\n padding-bottom: 15px;\n margin-top: 10px;;\n margin-left: 20px;\n }\n\n</style>\n<div class=\"col-sm-6\">\n <div class=\"ibox float-e-margins\">\n <div class=\"ibox-title\">\n <h6>${SUBJECT}</h6>\n </div>\n <div class=\"ibox-content\">\n\n <table class=\"table\">\n <tbody>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">报警时间</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span class=\"padding\">${TIME}</span><p></td>\n </tr>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">检查项目</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span class=\"padding\">${COMMAND}</span><p></td>\n\n </tr>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">报警内容</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span style=\"word-wrap:break-word;word-break;break-all \" class=\"padding\">${CONTENT}</span><p></td>\n\n </tr>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">报警次数</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span class=\"padding\">${ALARM_COUNT}</span><p></td>\n </tr>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">异常服务器</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span class=\"padding\">${SERVER}</span><p></td>\n\n </tr>\n <tr>\n <td style=\"border: 1px solid #f1f1f1;width: 20%;\"><br><span class=\"padding\">异常状态</span><br></td>\n <td style=\"border: 1px solid #f1f1f1;\"><br><span class=\"padding\">${STATUS}</span><p></td>\n\n </tr>\n </tbody>\n </table>\n <span style=\"color: red;font-size: 15px;\">该邮件为系统自动发出,请勿直接回复!\n <span style=\"margin-left: 80%;color: #f7a54a\"><strong>阿修罗运维团队</strong></span></span>\n </div>\n </div>\n</div>\n\n\n\n \n \n \n \n \n \n \n ','[email protected]','','',NULL,'','',NULL,'','',''),(5,'mobile','#!/usr/bin/python\n#--coding:utf-8\n# 2016-10-05\n# 短信发送脚本\nimport urllib\nimport cookielib\nimport urllib2\nimport json\nimport sys\n\nTOKEN = \"ElTahfAaQ7a\"\nURL = \"http://10..:8080/api/sms/send\"\n\ndef send_mess(mobile, messages):\n def curl_post(url, data):\n\n try:\n req = urllib2.Request(url, data, headers = {\"Content-Type\":\"application/json\"})\n resp = urllib2.urlopen(req,)\n return resp.read()\n except Exception, e:\n print e\n return\n\n mobile = mobile.replace(\"|\", \",\").split(\",\")\n mobile = set(mobile)\n for i in mobile:\n data = {}\n data[\"to\"] = i\n data[\"content\"] = messages\n data[\"token\"] = TOKEN\n print curl_post(URL, json.dumps(data))\n\nmobile = sys.argv[1]\nmessages = \"\"\nfor d in range(2, len(sys.argv)):\n messages += \" \"+sys.argv[d]\nprint messages\nsend_mess(mobile, messages)\n ','2016-12-27 22:21:08','zhaozq14',NULL,'','','',' 0 ',' 发送邮件的html模板\n系统开放的字段有\n ${SUBJECT} // 主题\n ${CONTENT} // 内容\n ${START} // 异常开始时间\n ${SERVER} // 服务器地址\n ${COMMAND} // 监控项名称\n ${TIME} // 时间\n ${ALARM_COUNT} // 报警次数\n ${STATUS} // 状态\n可根据这些字段结合html做出漂亮的邮件内容\n \n \n \n \n \n \n \n \n ','','','',NULL,'','',NULL,'','','');
/*!40000 ALTER TABLE `monitor_message_channel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_messages`
--
DROP TABLE IF EXISTS `monitor_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_messages` (
`messages_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`member` text,
`messages_time` timestamp NULL DEFAULT NULL COMMENT '插入数据时间',
`server_id` int(11) DEFAULT NULL COMMENT '参考CMDB的服务器ID',
`scripts_id` int(11) DEFAULT NULL COMMENT '参考scripts_id',
`groups_id` int(11) DEFAULT NULL COMMENT '参考业务组的ID',
`severtity_id` int(11) DEFAULT NULL COMMENT '参考severity_id',
`email` text COMMENT '邮件地址',
`mobile` text COMMENT '手机地址',
`ding` text COMMENT '钉钉地址',
`weixin` text COMMENT '微信地址',
`messages` text COMMENT '报警消息',
`alarm_count` int(11) DEFAULT NULL COMMENT '报警次数',
PRIMARY KEY (`messages_id`),
KEY `idx_m_mtiime` (`messages_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_messages`
--
LOCK TABLES `monitor_messages` WRITE;
/*!40000 ALTER TABLE `monitor_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_platform_server`
--
DROP TABLE IF EXISTS `monitor_platform_server`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_platform_server` (
`platform_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`ip` varchar(32) DEFAULT NULL COMMENT 'ip地址',
`hostname` varchar(100) DEFAULT NULL COMMENT '主机名',
`show_key` varchar(2000) DEFAULT NULL,
`last_modify_time` varchar(32) DEFAULT NULL COMMENT '最近更新时间',
PRIMARY KEY (`platform_id`),
UNIQUE KEY `uidx_platform_server_ip` (`ip`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_platform_server`
--
LOCK TABLES `monitor_platform_server` WRITE;
/*!40000 ALTER TABLE `monitor_platform_server` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_platform_server` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_report_day`
--
DROP TABLE IF EXISTS `monitor_report_day`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_report_day` (
`report_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`server_id` bigint(20) DEFAULT NULL,
`operator` varchar(100) DEFAULT NULL COMMENT '故障处理人',
`alarm_time` varchar(32) DEFAULT NULL COMMENT '报警时间',
`scripts_id` int(11) DEFAULT NULL COMMENT '脚本ID,参考脚本ID',
`severity_id` int(11) DEFAULT NULL COMMENT '报警级别,参考severity_id',
`operator_time` varchar(32) DEFAULT NULL COMMENT '故障处理时间',
`groups_id` int(11) DEFAULT NULL COMMENT '组ID',
`index_name` varchar(132) DEFAULT NULL,
`change_status` varchar(32) DEFAULT NULL COMMENT '修改状态',
`start_time` varchar(32) DEFAULT NULL COMMENT '报警开始时间',
PRIMARY KEY (`report_id`),
KEY `report_day_index` (`alarm_time`,`scripts_id`,`groups_id`,`server_id`),
KEY `idx_start_time` (`start_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_report_day`
--
LOCK TABLES `monitor_report_day` WRITE;
/*!40000 ALTER TABLE `monitor_report_day` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_report_day` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `monitor_report_send`
--
DROP TABLE IF EXISTS `monitor_report_send`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_report_send` (
`send_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`groups_id` int(11) DEFAULT NULL COMMENT '参数cmdb资源的组id',
`emails` text COMMENT '自动发 送报表信息的邮件地址多个用逗号分隔',
`last_modify_user` varchar(32) DEFAULT NULL COMMENT '最近修改用户',
`last_modify_time` varchar(32) DEFAULT NULL COMMENT '最近修改时间',
PRIMARY KEY (`send_id`),
UNIQUE KEY `uidx_report_send` (`groups_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `monitor_report_send`
--
LOCK TABLES `monitor_report_send` WRITE;
/*!40000 ALTER TABLE `monitor_report_send` DISABLE KEYS */;
/*!40000 ALTER TABLE `monitor_report_send` ENABLE KEYS */;
UNLOCK TABLES;