Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Open-Falcon Monitoring system under Linux

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to deploy Open-Falcon monitoring system under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Open-Falcon is a humanized Internet enterprise monitoring system. The whole Open-Falcon can be divided into two parts, namely, drawing component and alarm component. Where:

The installation drawing component is responsible for data collection, collection, storage, archiving, sampling, query, display (Dashboard/Screen) and other functions, which can work alone as a storage and display scheme of time-series data. The installation alarm component is responsible for alarm policy configuration (portal), alarm decision (judge), alarm processing (alarm/sender), user group management (uic), etc., and can work independently. Deployment

Open-Falcon uses server-agent to realize monitoring. Here are the details of the deployment:

Integrated deployment backend

In this test environment, stand-alone deployment is carried out, and all modules are placed on one host.

Environmental preparation

The back-end components of open-falcon are written in the GE language, so we need to install the GE language development environment first.

Yum install golang-y # # requires epel source export GOROOT=/usr/lib/golangexport GOPATH=/home

Install redis

Yum install-y redis1

Install mysql and start

Yum install-y mysql-server/etc/init.d/mysqld start

# # the test machine is centos6, and the rest of the system changes the startup command on its own

Initialize the MySQL table structure

Cd / tmp/ & & git clone https://github.com/open-falcon/falcon-plus.gitcd / tmp/falcon-plus/scripts/mysql/db_schema/mysql-h 127.0.0.1-u root-p

Installation

Create a working directory

Export FALCON_HOME=/home/workexport WORKSPACE=$FALCON_HOME/open-falconmkdir-p $WORKSPACE

Download the compiled binary package and extract it

Wget https://github.com/open-falcon/falcon-plus/releases/download/v0.2.1/open-falcon-v0.2.1.tar.gztar-xzvf open-falcon-v0.2.1.tar.gz-C $WORKSPACE

Configuration file

Before starting, you need to modify the configuration files of each module to ensure that the user name and password of the database are correct. The following is the configuration file path for each module.

Aggregator/ home/work/aggregator/config/cfg.jsongraph / home/work/graph/config/cfg.jsonhbs / home/work/hbs/config/cfg.jsonnodata / home/work/nodata/config/cfg.jsonapi / home/work/api/config/cfg.jsonalarm / home/work/alarm/config/cfg.json

Start

Cd $WORKSPACE./open-falcon start

# check the startup status of all modules

. / open-falcon checkfalcon-graph UP 3020falcon-hbs UP 3030falcon-judge UP 3039falcon-transfer UP 3045falcon-nodata UP 3051falcon-aggregator UP 3058falcon-agent UP 3067falcon-gateway UP 3073falcon-api UP 3079falcon-alarm UP 3092

Deploy the front end

Clone the front-end component code

Cd $WORKSPACEgit clone https://github.com/open-falcon/dashboard.git12

Install dependency packages

Yum install-y python-virtualenvyum install-y python-develyum install-y openldap-develyum install-y mysql-develyum groupinstall "Development tools"

Install python dependent environment

# download ez_setup.py

Wget-no-check-certificate https://bootstrap.pypa.io/ez_setup.pypython ez_setup.py-insecure

# download pip

Wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz

# decompress and install

Tar xf pip-9.0.1.tar.gzcd pip-9.0.1python setup.py install

# Test, view the version

Pip-V

# pip installation Software

Cd / home/work/open-falcon/dashboardpip install-r pip_requirements.txt

Modify the dashboard configuration file, change the user name and password of the database to ensure that dashboard can connect to the database.

Vim / home/work/open-falcon/dashboard/rrd/config.py

Start

Bash control start

When you visit the website http://IP:8081, you need to register a user as soon as you log in. The first account with the user name root will be considered as a Super Admin, and the Super Admin can set other users as administrators.

This is the end of the content of "how to deploy Open-Falcon monitoring system under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report