Zabbix, Nagios, and OneAPMServers

Source: Internet
Author: User

Zabbix, Nagios, and OneAPMServers
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 the downloaded nrpe, go to/usr/local/nagios/etc/nagios. configure the server IP address to be monitored in the cfg file, in/usr/local/nagios/etc/objects/commands. configure the check_nrpe command in cfg to retrieve data from the monitored host.

Configure the monitored end

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

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, compile the downloaded Zabbix package, and set the configuration file misc/conf /*. copy the conf file to the/etc/zabbix directory and set the control file misc/init. d/redhat/* ctl copy to Zabbix home directory/bin.

For the server, modify the zabbix_server.conf and zabbix_trapper.conf files in/etc/zabbix to modify the path, IP address, port, database, and other information.

For the agent, modify the zabbix_agent.conf and zabbix_agentd.conf files in/etc/zabbix, and configure the Server IP address and port.

Then you can use zabbix_agentd_ctl to start the agent and zabbix_suckerd_ctl to start the Server.

Install Web Environment

Finally, you need to configure the Web script environment on the Server, copy the scripts in the frontends/php Directory to the Web file directory, and modify the database connection information in include/db. inc. php.

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:

Register and log on to the OneAPM account. Click "server monitoring" in the menu bar and select "Add Server" in the upper-right corner of the page 」. On the installation page, download the OneAPM Servers installation package to install OneAPM Servers and run OneAPM Servers.

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.

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.