How to quickly implement monitoring of Linux servers?
Almost all developers who have done server monitoring know that Zabbix and Nagios are open source solutions that provide system monitoring and network monitoring capabilities, and are more experienced. Not long ago, this market ushered in a new member of the ONEAPM servers--local server monitoring field of the rising star.
OneAPM Servers is a commercial-grade solution, but like two veteran players, it's completely free. Today, we compare the installation deployment process of these 3 monitoring software for how to quickly implement Linux server monitoring:
One, Nagios monitoring Linux server
Nagios is an open-source, free network monitoring tool that effectively monitors Windows, Linux and Unix host status, network settings such as switch routers, printers, and more. Of course, if you want to install a remote Linux server, Nagios needs to install the following components:
Nagios: Main program
Nagios: Plugins
Nrpe: Monitoring the required plugins for Linux hosts
You need to establish Nagios users and groups before you install.
Installing Nagios
You need to unzip the downloaded Nagios main program and compile it on the Linux machine. After compiling, make sure that the following subdirectories are present in the/usr/local/nagios directory, and that their owner is the Nagios user and group.
bin etc include libexec share
Configure Apache
The Yum-loaded Apache itself does not require much configuration, and the make install-webconf during Nagios's compilation is the configuration file that generates nagios.conf under/etc/httpd/conf.d/. will automatically help you configure the Nagios portion of Apache.
However, Apache's running users and groups must also be configured for Nagios.
You also need to configure the Nagios directory with user permissions to ensure that authorized users can access the Nagios page.
Installing Nrpe
After compiling the downloaded Nrpe, configure the /usr/local/nagios/etc/nagios.cfg
server IP to be monitored in the file, /usr/local/nagios/etc/objects/commands.cfg
configure the Check_nrpe command to get the data from the monitored host.
Configuring the monitored side
Install Nagios-plugin and Nrpe on the monitored Linux servers, and then /usr/local/nagios/etc/nrpe.cfg
allow the Nagios server host to access this machine resource.
second, Zabbix monitoring Linux server
Zabbix is also an enterprise-class open source solution that provides distributed system monitoring and network monitoring capabilities based on a WEB interface. In contrast, Zabbix's installation deployment is much simpler than Nagios, which requires the deployment of the following three components:
Server: Refers to the installation of Zabbix service servers, is the most core components, mainly installed on the Linux system, the use of MySQL storage monitoring data. You can independently monitor the service status of a remote server, or you can use it with the Zabbix Agent to passively accept the data it sends.
Agent: Refers to the Zabbix agent installed on the monitored device, and the data on the monitored device is collected, collated and presented by the unified upload to the server side.
Installation Configuration MySQL
After the MySQL database is installed, the Zabbix database needs to be built:
MySQL>create database zabbix; MySQL>use zabbix; MySQL>source /tmp/zabbix-1.1.6/create/mysql/schema.sql MySQL>source /tmp/zabbix-1.1.6/create/data/data.sql MySQL>source /tmp/zabbix-1.1.6/create/data/images.sql
Installation Configuration Zabbix
Unzip, after compiling the downloaded Zabbix package, copy the configuration file misc/conf/*.conf
to the /etc/zabbix
directory and copy the control file to the misc/init.d/redhat/*ctl
Zabbix master directory /bin
.
If the server side, need to modify /etc/zabbix
in zabbix_server.conf
, zabbix_trapper.conf
two files, modify the path, IP, port, database and other information.
If the agent side, you need to modify the /etc/zabbix
zabbix_agent.conf
zabbix_agentd.conf
two files, configure the server IP, port and other information.
After that, you can start zabbix_agentd_ctl
zabbix_suckerd_ctl
the Server by starting the agent.
Install the WEB environment
Finally, you need to configure the Web script environment on the Server side, copy the frontends/php
directory's script to the Web file directory, and modify include/db.inc.php
the database connection information in.
This will allow you to see the list of servers:
650) this.width=650; "alt=" ZABBIX,NAGIOS,ONEAPM Servers Installation Deployment big battle "Src=" http://news.oneapm.com/content/images/2015/07 /--1-5.png "/>
Third, OneAPM Servers monitoring Linux Server
Finally, we should look at this "rising Star" performance. OneAPM Servers is a leading enterprise in the field of application performance management OneAPM server monitoring products, through the observation and analysis of key system parameters, including CPU utilization, physical memory, network activity, process, disk utilization and capacity, etc., to show the current server health status.
650) this.width=650; "alt=" ZABBIX,NAGIOS,ONEAPM Servers Installation Deployment big battle "Src=" http://news.oneapm.com/content/images/2015/07 /qq--20150720163034.png "/> Installation steps are as follows:
Sign in to OneAPM account, click "Server Monitoring" in the menu bar, select "Add Server" in the upper right corner of the page.
After entering the installation page, download the OneAPM Servers installation package
Installing OneAPM Servers
Run OneAPM Servers
650) this.width=650; "alt=" ZABBIX,NAGIOS,ONEAPM Servers Installation Deployment big battle "Src=" http://news.oneapm.com/content/images/2015/07 /qq--20150720163129.png "/>650" this.width=650; "alt=" ZABBIX,NAGIOS,ONEAPM Servers Installation Deployment big battle "Src=" http:// News.oneapm.com/content/images/2015/07/qq--20150720163237.png "/>
Wait 5 minutes for your application to send application performance data to OneAPM and start using OneAPM app performance management. It is not hard to believe that the OneAPM Servers is much simpler than Zabbix and Nagios in the installation deployment.
In addition, you can use OneAPM application Monitoring Application Insight, browser-side monitoring browser insight, mobile application monitoring and other products to achieve a one-stop-all-round solution to achieve multi-dimensional comprehensive monitoring.
This article is compiled and collated by OneAPM engineers. OneAPM is an emerging leader in application performance management, enabling enterprise users and developers to easily implement slow program code and real-time crawling of SQL statements. To read more technical articles, please visit the OneAPM official blog.
This article from "Du Haiqiang" blog, declined reprint!
ZABBIX,NAGIOS,ONEAPM Servers Installation Deployment