码迷,mamicode.com
首页 >  
搜索关键字:agent    ( 4598个结果
java获取客服端信息(系统,浏览器等)
String agent = request.getHeader("user-agent"); System.out.println(agent); StringTokenizer st = new StringTokenizer(agent,";"); st.nextToken()...
分类:编程语言   时间:2014-08-28 11:02:59    阅读次数:249
puppet之master/agent模型详解
puppet的master-agent模型原理agent需要发送nodename以及各facts到master端,所以需要占据不小的带宽master端在收到agent请求后首先判断是哪个节点,判断完成之后去找匹配当前node的定义,找到后对比客户端发送的时候生成的catalog,然后将catalog发送给agentmaster一定要去判..
分类:其他好文   时间:2014-08-28 09:46:50    阅读次数:324
Zabbix如何监控Windows机器
最近一直在研究Zabbix监控Windows机器,涉及到如何快速安装agent,如何修改和完善windows监控模板等等。想把自己的经验给大家分享一下,希望对大家有所帮助。1)安装agent客户端首先分享一下我写的自动化安装Windows机器的agentd安装脚本zabbix_agentd_install_windows.bat。@ech..
分类:Windows程序   时间:2014-08-27 18:59:49    阅读次数:340
zabbix监控windows linux主机 agent的安装方式
监控LINUX主机:1.安装开发组件包yum-ygroupinstall"DevelopmentTools"yum–yinstallntpdate2、同步客户端时间,防止跟服务器端不一致,导致检测到不可用的监控数据ntpdatepool.ntp.org3、创建zabbix运行所需要的用户跟组groupadd-g201zabbixuseradd-gzabbix-g201-mzabbix4、?.
分类:Windows程序   时间:2014-08-27 11:08:48    阅读次数:309
file_get_contents伪造user_agent curl设置useragent的方法
file_get_contents 和 curl 这俩强悍的函数,在远程抓取时候相当有用处.不过一些网站会根据来访ip是否携带user_agent来判断是正常的浏览器客户端还是机器.所以,我们的任务就是给他们伪造user_agent. file_get_cont...
分类:其他好文   时间:2014-08-26 20:02:26    阅读次数:189
UVA - 11754 Code Feat
Hooray!  Agent Bauer has shot the terrorists, blown upthe bad guy base, saved the hostages, exposed the moles in the government,prevented an environmental catastrophe, and found homes for three orphan...
分类:其他好文   时间:2014-08-24 14:14:42    阅读次数:169
PHP CodeBase: 判断用户是否手机访问
随着移动设备的普及,网站也会迎来越来越多移动设备的访问。用适应PC的页面,很多时候对手机用户不友好,那么有些时候,我们需要判断用户是否用手机访问,如果是手机的话,就跳转到指定的手机友好页面。这里就介绍一下,如何判断用户是否用手机访问。皇家娱乐城自定义的函数如下:$agent = check_wap(...
分类:移动开发   时间:2014-08-24 09:09:12    阅读次数:270
Hadoop 离线安装 CDH5.1 第二章:cloudera manager与agent 安装
新建cloudera-scm用户(做了分行,这个是一条linux命令,)[hadoop@mastercloudera-manager-5.1.0]$sudouseradd--system --home=/opt/cloudera-manager-5.1.0/run/cloudera-scm-server --no-create-home--shell=/bin/false--comment"ClouderaSCMUser"cloudera-scm改/opt/cloude..
分类:其他好文   时间:2014-08-24 04:09:52    阅读次数:274
struts2下载中文在IE firefox下乱码问题
// 判断浏览器 HttpServletRequest request = ServletActionContext.getRequest(); String Agent = request.getHeader("User-Agent"); if (null != Agent) { Agent = ...
分类:其他好文   时间:2014-08-23 18:56:11    阅读次数:161
POJ 3667 Hotel(线段树区间合并)
Description The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessie, ever the competent travel agent, ha...
分类:其他好文   时间:2014-08-23 17:46:51    阅读次数:304
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!