ps -ef | grep keepalive | grep -v grep | awk '{print $2}' | xargs kill -9
分类:
其他好文 时间:
2014-09-15 19:17:19
阅读次数:
204
线上服务器会用top监控服务器性能,最近改了游戏架构..开发老大经常会查询这些数据,,发现第一次top数据不准..原因不知道是不是top第一次读取的缓存数据..解决办法,,top2次,过滤掉第一次数据.top-b-n2-d0.01|awk‘/^top/{i++}i==2‘|head-n15
分类:
其他好文 时间:
2014-09-15 11:26:09
阅读次数:
354
zabbixproxy是相当于zabbixserver的代表,它每隔一段时间从一台或者多台监控设备上收集监测数据,并发送给zabbixserver端,然后proxy将该些数据存放在数据库中一段时间(预防proxy向server中传监测数据失败的措施,该些数据在到达时间后会被自动清理)。部署proxy是可选的,但..
分类:
其他好文 时间:
2014-09-15 11:24:39
阅读次数:
237
前天简单分享了用shell写网络爬虫的一些见解,今天特地把代码发出来与51博友分享,还是那句话,爱技术、爱开源、爱linux。针对脚本的注解和整体构思,我会放到脚本之后为大家详解。#!/bin/bash
#
#Thisscriptisusedtograbthedataonthespecifiedindustrywebsites
#Writtenbysuns..
分类:
其他好文 时间:
2014-09-14 11:27:27
阅读次数:
295
Zabbix agent 在windows上安装部署1、 下载与解压地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.win.zip解压zabbix_agents_2.4.0.win.zipconf目录存放是agent配置文件...
时间同步ntpdatetime.nist.gov安装Zabbix官方yum源rpm-ivhhttp://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm安装zabbix客户端yuminstall-yzabbixzabbix-agent关闭防火墙[root@VM3~]#chkconfigiptablesoff[root@VM3~]#serviceiptablesstop..
分类:
系统相关 时间:
2014-09-12 17:24:34
阅读次数:
328
1.开启block_dump,此时会把io信息输入到dmesg中echo1>/proc/sys/vm/block_dump统计当前占用IO最高的10个进程:dmesg|awk-F:‘{print$1}‘|sort|uniq-c|sort-rn|head-n102.测试完后,关闭block_dumpblock_dump参数echo0>/proc/sys/vm/block_dump
分类:
系统相关 时间:
2014-09-12 15:29:44
阅读次数:
299
使用perl来监控ORACLEDATAGUARD脚本#!/usr/bin/perl
usestrict;
usewarnings;
useDBI;#LoadtheDBImodule
my$ZabbixServer="192.168.3.24";
my$ZabbixPort="10051";
my$HOSTNAME="ora2";
my$SenderCMD="/usr/local/zabbix/bin/zabbix_sender";
my$Primtns="test_st";
my$Stan..
分类:
数据库 时间:
2014-09-12 15:23:34
阅读次数:
269
#!/bin/bash
ip=`/sbin/ifconfig|grep"Bcast"|awk‘{print$2}‘|awk-F:‘{print$2}‘|head-n1`
cd/root/soft/memcached
#安装libevent
tarzxvflibevent-2.0.12-stable.tar.gz
cdlibevent-2.0.12-stable
./configure--prefix=/usr/local/libevent
make&&makeinstall
cd/root..
分类:
其他好文 时间:
2014-09-12 15:18:24
阅读次数:
176