#!/bin/sh
if [ -z "`curl --connect-timeout 15 --max-time 20 --head --silent http://localhost/index.php|head -n 1|grep ‘200‘`" ];then
echo -e "$(date +%Y-%m-%d)\n"
killall nginx
killall...
分类:
Web程序 时间:
2014-07-31 17:23:50
阅读次数:
301
一、配置NagiosNagios主要用于监控一台或者多台本地主机及远程的各种信息,包括本机资源及对外的服务等。默认的Nagios配置没有任何监控内容,仅是一些模板文件。若要让Nagios提供服务,就必须修改配置文件,增加要监控的主机和服务,下面将详细介绍。Nagios安装完毕后,默认的..
分类:
移动开发 时间:
2014-07-31 17:22:37
阅读次数:
408
前言:朋友咨询我说执行简单的update语句失效,症状如下:mysql> update order_info set province_id=15 ,city_id= 1667 where order_from=10 and order_out_sn='1407261241xxxx';ERROR 1205 (HY000): Lock wait timeout exceeded; try re...
分类:
其他好文 时间:
2014-07-31 13:25:26
阅读次数:
180
搭建Nagios实在是一个繁杂的过程,首先需要读者有Linux基础,最为重要的是要花费大量的精力和时间,还有就是耐心和细心。我主要是参考网上这篇文章,觉得写的非常好。原文:http://www.cnblogs.com/mchina/archive/2013/02/20/2883404.htmlhttp://www.ibm.com/developerworks/c..
分类:
移动开发 时间:
2014-07-31 03:16:36
阅读次数:
495
#InstallationinstructionsofNagiosonCentOS6.464bitAuthor:LarryZhaoQQ:920057952BLOG:larryzhao.blog.51cto.comE-mail:zhaolong0508@126.com#NTPServiceyuminstallntpservicentpdstartchkconfigntpdoncrontab-e*****/usr/sbin/ntpdatecn.pool.ntp.org#PacketsPreparenagios-3..
分类:
移动开发 时间:
2014-07-31 03:11:56
阅读次数:
398
Linux、windows系统监控平台Nagios的安装与部分错误整理
分类:
移动开发 时间:
2014-07-30 12:08:43
阅读次数:
177
1.select 模型 1.1 select 函数原型如下,其中 nfds 表示的描述符的最大值加1(因为这里是左闭右开区间),中间三个参数分别表示要监听的不同类型描述符的集合,timeout用来表示轮询的时间间隔,这里用NULL表示无限等待。 1.2 使用 select函数编写客户端程...
分类:
系统相关 时间:
2014-07-30 00:57:12
阅读次数:
476
struct pollfd2010年04月15日 星期四 下午 03:59int poll (struct pollfd *fds, size_t nfds , int timeout);struct pollfd {int fd; /* 文件描述符 */short events; /* 等待的事....
分类:
其他好文 时间:
2014-07-29 17:30:22
阅读次数:
288
1. 在Guest系统里面,编辑C:\Boot.ini,注意修改只读属性[boot loader]timeout=5default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS[operating systems]multi(0)disk(0)rdisk(0...
分类:
数据库 时间:
2014-07-29 17:27:02
阅读次数:
264
public?class?HTTPClient?
{
????private?static?final?Logger?logger?=?LoggerFactory.getLogger(HTTPClient.class);
????public?static?final?int?DEFAULT_CONN_TIMEOUT?=?10;
????...
分类:
其他好文 时间:
2014-07-29 16:11:59
阅读次数:
352