Zabbix Custom execute remote command and Rating report alert exampleThe detailed option description refers to the previous content, where only the operation process is demonstrated.Precautions:OperationSend MessageMedia TypeEmail, SMS, Jabber, Script, EZ textingUserRemote command(1) Define sudo rules for Zabbix;
.jpg "/>Such a simple key is defined as complete. Of course, this key in the Zabbix comes with the key can also achieve this function, just for demonstration. Zabbix's own key is already very powerful and it has all the basic items that need to be monitored. You can go directly to the relevant documents!Custom key scripts are not language-restricted, as long as the data can be returned!such as: userparamete
"/>1.2 Items, calculation method, select "and" (see actual need) "new trigger conditions, host = XXX (select the above steps to create the host)" Add650) this.width=650; "title=" condition.jpg "src=" http://s2.51cto.com/wyfs02/M00/76/53/ Wkiol1zpm2yco8fiaai7wisyr9o164.jpg "alt=" Wkiol1zpm2yco8fiaai7wisyr9o164.jpg "/>1.3 operation, "new" "Stage" (from ...) To, how many times, step duration), operation type Select Remote command1.3.1 Target list, "new" target Select "Host", (select the host creat
Zabbix Monitor nginx,php-fpm and MySQL memory usage and number of processes with custom scriptsFirst, add a script under the Zabbix script directory and write the following code#!/bin/bash#license: GPL#mail: [Email protected]#date: 2015.04.16Top-bn1>/usr/local/
The last article (Zabbix distributed Server monitoring system installation and deployment (I) records the installation and deployment of the entire Zabbix System, including the Server and client segments, this article mainly describes how to install and configure the custom monitoring metrics of Zabbix. Because I only
key.]
Seek the guidance of the great God ....
Reply content:
To do a very simple collection system memory usage monitoring, according to the various information on the Internet to obtain the method as follows:Modify several configurations in the zabbix_agentd.conf
UnsafeUserParameters=1UserParameter=mem.usage,/usr/bin/free -m |grep Mem | awk '{print $3}'
Then Zabbix_agentd-t Mem.usage, return the error
mem.usage [m|ZBX_NOTSUPPORTED] [Unsupported item key.
Share a custom Zabbix alarm script that is used on the line, and the script idea is roughly as follows:1. Use the crawler to get the alarm picture (if you want to get the alarm item)2. Integrate images with email content3. Send mail4. LoggingThe script reads as follows:#!/us
1. Use a script to obtain information about the number of TCP connections parameters
vim/usr/local/zabbix/etc/tcp_connections.sh #!/bin/bash #netstat-an | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, S[a]} ' | Grep-w "established" |cut-d ""-f2 #netstat-an | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, S[a]} ' | Grep-w "time_wait" |cut-d ""-f2 #netstat-an | awk '/^tcp/{++s[$NF]} END {for (a in S) p
Tags: monitoring custom nginx template zabbixAfter zabbix is installed, the template that comes with zabbix can only monitor cp, memory, hard disk usage, and so on. Next we will talk about how to use zabbix to monitor the nginx process of the server.Zabbix client: 192.168.10.2Zabbix server: 92.1610.1Zabbix client setti
Zabbix needs to be customized to add RABBITMQ monitoring to respond to RABBITMQ problems in a timely manner, so a zabbix_agented.conf is added#UserParameter =rabbitmq,rabbitmqctl status >/dev/null echo ' 0 ' | | Echo ' 1 'Then restart the agent test#/usr/local/zabbix/sbin/zabbix_agentd-t RABBITMQShow results asRABBITMQ [T|0]However in the server break test#./zabbix_get-s "IP"-K RABBITMQThe resulting return
Project:1. Automatically discover the Nginx scheduler and the backend Apache built Web services cluster;2. Use custom parameters to monitor the data and rate of Nginx service on the scheduler;3. Use custom parameters to monitor the relevant statistics and rate data of the back-end Apache Service (optional)4. Develop a monitoring template for the Nginx Scheduler and the backend Apache service, defined in the
. argv [1] = "io ":
Print mysql. get_io_status ()
Elif sys. argv [1] = "SQL ":
Print mysql. get_ SQL _status ()
2. Configure zabbix_agent.conf and add the Key and monitoring script:
Vi/usr/local/zabbix/etc/zabbix_agentd.conf. Add the following two lines at the end of the file:
UserParameter = mysql. repl_io,/usr/local/zabbix/bin/check_mysql_repl.py io UserPar
Custom monitoring Items (monitor site 80 connections)
Requirements: Monitoring a web of 80 port connections, and out of the picture;
The first step: client creation Script:The client-side definition script, and edit the zabbix-agent configuration file implementation run the definition of the script;Client
#-----------------------------------------------# # Zabbix default does not run with root user #createuserzabbixgroupaddzabbixuseradd-gzabbixzabbix# createdefaultdatabasezabbixuser=rootpassword=123456mysql-u$user-p$password -e "createdatabasezabbixdefaultcharsetutf8;" #if proxy,justschema.sqlmysql-u$USER-p$PASSWORDzabbixAt this point, the installation started to complete, the browser opened Http://localhost/zabbix
Zabbix has become an excellent monitoring tool because of two features: data storage, convenient data processing, capacity planning, archiving, etc. Another is its powerful api, which can be easily integrated with other components. For example, cmdb can add, update, and disable monitoring through zabbix api, the official documents of zabbix provide a detailed lis
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.