02 2017 档案

摘要:On Unix, Linux and Mac OS X, MySQL programs read startup options from the following files, in the specified order (top items are used first). File Nam 阅读全文
posted @ 2017-02-27 16:49 杨小愚 阅读(5397) 评论(0) 推荐(0)
摘要:select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip; 阅读全文
posted @ 2017-02-17 10:51 杨小愚 阅读(5722) 评论(0) 推荐(0)
摘要:#!/bin/sh while : do n=`mysqladmin processlist -uadmin -p***|grep -i sleep |wc -l` date=`date +%Y%m%d\[%H:%M:%S]` echo $n if [ "$n" -gt 10 ] then for i in `mysqladmin processlist -uadmin ... 阅读全文
posted @ 2017-02-16 15:01 杨小愚 阅读(1689) 评论(0) 推荐(0)
摘要:基于ZABBIX 3.0 https://www.zabbix.com/documentation/3.0/manual/api/reference 参考方法 本节提供了的zabbix提供的功能的概述 的API ,并会帮助你发现周围可用的类和方法的路。 本节提供了的zabbix提供的功能的概述 的A 阅读全文
posted @ 2017-02-15 09:08 杨小愚 阅读(6837) 评论(1) 推荐(0)
摘要:基于zabbix 3.0 https://www.zabbix.com/documentation/3.0/manual/api/reference Method reference This section provides an overview of the functions provide 阅读全文
posted @ 2017-02-14 17:48 杨小愚 阅读(1742) 评论(0) 推荐(0)
摘要:最近准备写一个zabbix二次页面的呈现。打算调用zabbix api接口来进行展示。 具体流程以及获取的数据。 1、 获得认证密钥 2、 获取zabbix所有的主机组 3、 获取单个组下的所有主机 4、 获取某个主机下的所有监控项 5、 获取某个监控项的历史数据 6、 获取某个监控项的最新数据 认 阅读全文
posted @ 2017-02-13 17:21 杨小愚 阅读(4678) 评论(1) 推荐(0)
摘要:最近有个想法:想做一个zabbix数据的二次呈现,所以来写一下Zabbix的api的内容。 先说下zabbix api的认证基础。 Zabbix API简介 Zabbix API开始扮演着越来越重要的角色,尤其是在集成第三方软件和自动化日常任务时。。Zabbix API为批量操作、第三方软件集成以及 阅读全文
posted @ 2017-02-13 17:00 杨小愚 阅读(6187) 评论(1) 推荐(0)
摘要:作为一个运维,做监控的时候一定要了解我们需要监控的对象,我们监控的范围,以及我们根据业务判定监控要达到的精准度。 监控对象: 1. 监控对象的理解:CPU是怎么工作的,原理 2. 监控对象的指标:CPU使用率 CPU负载 CPU个数 上下文切换 3. 确定性能基准线:怎么样才算故障?CPU负载多上才 阅读全文
posted @ 2017-02-09 10:55 杨小愚 阅读(2117) 评论(0) 推荐(0)
摘要:#!/bin/bash ################### # Check Active Host####### ################### function CheckInput(){ if [ $# -ne 1 ] ; then return 1 else return 0 fi } function CheckIp(){ /bin/ipcalc -s -c $1 ... 阅读全文
posted @ 2017-02-08 18:36 杨小愚 阅读(951) 评论(0) 推荐(0)