The online part of the real-time job is developed with Storm, in order to monitor the delay of the data, the log time is inserted into Redis when the storm processes the log, and then the Zabbix is used to monitor the delay. Because there are often new jobs on-line, manually configuring the monitoring items becomes cumbersome, in order to liberate productivity, still need to make automation.Before adding the network card and partition monitoring when
1. Modify the configuration file/etc/zabbix/zabbix_agentd.conf on the client #为了方便这里是用yum安装的zabbixTwo places to change:
(1) Unsafeuserparameters=1
(2) userparameter=my.net.if[*],/usr/local/sbin/zabbix/net.sh $ #其中UserParameter用来自定义键值, the name can be customized, if you write a script with parameters, Then you need to add [*], this is a fixed notation
1. Installation of MSMTP and MuttRelated software can search the Web on its own1.1, MSMTP InstallationTAR-XF MSMTP-1.6.2.TAR.XZCD msmtp-1.6.2./configureMake make install1.2, Mutt InstallationYum-y Install Mutt2. Configuring MSMTP and Mutt2.1, Configuration MsmtpVim/usr/local/etc/msmtprcAccount DefaultHost smtp.163.com #不同的提供商smtp地址不相同, find your ownTLS offAuth Plain #邮箱验证方式From Xxx@163.com #xxx改为你的邮箱用户名User xxxPassword ****** #输入你的邮箱密码Logfile/var/log/msmtp.log #log路径可以随意定义chmod 600/USR/LOCAL/ET
Tags: Zabbix shell LinuxThe premise: you want to write your own Zabbix monitoring script, and then configure the template to achieve high utilization of resources (CPU and memory) process monitoring.Process Description:The Zabbix version is 2.21 and the host operating system is monitored for CentOS 6.4.The main command
Shell statements that connect data in a scriptMysql_user= ' Zabbix ' mysql_pwd= ' 123456 ' mysql_host= ' 127.0.0.1 "mysql_port= ' 3306 ' mysql_conn= '/usr/local/mysql/bin/ Mysqladmin-u${mysql_user}-p${mysql_pwd}-h${mysql_host} "-p${mysql_port}"It was written in this way, but it will appear warning:using a password on the command line interface can be insecure. This hint, and there is no way to remove it, which causes the
Zabbix calls Python to send SMS messages in a similar way as configuring mail alerts. The procedure references the Zabbix configuration section.The following is a Python script:
[email protected] alertscripts]# cat sendsms.py
#!/usr/bin/python
Import Sys,requests,time
MOBNUM=[SYS.ARGV[1],]
Of=open ("Smslog.log", ' a ')
Of.writelines (Mobnum[0])
On the internet to see a lot of monitoring nginx state, found that most of the configuration is more complex, I also wrote an automatic discovery of the script, welcome to shoot BricksNginx_status specific configuration here is not much to say, here pretend you have been well-equipped!#coding =utf-8importurllib,urllib2,urllib2importsys,jsonurl= "Http://112.124.32.164/nginx_status" li= ["Activeconnections", "Reading", "Writing", "Waiting"]js=[]iflen (S
A few weeks of Zabbix after the use of some experience, temporarily recorded here
Simple command monitoring, directly configure the Userparameter parameters, to apply to classify the Conf file, the configuration of different applications written in different conf files, and put it into a unified configuration introduction directory, each modification will be restarted zabbix-agent Configuration fil
/auto_Backup$rm-rf${hostname}_${date} $FIND $BACKPATH -mtime+7-exec $RM - rf{}\;Description: The above script, Zabbix database alone to carry out, only need to back up the configuration table, do not need to back up historical data, if there is no Zabbix database on MySQL, that a large segment can be commented out, offsite backup needs to set the key-free login,
Custom keyThe configuration file on the Zabbix agent defines user-defined parameters by the user through the Userparameter directiveUserparameter=Example 1 (without parameters)[[email protected] ~]# Vim/etc/zabbix/zabbix_agentd.confuserparameter=system.memory.free,awk '/^memfree/{print/proc/meminfo[[email protected] ~]# systemctl restart
As shown in title, when Zabbix_server uses Zabbix_get to get the data for a custom "userparameter" script, there is an error message shown in title[Email protected] scripts]#/usr/local/zabbix/bin/zabbix_get-s 127.0.0.1-k 8080connectNumZbx_notsupported:timeout while executing a shell script.Solution Solutions(1) Modify Zabbix_server's zabbix_server.conf:[Email pro
Original article: http://11072687.blog.51cto.com/11062687/1739870Recently found an article " Create screen using Zabbix API", and then download the script to test, found two questions:1.3.x version is not supported.2. The host name of the added screen is not arranged in order and is not convenient for querying.I changed it, let's support the zabbix3.x version, and output screen (aggregate graphics) by machi
1. Generally, zabbix can be used for monitoring zabbix. It is also possible to use custom monitoring. See the introduction in zabbix. agentd. conf.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/49/03/wKiom1QNKxPig2jZAAEoONhRuUo521.jpg "Title =" 32.png" style = "float: none;" alt = "wkiom1qnkxpig2jzaaeo
Tags: server Zabbix targe HTML class InStr log span RIPDescription: Determine if the MySQL master process is closed and return 0 if offCreate file: Mysql-ping.vbsSet objFS = CreateObject ("Scripting.FileSystemObject") Set Objargs=WSCRIPT.ARGUMENTSSTR1= Getcommandoutput ("C:\Program files\mysql\mysql Server 5.5\bin\mysqladmin-uroot-pqaz123wsx Ping") If Instr (str1,"Alive") >0 Thenwscript.echo1Elsewscript.echo 0End iffunction getcommandoutput (thecomman
At work, it is possible for the server to open as a service TCP 2333 port, but it cannot operate on this server. Check to see if the TCP 2333 port on this server is on by Zabbix.Thanks to the following seniors!!Zabbix simple checks Basic detection http://www.ttlsa.com/zabbix/zabbix-simple-checks/Zabbix Monitoring Syste
This article describes the Zabbix Mail alert Python script code
#!/usr/bin/python#-*-coding:utf-8-*-"" "Zabbix SMTP Alert script from Qq.auth:json" "" Import sysimport emailimport Smtpl Ibimport osfrom email.mime.text Import mimetextfrom email.mime.multipart import mimemultipart# mail send list to who #mailto_ list=["
Performance testing is always to monitor the server, do the ZABBIX monitoring after the important collection of monitoring data, here to share how I do.Preparing filespython2.7pypa-setuptools.tar.gzinstalling third-party expansion pack ToolsArgparseIt is the recommended tool for writing command -line programs in the Python standard libraryzabbix-img.py from the attachment, or in the SVN directory folderrun.xlsx Generate Execute command Excel functio
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.