通过shell抓取mysql应用的CPU、内存负载vidbload.sh#!/bin/bashDate=date+"%Y-%m-%d%H:%M:%S"Datee=date+%Y-%m-%dSe=/bin/hostnameCp=/bin/psaux|grep‘mysql.sock‘|head-n1|awk-F[:""]+‘{print$
分类:
数据库 时间:
2019-05-22 15:45:46
阅读次数:
141
icinga2使用check_snmp_idrac.py监控DELL硬件状态:gitclonehttps://github.com/pynag/pynag.gitcdpynagpythonsetup.pybuildpythonsetup.pyinstallyuminstallnet-snmp-develnet-snmp-pythonhttps://github.com/rsmuc/health_m
分类:
其他好文 时间:
2019-01-17 23:43:27
阅读次数:
307
prometheus+node_exporter监控系统搭建:注:可结合icinga2、telegraf一起用,DiskIOs、DiskThroughout是前2个没有的,traffic监控也可用这个参考网址:http://blog.51cto.com/youerning/2050543下载网址:https://prometheus.io/download服务器端:tarzxfvprometheu
分类:
其他好文 时间:
2018-09-14 23:56:52
阅读次数:
1075
icinga2check_mysql_health插件https://labs.consol.de/nagios/check_mysql_health/#tarzxfvcheck_mysql_health-2.2.2.tar.gz#cdcheck_mysql_health-2.2.2#./configure#make#makeinstall#cp-rv/usr/local/nagios/libexec/check_mysql_health/usr/lib64/nagios/plugins/#chmod+x..
分类:
数据库 时间:
2017-10-31 23:47:35
阅读次数:
246
通过icinga2监控服务器的top(CPU)信息,主要为cpuiowait值插件下载网址(复制内容改名为check_iostat_cpu,以便和另1个监控硬盘IO的check_iostat区分):http://www.ofn.dk/files/software/check_iostat使用(不用加任何参数):#/usr/lib64/nagios/plugins/check_iostat_cpu..
分类:
其他好文 时间:
2017-09-14 10:24:54
阅读次数:
208
icinga2对特定服务设置专门发邮件策略(如mysql、web等):#vi/etc/icinga2/conf.d/timeperiods.conf(也可以新建个TimePeriod)objectTimePeriod"9to5"{import"legacy-timeperiod"display_name="Icinga29to5TimePeriod"ranges={"monday" ="08:00-20:00""tuesday" ="08:00-20:0..
分类:
其他好文 时间:
2017-08-29 00:03:48
阅读次数:
196
icinga2通过check_hpasm监控HP服务器硬件报警:https://labs.consol.de/nagios/check_hpasm/#download被监控服务器需安装hp-snmp-agents#dpkg-ihp-snmp-agents_10.40-2909.34_amd64.deb#/sbin/hpsnmpconfig输入y(即使用已有/etc/snmp/snmpd.conf配置)#tarzxfvcheck_hpasm-4.7..
分类:
其他好文 时间:
2017-07-01 10:05:19
阅读次数:
163
icinga2借助check_wmi_plus.pl监控Windows服务器Windows端:1、确保services里的WindowsManagementInstrumentation服务是start的(一般均为start)2、将账号加入本地的DistributedCOMUsers、PerfromanceLogUsers、PerformanceMonitorUsers组icinga2服务器端:check_wmi_plus.pl..
icinga2通过check_ping.pl插件生成可用性监控下载地址:https://exchange.nagios.org/directory/Plugins/Network-Protocols/ICMP/check_ping-2Epl/details修改脚本:#vicheck_ping.pl(最后2行改成下面这样)my$loss=sprintf("%.3f",(100-(100*$nok/$pack)));printf("PING-Pack..
分类:
其他好文 时间:
2017-01-18 23:34:31
阅读次数:
163
icinga2借助check_iostat.sh抓取linux服务器的diskIO(硬盘繁忙度)下载地址:https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Check-Iostat-Updated/details对脚本进行修改(默认为$12,12为w_await值,14为%util值)UTIL=`cat$TMP|$AWK‘{sum+=$14}EN..
分类:
移动开发 时间:
2016-12-20 21:39:23
阅读次数:
242