APP下载

企业数据库监控系统开发实践

2021-12-13刘军军

科技资讯 2021年27期

摘要:该文对开源的天兔(Lepus)数据库监控系统进行深入分析,理清了系统功能各模块的MVC架构设计。在此基础上,修改了针对主机操作系统、mongodb数据库监控的代码,按照现有架构设计思路,在企业需求基础上全新开发存储区域网络SAN交换设备的监控与告警功能,同时,利用开源hMailServer构建与本系统配套的邮件发送服务,完善了企业内网环境告警邮件发送机制。

关键词:数据库监控  CodeIgniter  Lepus  SNMP  SAN  hMail

中图分类号:TP311.5           文献标识码:A        文章编号:1672-3791(2021)09(c)-0000-00

Development Practice of Enterprise Database Monitoring System

LIU Junjun

(CHN Energy Zhunneng Group Co., Ltd., Information Center,Ordos,Inner Mongolia Autonomous Region,010300 China)

Abstract: This paper deeply analyzes the open source Lepus database monitoring system, and clarifies the MVC architecture design of the system function. On this basis, the code for monitoring the host OS and mongodb database is modified. According to the existing architecture design ideas, the monitoring and alarm functions of SAN switch equipment in storage area network are newly developed on the basis of enterprise requirements. At the same time, with the open source hmailserver used to build the mail sending system, we improved the alarm sending mechanism of enterprise intranet environment.

Key Words: Database monitoring; CodeIgniter; Lepus; SNMP; SAN; HMail

企业信息化建设发展经历了从传统的每个信息系统一套独立底层基础硬件到如今统一底层平台,共享统一虚拟平台或云平台的架构。同时企业数据分布也在不断变化,从最初各个信息系统各自独立式建设,每个系统一个后台数据库,各系统的后台数据呈现孤岛式分布,到企业对各系统数据统一仓库式存放,并对来自不同信息系统数据综合分析利用,再到统一数据平台建设。数据库的监控维护工作伴随着企业信息化发展各个阶段。企业在未建成统一数据平台阶段,需要一套数据库监控系统来帮助运维人员掌握企业核心数据库及底层主机、存储、SAN网络的运行状态,以便在故障发生时,可快速定位故障以恢复业务。

1 Lepus的架构

天兔Lepus是开源的企业数据库监控系统,其主要功能、软件结构、数据采集方式、可扩展性这个几个方面的内容已在笔者另一论文[1]阐述。此文将详细阐述Lepus的设计架构,并做新的功能开发。从整体看,Lepus数据库监控系统的软件设计分两部分:前端web展示、后端监控数据采集与告警管理(简称作业调度)。……

登录APP查看全文