Zabbix, Nagios, OneAPM Servers installation and deployment competition, zabbixnagios

Source: Internet
Author: User

Zabbix, Nagios, OneAPM Servers installation and deployment competition, zabbixnagios
How to quickly monitor Linux servers?

Developers who have worked on server monitoring almost all know Zabbix and Nagios. They are all open-source solutions that provide system monitoring and network monitoring functions, and are relatively old. Not long ago, this market ushered in a new member OneAPM Servers, a rising star in the local server monitoring field.

Although OneAPM Servers is a commercial solution, it is completely free of charge like two veteran players. Today, we will compare the installation and deployment processes of these three monitoring software based on how to quickly monitor Linux servers:

Nagios monitors Linux servers

Nagios is an open-source free network monitoring tool that can effectively monitor the status of Windows, Linux and Unix hosts, network settings such as vswitches and routers, and printers. For remote Linux Server Installation, Nagios needs to install the following components:

Nagios:Main Program

Nagios:Plug-ins

Nrpe:Plug-ins required to monitor Linux Hosts

Create a Nagios user and group before installation.

Install Nagios

Decompress the downloaded main Nagios program and compile it on a Linux machine. After compilation, make sure that the following sub-directories in the/usr/local/nagios directory exist. In addition, make sure that their owners are Nagios users and groups.

bin  etc  include  libexec  share

Configure Apache

Apache installed in yum does not require too many configurations. During Nagios compilation, make install-webconf is in/etc/httpd/conf. d/to generate nagios. conf configuration file. It will automatically help you configure the Nagios part of Apache.
However, you must configure the Apache running user and group as Nagios.

In addition, you need to configure user permissions for the Nagios directory to ensure that authorized users can access the Nagios page.

Install nrpe

After compiling and downloading the nrpe/usr/local/nagios/etc/nagios.cfgConfigure the IP address of the server to be monitored in/usr/local/nagios/etc/objects/commands.cfgConfigure the check_nrpe command to retrieve data from the monitored host.

Configure the monitored end

Install nagios-plugin and nrpe on the monitored Linux server, and then/usr/local/nagios/etc/nrpe.cfgAllow the Nagios server host to access the resources of this machine.

Zabbix monitors Linux servers

Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface. Zabbix is much easier to install and deploy than Nagios. It needs to deploy the following three components:

Server:It refers to the server where Zabbix service is installed. It is the core component and is mainly installed on Linux systems. It uses MySQL to store monitoring data. You can monitor the service status of the remote server separately or use it with the Zabbix Agent to passively accept the data sent by the server.

Agent:The Zabbix agent installed on the monitored device. The data on the monitored device is collected and uploaded to the server for collection, sorting, and presentation.

Install and configure MySQL

After installing the MySQL database, you need to create the Zabbix database:

MySQL>create database zabbix;MySQL>use zabbix;MySQL>source /tmp/zabbix-1.1.6/create/mysql/schema.sqlMySQL>source /tmp/zabbix-1.1.6/create/data/data.sqlMySQL>source /tmp/zabbix-1.1.6/create/data/images.sql

Install and configure Zabbix

Decompress the package and compile the downloaded Zabbix package.misc/conf/*.confCopy/etc/zabbixDirectory to control the filemisc/init.d/redhat/*ctlCopy to Zabbix main directory/bin.

If it is a server, you need to modify/etc/zabbixInzabbix_server.conf,zabbix_trapper.confModify the path, IP address, port, database, and other information.

If it is an agent, you need to modify/etc/zabbixInzabbix_agent.conf,zabbix_agentd.confConfigure the server IP address, port, and other information.

Then you can usezabbix_agentd_ctlTo start the agent,zabbix_suckerd_ctlTo start the Server.

Install Web Environment

Finally, you need to configure the Web script environment on the Server, copyfrontends/phpDirectory script to the Web file directory, and modifyinclude/db.inc.phpDatabase connection information in.

In this way, you can see the server list:

OneAPM Servers monitors Linux Servers

Finally, let's take a look at the performance of this "coming soon. OneAPM Servers is a server monitoring product of OneAPM, a leading enterprise in the application performance management field in China. By observing and analyzing key system parameters, including CPU utilization, physical memory, network activity, process, disk utilization, and capacity, to show the health status of the current server.


The installation procedure is as follows:

Wait for 5 minutes and wait for the application to send application performance data to OneAPM to start using OneAPM application performance management. I believe that it is not difficult to find that OneAPM Servers is much easier to install and deploy than Zabbix and Nagios.

In addition, you can use products such as OneAPM Application monitoring Application Insight, Browser-side monitoring Browser Insight, and Mobile Application monitoring Mobile Insight to implement an all-in-one solution, in this way, comprehensive multi-dimensional monitoring is achieved.

This article is compiled by OneAPM engineers. OneAPM is an emerging leader in the application performance management field. It helps enterprise users and developers easily achieve slow real-time crawling of program code and SQL statements. For more technical articles, visit the official OneAPM blog.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.