Zabbix pre-defined some key in the template, but the usual situation does not meet our needs. Fortunately, Zabbix provides a way to customize the key, so we have the flexibility to monitor the various data we want to monitor. Defining a configuration fileThe zabbix-agent configuration file path installed through Yum is/etc/za
before writing an article mainly introduces the construction of Zabbix use http://msiyuetian.blog.51cto.com/8637744/1705396This article mainly introduces the script implementation of Zabbix custom monitoring network card trafficPre-preparation
1. DescriptionServer ip:192.168.0.115Client ip:192.168.0.1142. Open Se
Note: To add custom script monitoring, you must upgrade the Zabbix Agent version to 2.0.0 or more,One: Configuration steps1. Finish writing the custom monitoring script (Windows or Linux scripts)Script Requirements:(1) since it is
The error is as follows:[Email protected] scripts]#/usr/local/zabbix/bin/zabbix_get-s 127.0.0.1-k web.site.code[www.baidu.com]timeout While executing a shell scriptSolve:Vim zabbix_server.confAdjust the following time-out (restart server)# # Option:timeout# Specifies how long we wait for the agent, SNMP device or external check (in seconds).## Mandatory:no# range:1-30# Default:# timeout=3Timeout=30Vim zabbix_agentd.conf# # Option:timeout# spend no mor
MySQL Custom monitoringRequirements: The company needs to do MySQL data monitoring, the status of MySQL, traffic monitoring.Analysis: Zabbix automatically has template App MySQL template, we can only add MySQL monitoring script to achieve custom monitoring.The configuration is as follows:Zabbix service-side build, here
Tags: Zabbix oracle Orabbix Script Auto DiscoveryAs the company to the Oracle database, need to wake up to monitor this thing, so go to the online Amoy data, found that there is a suite Orabbix monitoring Oracle's effect is good, and then took to test a bit. Orabbix is a suite written by Java that needs to be installed on the Oracle server to run the Java environment. For simplicity, the Java environment ca
] "0thatsit:~ ##4, on the web side, add this monitoring item to the pointing host. The key of the monitoring item is:net.tcp.listen.grep[the port number to monitor]#5, configuration complete, troubleshooting ideas This configuration has been completed, if there is a problem, you can follow the following ideas to troubleshoot, the general problem in the log can be found in the clues.# Troubleshooting Ideas:There are a few things to note when adding a key: Note the owner or group configuration of
:58677Accepted conn:10753843Listen queue:0Max Listen queue:0Listen Queue len:0Idle processes:249Active processes:1Total processes:250Max Active processes:251Max Children reached:0Slow requests:4264: Write a script to get the status of FPMMonitoring Scripts (/usr/local/zabbix/check_fpm.sh):
#!/bin/sh #20170603 fpm status #curl 127.0.0.1/php_fpm_status #pool: www #process manager:static #start time:
When debugging Zabbix, forget the password can be reset by the following method.
First SSH to the Zabbix database server, and then log on to the MySQL database.
Mysql-u root-p
The Zabbix password is stored in the database zabbix,table users and is encrypted in MD5.
Use MD5 to make a secret key.
Echo-n abc,123. | Ope
replication synchronization (replication) is started, it is successful only when the following two conditions are met:
Slave_IO_Running: YesSlave_SQL_Running: YesScript 1
Create a script file, mysqlms. sh
#!/bin/bash/usr/local/mysql/bin/mysql -uzabbix -e 'show slave status\G' |grep -E "Slave_IO_Running|Slave_SQL_Running"|awk '{print $2}'|grep -c Yes
Place it in a directory (with permission required). Put it in/etc/
There is a notification queue, if you exceed a certain value, you need to call the policeThe query interface can return the number of queues, in the form of the number of json,data followed by the number of queues{"Code": 0, "message": "Success", "Data": 22}Edit the configuration file in the Zabbix client zabbix_agentd.confVim/usr/local/zabbix-agent/zabbix_agentd.confAdd Blue SectionLogfile=/tmp/zabbix_agen
From the first day of installation, there will inevitably be questions about the poor use of the default monitoring template, or there is no such thing as what to do? It doesn't matter. Like Nagios, zabbix can customize monitoring items, including alarm rules and views.
Add a custom Monitoring Project:
Before the operation, you need to know the principle: the principle is that the server calls the
The production environment on the line of more than one Linux server, the need to all into the Zabbix monitoring category, a Taiwan to install Zabbix Agentd plug-ins that is too hard, fortunately Zabbix client plug-in is to support the green installation, wrote a simple one-click installation script, and then cooperate
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.