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

[community QA] Summary of Q & An on the 38th issue of "expert consultation"

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Q: Hello, I have a similar problem that has not been solved in the previous period. I have some ping monitoring items placed on different hosts. I want to ask how to integrate the alarms of different hosts. For example, more than 3 different hosts will trigger alarms at the same time?

Just add one more piece, and that's about it.

A Le Xiaowei: Do you use ICMP ping here or not?

Q: External script calls fping mode

A: Does it return 0 or 1?

Q: Yes.

A Le Small Dimension: If 1 is passed, 0 is not passed. Suppose I have 10 mainframes. Then you can add up the triggers of all hosts, and if the result is less than 7, the alarm will be triggered. You can try this, or you can ping all hosts at once through the script, and return the number of pings, and then alarm.

Q: Thank you for your thoughts.

Q: Hello, I have to ask you again what is this logic? Thinking about this formula, if one or two of the 10 mainframes have problems, it will trigger. It is also the same after trying.

A Le Xiaowei: I'll test it, wait a minute

A Le small dimension: environment: 5 test machines, 1 is down, using icmp ping template.

1. In case of testing a down, it is expected to trigger an alarm, and the result is to trigger an alarm.

If the trigger is modified to two sets of down, the alarm will be triggered. It is expected that the alarm will recover, and the result is alarm recovery.

I tested it here. Here's the process and the result. Why don't you try again?

Q: OK, let me digest it, thank you.

Q: How does zabbix monitor kafka? A Le Xiaowei: zabbix monitoring kafka, here is a reference link: file://C:\Users\admin\AppData\Roaming\Tencent\QQTempSys\%W@GJ$ACOF(www.lwops.cn/forum.php? mod=viewthread&tid=136&highlight=br/>A Le Xiaowei: zabbix monitoring kafka, here is a reference link: file://C:\Users\admin\AppData\Roaming\Tencent\QQTempSys\%W@GJ$ACOF(www.lwops.cn/forum.php? mod=viewthread&tid=136&highlight=

Q: Hello, teacher. Can you help me look at it later? What is the reason why I haven't obtained the ifInDiscards data obtained according to oid?

A: You snmpwalk and send it out to see

Q: I manually changed the value of position 375 here.

A: After the change, what is the query again?

Q: The result is 0, that is, the result before the change, I feel that it has not been refreshed

A: Your problem is not very clear. It is recommended that you use zabbix server snmpwalk to send a screenshot corresponding to oid, and then send a screenshot corresponding to the problem monitoring item.

Q:

A Le Xiaowei: The result you modify is text data, which will not modify the information on the device.

Q:

Q: Is it because the modification is only text data?

A Le Xiaowei: Try using IF-MIB::ifName to see, change ifdescr to ifname

A: It doesn't feel like only text data has been modified

Q: I am monitoring through SNMP protocol. The latest data in the monitoring is refreshed every 30 seconds. Does it mean that data will be obtained according to oid every 30 seconds? Ask God for guidance.

A: Yes, the server fetches data from the device every 30 seconds

Q: What does this update interval mean? file://C:\Users\admin\AppData\Roaming\Tencent\QQTempSys_A~_C_F`%IP6P74Q9KE%$%5.gif

A Le Xiaowei: Enter zabbix, manage--users--click on their own users (such as zabbix)--there is a refresh below, the default 30s refresh page. It has nothing to do with you getting data from OID.

Q: Oh, is the interval of obtaining data according to oid or according to the update interval in the monitoring item?

A le small dimension: yes, zabbix according to OID to obtain data interval, yes to see the monitoring item

Q: OK, thank you teacher, according to oid to get the physical address of the monitoring item, zabbix can only display the obtained value, can you modify the obtained value?

A Le small dimension: can be modified, click the monitoring item/monitoring item prototype, you can see there is a 'process', where we can obtain the value of processing

Q: Teacher, what does this change every second mean?

A Le Small Dimension: Change Yes Value Per Second Difference the last two values obtained for your monitored item and divide by the acquisition period. Group files have zabbix3.4 Chinese manual, you can download to see

Q: I know. The previous one was chosen to change every second, so it was always 0. Thank you, teacher.

Q: Great God, I would like to ask how to write SQL statements to obtain the latest values of all monitoring items with host name AAA (all four data types).

A: Query directly from the database?

Q: Yes, if there is a demand, you need to query from the database. I don't know how to integrate this kind of historical data into four tables. You can query the data of a single historical table. If you combine one more historical table, you can't do it.

A Le Xiaowei: This SQL can't be written

Q: How do you solve this error?

A Le Xiaowei: yum install -y mysql-devel, try

Unresolved issues in this period:

Big shots, after compiling the installation times wrong, where is the problem? zabbix4.0

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

Servers

Wechat

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

12
Report