zabbix custom script

Want to know zabbix custom script? we have a huge selection of zabbix custom script information on alibabacloud.com

Zabbix Custom LLD

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

Custom Zabbix Monitoring Scripts

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

Zabbix using a script to send an out-of-network message alert (MSMTP + mutt)

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

about using the PS command in the ZABBIX monitoring script to monitor process CPU usage and memory usage to get a description of the 0 data

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

Zabbix monitoring MySQL Custom scripts how to get rid of annoying warning feedback

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 Call sendsms.py script, unable to send SMS

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])

Zabbix Monitoring Nginx_status Auto Discovery Script

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

Zabbix Unified Script Monitoring mode

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

MySQL backup script (contains Zabbix database)

/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,

Zabbix's Custom key (10)

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

Lnmp+zabbix One-click installation script

;>${log}2>1/etc/init.d/mysqldstart|tail-n1check_service mysqld "/etc/init.d/mysqldstart" Chkconfigmysqldonmysqladmin-urootpassword redhat#installzabbIxyum-yinstallnet-snmpnet-snmp-devellibxml2-devellibcurl-devel> >${log}2>1tar-zxvf${path}/zabbix-2.0.14.tar.gz-c${path}>>${log} 2>1cd${path}/' Tar-zxvf${path}/zabbix-2.0.14.tar.gz|head-n1|awk -F/ ' {print$1} ' zabbix_install= ' ${path}/' tar-zxvf${path}/

Zabbix 2.4 Install script under the OS of Ubuntu

#!/bin/bashecho "-----------------------start install Zabbix----------------------"wget Http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.debDpkg-i Zabbix-release_2.4-1+trusty_all.debApt-get UpdateApt-get--missingApt-get Inst

Resolve Zabbix "zbx_notsupported:timeout while executing a shell script" error

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

Create Zabbix screen (aggregate graphics) using a Python script.

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

Zabbix custom key value monitoring

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

Zabbix Windos MySQL Monitoring script

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

Zabbix Simple checks Monitoring custom ports

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

Zabbix Mail Alert Python script code

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=["

Use Python to write a script that monitors MySQL, customizing the template on the Zabbix web

Tags: python script custom Zabbix monitor module# #先使用MySQLdb的接口关联数据库. [[Emailprotected]python]#catcheck_mysql_custom.py#!/usr/local/bin/python '] Author =chenmingle "" Description:getmysqlstatus "importosimportsystry: importMySQLdbasmysqlexceptException,e: printeprint "Pipinstallmysql-python" Sys.exit (1) con=mysql.connect (host= ' localhost ', user= ' root ',

Zabbix Monitoring System _ Monitoring collection script use share

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

Total Pages: 7 1 .... 3 4 5 6 7 Go to: Go

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.