Zabbix usage method and command line to obtain the value

Source: Internet
Author: User

Zabbix is used. All our values are obtained by zabbix. Sometimes you need to know the value at this moment. For example, I want to know that Apache has several processes. I have to wait until zabbix updates the data to know several processes. In this case, we can use commands. For example, Apache has several processes.

1. Use Zabbix to obtain the number of Apache Processes
# Cd/usr/local/zabbix/bin
#./Zabbix_get-s192.168.50.240-p10050-k "net. tcp. service [http]"

Zabbix command explanation:
Zabbix_get is nothing to say, that is, the command to get a value.
-S: the IP address you want to query, either local or remote.
-Pzabbix_agentd Port
-Kkey Value
1 is the result we get, indicating that Apache is available.

2. Use Zabbix to obtain the number of FTP processes, or to check whether FTP is enabled.
# Cd/usr/local/zabbix/bin
#./Zabbix_get-s192.168.50.240-p10050-k "net. tcp. service [ftp]"

Command explanation:
Zabbix_get is nothing to say, that is, the command to get a value.
-S: the IP address you want to query, either local or remote.
-Pzabbix_agentd Port
-Kkey Value
0 indicates that ftp is not available. Because I have not installed ftp.

Iii. Use other Zabbix
The usage is similar. You only need to write your key value. Pay attention to the following parameters:-s,-p,-k. To learn more about zabbix, follow http://hi.baidu.com/ostech.

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.