码迷,mamicode.com
首页 >  
搜索关键字:zabbix agent    ( 9591个结果
zabbix msmtp(shell)
#!/bin/bash ################################################################################ #Zabbixextensions(C)2011-*JosephBueno<zabbixextensions@aperto.fr> #PublishedunderGNUGeneralPublicLicenseversion2orlater. #SeeLICENSE.txt #--------------------..
分类:其他好文   时间:2014-10-01 02:05:00    阅读次数:426
zabbix监控varnish(shell)
#!/bin/bash /usr/local/bin/varnishstat-1>/tmp/varnish.$$ awk‘{ printf("%s:%s",$1,$2) }‘/tmp/varnish.$$ rm-rf/tmp/varnish.$$Usage:Asrootsetupacronjob:*****/usr/local/varnish/bin/varnishstat-1>/tmp/varnishstatAddanuserparametertozabbix:UserParameter=..
分类:其他好文   时间:2014-10-01 01:30:20    阅读次数:245
zabbix批量添加脚本(shell)
#!/bin/bash PROGNAME=$(basename$0) #####Helperfunctions functionusage { echo"ThisscriptaddsWEBchecksfromafiletoazabbixhostbyinputtingtheurlsdirectlyintothedatabase." echo"USEWITHCARE!!" echo"" echo"usage:${PROGNAME}" echo"" echo"MySQLconnectionoptions:" ..
分类:其他好文   时间:2014-10-01 00:59:01    阅读次数:740
zabbix配置邮件报警
脚本接收action传来的参数,比如eventid,hostname,triggerid等等,脚本会根据这些信息,去zabbix_get一些数据(比如load,memory,top等),再组合成html。最后通过脚本中的邮件程序发送。机器上放个脚本来发邮件,它接受一些参数,比如eventid,hostname等,然后脚本来进行..
分类:其他好文   时间:2014-10-01 00:58:50    阅读次数:349
zabbix自动安装server(shell)
#!/bin/bash DBUSER=‘root‘ DBPASS=‘‘ DBHOST=‘localhost‘ ZBX_VER=‘2.0.1‘ functioncheckReturn{ if[$1-ne0];then echo"fail:$2" echo"$3" exit else echo"pass:$2" fi sleep3 } cat<<"eof" ===RUNATYOUROWNRISK=== DONOTRUNONEXISTINGINSTALLATIONS,YOU*WILL*LOS..
分类:其他好文   时间:2014-10-01 00:58:00    阅读次数:363
zabbix监控JVM
1.修改jmx的配置2.tomcat开启jmx功能agent配置tomcatJMXRemotejar二进制包,放在tomcat/lib下面.修改tomcatserver.xml配置文件<ListenerclassName="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"rmiRegistryPortPlatform="12345"rmiServerPortPlatform="12346"/&g..
分类:其他好文   时间:2014-10-01 00:57:10    阅读次数:407
zabbix自动安装agent(shell)
#!/bin/bash #./zabbixagent.sh172.16.103.16172.16.103.134 #$1masteraddress,$2local_listen_ip groupaddzabbix&&useraddzabbix-gzabbix cat>>/etc/services<<EOF zabbix-agent10050/tcpZabbixAgent zabbix-agent10050/udpZabbixAgent zabbix-trapper1..
分类:其他好文   时间:2014-10-01 00:41:30    阅读次数:209
zabbix监控mysql(perl)
1.yuminstallperl-libwww-perlyuminstallperl-File-Whichyuminstallperl-DBD-MySQLyuminstallperl-Digest-SHA1yuminstallperl-Time-HiResyuminstallperl-Crypt-SSLeay2.测试#!/usr/bin/perl-wuseDBI;my$database="mysql";my$hostname="localhost";my$data_source="DBI:mysql:$d..
分类:数据库   时间:2014-10-01 00:41:10    阅读次数:329
zabbix监控mysql
默认mysql监控模版安装方法:vim/usr/local/etc/zabbix_agentd.confUserParameter=mysql.ping,mysqladminping|grep-caliveUserParameter=mysql.version,mysql-VUserParameter=mysql.status[*],echo"showglobalstatuswhereVariable_name=‘$1‘;"|mysql-N-uroot|awk‘{print$$2}‘Us..
分类:数据库   时间:2014-10-01 00:40:50    阅读次数:274
zabbix sendmail(python)
#!/usr/bin/python #coding:utf-8 importsmtplib fromemail.mime.textimportMIMEText importsys mail_host=‘smtp.163.com‘ mail_user=‘username‘ mail_pass=‘password‘ mail_postfix=‘163.com‘ defsend_mail(to_list,subject,content): me=mail_user+"<"+mail_user+"@"+mail..
分类:编程语言   时间:2014-10-01 00:25:10    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!