当前位置:网站首页>最牛X的CMDB系统
最牛X的CMDB系统
2022-06-26 09:52:00 【波哥】
波哥出手必是精品!
前段时间波哥去朋友的公司玩,朋友无意间聊起了资产管理的事,他们公司的设备统计非常混乱,办公电脑和服务器设备的分发和统计依然采用手工填写字纸excel,人工入库的方式。。
手工表格我忘拍照片了。。反正你们自己脑补吧,跟高中课堂笔记一样各种勾勾画画。
行吧!波哥是好人,本着日行一善的目的我说过两天帮你们做一套CMDB系统吧。
OK,前几天做完了,已经教会他们如何使用了!
老规矩,直接上项目!
git clone https://github.com/luckman666/deploy_glpi.git
cd deploy_glpi
docker-compose up -d以上3步你就完成了波哥3个晚上的工作了!
当然服务器上必须要安装了docker和docker-compose
如果没有安装,可以使用我的另一个脚本初始化一下环境
git clone https://github.com/luckman666/shell_scripts.git
cd shell_scripts && chmod -R 755 .
./deploy_docker_and_composes.sh其实波哥是也是借助了一个PHP开源项目叫glpi,讲真这个是我见过的最牛逼的CMDB系统。另外还有各种丰富的插件供你选择。
但是,这里是重点了。安装超级复杂!硬核资料比较少。比较好的群都是收费才可以加入哒!
所以波哥就再次做吧好人吧!
你们不用安装了!真正的零门槛使用~
我已经把项目封装好了做成了镜像上传到了我的开源镜像库中供大家使用。
波哥不愿意啰嗦,只说核心配置和简单的使用方法:
其他的都略过,启动后访问IP即可,我映射的是80端口
这里数据库选mariadb(我用的mariadb),用户名密码都在docker-compose里面可以看到,然后继续!
进入到主页别着急干别的看到这边有个告警没?
到glpi容器里执行下面两句就行了
清除告警命令
/usr/local/bin/php /var/www/html/front/cron.php定时任务
* * * * * /usr/local/bin/php /var/www/html/front/cron.php &>/dev/null然后安装最核心的插件fusioninventory
然后把fusioninventory-9.2.2.0.tar.bz2这个插件mv到
/var/lib/docker/volumes/glpi_glpi-plugins/_data/这个目录下
解压
mv fusioninventory-9.2.2.0.tar.bz2 /var/lib/docker/volumes/glpi_glpi-plugins/_data/ && tar -jxvf fusioninventory-9.2.2.0.tar.bz2这个就是glpi独立的插件,也是我认为最重要的插件,他能自动收集设备上的信息!超级牛X,然后看着里
你们这里后边应该有个安装字样的选项
点击安装,然后等会安装成功后会有个启用,你点击启用。把状态设置成我这样就行了。
服务器端这就搞定了。简单吧!当然简单了。你要是一步一步自己安装试试。。。所以这里给波哥个star或者关注或者转发一下不过分吧?
然后我们去安装agent,这里主要分两个,一个windos和一个linux的agent。
因为windos的安装比较麻烦并且需要等一个小时才能看到效果。索性我就写了个脚本辨别系统架构并且自动安装和立刻采集一起完成了。
仓库里面的Fusion.rar这个文件就是我做好的windos的agent的脚本。
将这个文件copy到windos的电脑上。
然后用记事本打开FusionInventory.bat。修改这两个位置的IP为你们安装glpi的IP即可。如果你改端口了。后边也要加上端口。
然后保存,双击执行!
有可能会被360或者其他安全软件拦截。一定要相信波哥不能害你们。放行或者暂时关闭安全软件就行了。
执行完毕,cmd命令提示框关闭之后我们登录glpi
看到了吗?敢相信自己的眼睛嘛?超级超级详细有没有?
简单介绍了windos的agent。我们去linux上试试
centos7 为例:
执行下面的语句:
yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum install -y fusioninventory-agent fusioninventory-agent-task-inventory
vim /etc/fusioninventory/agent.cfg添加一条记录
server = http://192.168.1.116/plugins/fusioninventory同样IP和端口需要换一下
然后执行
systemctl start fusioninventory-agent
systemctl enable fusioninventory-agent想要立刻收集只需要执行
fusioninventory-agent就行啦!
这里值得说一句agent安装完毕后,server端会进行例行盘点,默认是24小时一次盘点,收集agent的信息。
在这里调整盘点时间选项
以上是glpi的核心内容。
当然还有个比较有用牛X的插件我也一起放到了仓库里。
那就是dashboard,安装和使用方式类似上面的插件安装方式。我们看看效果吧:
资产:
工单:
还有各种画面我就不给大家演示了。
里面还给大家放了一个PDF的插件,为了方便大家下载图表之类的
这个版本是9.2.1,现在好像出到9.4了。
感兴趣的朋友可以自己做个镜像再试试!也感受一下波哥背后的痛苦。。
行了!今天聊到这了。感谢大家的关注,波哥会持续提供更好更有价值的工具,对了自己写的kkit3.0已经到了自动部署阶段了。我还在抽时间往前赶。加油吧各位!
边栏推荐
- Global and Chinese market for change and configuration management software 2022-2028: Research Report on technology, participants, trends, market size and share
- [echart] II. User manual and configuration item reading notes
- AIX basic operation record
- Function run time
- Redis (IV) redis association table caching
- Small example of SSM project, detailed tutorial of SSM integration
- Global and Chinese market for baked potato chips 2022-2028: Research Report on technology, participants, trends, market size and share
- 工程数学概率论统计简明教程第二版复习大纲
- Idea remote debugger
- How QT uses quazip to compress and decompress files
猜你喜欢

MySQL 11th job - view application

Write data to local file

The fourteenth MySQL operation - e-mall project

Renesas electronics launched a complete intelligent sensor solution for Internet of things applications

MySQL第十次作业-视图

Hazelnut cloud - SMS (tool)

MySQL 9th job - connection Query & sub query

Enter a positive integer with no more than 5 digits, and output the last digit in reverse order

OpenCV图像处理-灰度处理

How to change the QR code material color of wechat applet
随机推荐
Vscode environment setup: synchronous configuration
Based on Zeng Shen's explanation, the line segment tree is studied again one
Pit record_ TreeSet custom sorting results in less data loss
Bit operation n & (n-1), leetcode231, interview question 05.06
Some problems of feign transferring multipartfile
Using reflection to export entity data to excel
Which PHP open source works deserve attention
36 qtextedit control input multiline text
Nuxt. JS - learning notes
MySQL project 7 Summary
搜索引擎高级搜索方法记录
Progressive web application PWA is the future of application development
DBSCAN
Getting started with postman
开发者,微服务架构到底是什么?
小笔记-简单但够用系列_KVM快速入门
Oracle11g 启动数据库时报错 ORA-27154: post/wait create failed
SQL Server 基础介绍整理
RDB持久化验证测试
Redis (IV) redis association table caching