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

Summary of Zabbix zabbix_get and Item

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

What is zabbix_get?

Zabbix-get is a program in Zabbix, which is used for data acquisition from zabbix-Server to zabbix-agent. It can usually be used to detect and verify whether the configuration of agent is correct, similar to nagios's. / check_nt and other monitoring tools.

Zabbix_get function?

1) Test data on Server side and Agent side

2) determine some fault problems, or get the specified data.

Zabbix_get format:

[root@loganalyzer bin] # / zabbix_get-husage: zabbix_get-s host-name-or-IP [- p port-number] [- I IP-address]-k item-key zabbix_get-h zabbix_get-VGet data from Zabbix agent.General options:-s-- host host-name-or-IP Specify host name or IP address of a host- p-- port port-number Specify port number of agent running on the host (default: 10050)-I-- source-address IP-address Specify source IP address-k-- key item-key Specify key of the item to retrieve value for-h-- help Display this help message-V-- version Display version number Example (s): zabbix_get-s 127.0.0.1-p 10050-k "system.cpu.load [all Avg1] "

Detailed description of basic parameters of zabbix_get:

-s-- host: specify the client hostname or IP

-p-- port: client port. Default is 10050.

-I-- source-address: specify the source IP and write the ip address of zabbix server, which is generally left blank. If the server has multiple ip, you can specify one.

-k-- key: the key you want to get

-h-- help help

-V-- version version

Case of obtaining information by zabbix_get:

1) obtain the load of the specified CVM CPU within five minutes

[root@loganalyzer bin] #. / zabbix_get-s 192.168.1.245-p 10050-k 'system.cpu.load [all,avg5] '0.350000 [root@loganalyzer bin] #

2) item case:

2.1) the meaning of Item attribute: (take 3.0 as an example)

Attribute description name monitor item item name type item type (common agent, SNMP, agent (active), etc.) Key monitor item item key, click select to see many of the system's own key, you can also see the user-defined key. Host interface host interface, such as agent, SNMP, impi and other information types are defined according to the project to be monitored.

Data types General Decimal Units by default, if the original value exceeds 1000, it will be divided by 1000 and displayed.

If the unit is specified as B (byte), it is divided by 1024 before the data is displayed. Therefore, do not use the wrong units when monitoring traffic and file size, otherwise there will be data inconsistencies.

Custom multiples enable this option, and all received integers or floating-point numbers are multiplied by the values in this text box. Using this option, zabbix will first convert the received data such as KB,MBps to BMageBps. Otherwise, zabbix will not set the prefix correctly (KJM, GHG, etc.). Data update interval Note: if set to 0, this data will not be updated forever. But if a non-zero interval is set in the flexible update interval (flexible interval), then the custom interval eg is based on this interval:

1-5 lemon 11 00-19:00, which means that the data is updated every ten seconds from 10:00 to 19:00 from Monday to Friday. The default value is used the rest of the time and will not be updated. Item is not applicable in zabbix active mode.

The historical data is retained by default, and the number of days of historical retention. The trend data store default day storage value involves calculating the formula to view the value value mapping, and you need to configure a mapping table that maps numbers to characters. The new application creates a new application set eg:cpu, disk, network, and the monitoring item can belong to multiple application host asset record automatic mode data automatically populated into the corresponding attribute description of the inventory asset list.

Zabbix custom key (template is placed in Github)-process monitoring

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

Network Security

Wechat

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

12
Report