# fsr **Repository Path**: jytian/fsr ## Basic Information - **Project Name**: fsr - **Description**: 本项目是基于python3 django 开发的集资产管理+监控+简单自愈为一体的运维管理故障自愈系统。 可以用作资产管理,也可以用于定时任务,自愈通过监控获取非0即1的判断执行定义好的动作异步远程调用执行。监控可以对接zabbix nagios 等告警信息发送到自愈系统。 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 37 - **Created**: 2021-08-04 - **Last Updated**: 2021-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 环境要求: python 3.6+ 版本 mysql 5.6+ # 使用方法: 1. **python3 mysql redis 环境安装(略)** 2. **参考conf/db.conf.demo 配置自己的环境信息**。 3. **python3 虚拟环境安装** ``` #进入项目根目录 python3 -m venv env source env/bin/activate cd install && pip install -r pip_list.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com cd ../cmdb #数据库需要自己提前创建 #创建表结构 python manage.py makemigrations python manage.py migrate #创建超级用户 python manage.py createsuperuser #如果想修改密码 python manage.py changepassword #启动程序 进入项目根目录/cmdb sh startup.sh start #以上命令完成后,则配置和启动完毕。 ``` 4. **故障自愈配置** ``` 0> 系统管理配置-配置邮件服务器信息和API权限验证 1> 首先配置资产用户-连接远程主机的账号密码或者密钥 2> 配置资产项目-自愈的白名单 3> 配置故障自愈-报警后出发的执行动作 4> 配置联系人和联系组-告警邮件发送 4> 配置监控项-你监控的目标和要自愈动作的逻辑配置 ``` 5. **web展现** ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/user.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/asset.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/asset_user.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/auto_recovery.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/monitor_config.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/alert_history.jpg) ![Image text](https://gitee.com/haocx/fsr/raw/master/cmdb/pictrue/tenet.jpg)