In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Background
Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities.
Zabbix can monitor various network parameters to ensure the safe operation of the server system, and provides a flexible notification mechanism to enable system administrators to quickly locate / solve various problems.
Zabbix consists of two parts, zabbix server and optional component zabbix agent.
Zabbix server can provide remote server / network status monitoring, data collection and other functions through SNMP,zabbix agent,ping, port monitoring and other methods. It can run on platforms such as Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X.
Advantages of Zabbix:
1 supports distributed monitoring
(2) it has its own drawing function, which can obtain numerical data and generate graphs automatically.
3 Web configuration mode, easy to operate and use. It is very fast to add monitoring items or machines.
When there is an alarm, no matter in any interface, a small window will pop up to give an alarm, and there will be an alarm sound prompt at the same time, at the same time, you can quickly check the monitoring items.
5 it comes with rich built-in functions, and it also supports the call of scripts and nagios scripts.
6 when there is a problem, you can automatically execute the command remotely (you need to set the execution permission on agent)
Disadvantages of Zabbix:
1 it is not convenient to modify in batches, it can be assisted by database.
2 after in-depth, there are very few Chinese materials, most of the questions need to see the official documents and forums.
(3) lack of data summary function, if you can't view the average value of a set of servers, you can consider secondary development.
4 compared with cacti, zabbix has poorer drawing function and more complex traffic acquisition.
API: application programming Interface (API:Application Program Interface)
Application program interface is a set of definitions, programs and protocols, which realizes the communication between computer software through API interface. One of the main functions of API is to provide a common feature set. Programmers can reduce the programming task by calling the API function to develop the application. API is also a kind of middleware that provides data sharing for different platforms.
Depending on the performance of data sharing between different software applications on a single or distributed platform, API can be divided into four types:
Remote procedure call (RPC): communication between programs through procedures (or tasks) that act on shared data buffers.
Standard query language (SQL): a standard query language for accessing data, which realizes data sharing among applications through a database.
File transfer: file transfer enables data sharing between applications by sending format files.
Information delivery: refers to the small formatted information between loosely coupled or tightly coupled applications, which realizes data sharing through direct communication between programs.
Before adding an API, you need to log in, get the login token, then get the token, and then add the server. The script is as follows:
#! / bin/bashhostname='192.168.0.219' # monitored host name ip='192.168.0.219' # monitored host IPport=10050 # monitored host zabbix_agentd port templateid=10001 # template IDgroupid=2 # server group zabbixhost=' http://www to join .zabbix.com'# zabbix host address header='Content-Type:application/json'request_data=' {"jsonrpc": "2.0" "method": "user.login", "params": {"user": "admin", "password": "zabbix"} "id": 1} 'result=$ (curl-s-XPOST-H ${header}-d "${request_data}" ${zabbixhost} / api_jsonrpc.php) token=$ (echo $result | sed's result.\ + "result": "([0-9a-z]\ +\)" save_request_data=' {"jsonrpc": "2.0", "method": "host.create", "params": {"host": "${hostname}'" "interfaces": [{"type": 1, "main": 1, "useip": 1, "ip": "${ip}'", "dns": "", "port": "${port}'"}], "groups": [{"groupid": "${groupid}"}], "templates": [{"templateid": "${templateid}'"}]}, "auth": "${token}'" "id": 1} 'curl-s-XPOST-H ${header}-d "${save_request_data}" ${zabbixhost} / api_jsonrpc.php
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.