当前位置:网站首页>The best CMDB system

The best CMDB system

2022-06-26 11:29:00 BOGO

Brother Bo must be a fine product !

Some time ago, brother Bo went to a friend's company to play , My friend accidentally talked about asset management , The equipment statistics of their company are very chaotic , The distribution and statistics of office computers and server equipment are still completed manually excel, Manual warehousing ..

Manual form I forgot to take photos .. Anyway, you can do it yourself , Just like high school class notes, all kinds of sketching and drawing .

All right ! BOGO is a good man , For the purpose of doing good every day, I said I would help you make a set in two days CMDB System .

OK, I finished it a few days ago , They have been taught how to use !

Old rules , Go straight to the project !

git clone https://github.com/luckman666/deploy_glpi.git
cd deploy_glpi
docker-compose up -d

above 3 You have finished BOGO 3 A night's work !

Of course, the server must be installed docker and docker-compose

If not installed , You can use my other script to initialize the environment

git clone https://github.com/luckman666/shell_scripts.git
cd shell_scripts && chmod -R 755 .
./deploy_docker_and_composes.sh

In fact, BOGO also used a PHP The open source project is called glpi, To tell you the truth, this is the most awesome thing I have ever seen CMDB System . There are also various plug-ins for you to choose from .

however , Here's the point . Installation is super complicated ! Hard core data is relatively small . Good groups can only be joined for a fee !

So BOGO will be a good man again !

You don't have to install ! Real zero threshold use ~

I have encapsulated the project, made it into an image and uploaded it to my open source image library for everyone to use .

BOGO doesn't want to be verbose , Just talk about the core configuration and simple usage :

Skip the rest , Access after startup IP that will do , What I mapped is 80 port

Here, the database is mariadb( I am using mariadb), The user name and password are all in docker-compose You can see it in it , Then continue to !

When you go to the home page, don't worry. Do you see an alarm here ?

To glpi Just execute the following two sentences in the container

Clear the alarm command

/usr/local/bin/php /var/www/html/front/cron.php

Timing task

* * * * * /usr/local/bin/php /var/www/html/front/cron.php &>/dev/null

Then install the core plug-ins fusioninventory

And then put fusioninventory-9.2.2.0.tar.bz2 This plugin mv To

/var/lib/docker/volumes/glpi_glpi-plugins/_data/ Under this catalog

decompression

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

This is glpi Independent plug-ins , It is also the most important plug-in in my opinion , He can automatically collect information on the device ! Super cow X, And look inside

You should have an option to install the word at the back of here

Click on the install , Then, after the installation is successful, it will be enabled , You click enable . Just set the status to me .

The server side is done . Easy ! Of course it's simple . If you try to install it yourself step by step ... So here's a... for BOGO star It's not too much to pay attention to or forward it ?

Then we install agent, There are two main points here , One windos And a linux Of agent.

because windos The installation of is troublesome and needs to wait an hour to see the effect . I simply wrote a script to identify the system architecture and complete the automatic installation and immediate collection .

In the warehouse Fusion.rar I made this document windos Of agent Script for .

Put this file copy To windos On the computer .

Then use Notepad to open FusionInventory.bat. Modify the... Of these two positions IP Install... For you glpi Of IP that will do . If you change the port . Ports should also be added at the back .

Then save , Double click execute !

It's possible that 360 Or other security software . You must believe that BOGO can't hurt you . Just release or temporarily close the security software .

completion of enforcement ,cmd After the command prompt box closes, we log in glpi

Did you see? ? Dare to believe your eyes ? Super super details whether there is ?

A brief introduction windos Of agent. Let's go to the linux Try it

centos7 For example :

Execute the following statement :

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

Add a record

server = http://192.168.1.116/plugins/fusioninventory

Again IP And ports need to be changed

And then execute

systemctl start fusioninventory-agent
systemctl enable fusioninventory-agent

To collect immediately, just execute

fusioninventory-agent

Just do it !

It's worth saying here agent After installation ,server The client will conduct routine inventory , The default is 24 Check every hour , collect agent Information about .

Adjust the counting time option here

Above is glpi The core content .

Of course, there is a useful cow X I also put the plug-ins of the into the warehouse together .

That's it dashboard, The installation and use methods are similar to the above plug-in installation methods . Let's see the effect :

assets :

The repair order :

I won't show you any more pictures .

There is also one in it PDF Plug in for , In order to facilitate you to download charts and so on

This version is 9.2.1, Now it seems that 9.4 了 .

Interested friends can make a mirror image and try again ! Also feel the pain behind BOGO ..

All right ! That's all for today . Thank you for your attention , BOGO will continue to provide better and more valuable tools , By the way, I wrote it myself kkit3.0 We have reached the automatic deployment stage . I'm still trying to find time to move on . Come on, guys !

原网站

版权声明
本文为[BOGO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260950315234.html