国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
openfire tsung測(cè)試時(shí)監(jiān)控被測(cè)機(jī)的運(yùn)行狀態(tài)

openfire tsung測(cè)試時(shí)監(jiān)控被測(cè)機(jī)的運(yùn)行狀態(tài),有需要的朋友可以參考下。




需求:openfiretsung測(cè)試時(shí)監(jiān)控被測(cè)機(jī)的運(yùn)行狀態(tài)


原料:centos 6.4,openfire 3.9.1,tsung 1.5, net-snmp5.5-50


step1:安裝net-snmp


yum -y install net-snmp


yum -y installnet-snmp-utils


yum -y installnet-snmp-libs


yum -y installnet-snmp-devel


編輯/etc/snmp/snmpd.confg


1.在此位置增加紅色行,可以支持查看cpu,內(nèi)存等信息


####

# Third, create a view for us to let the group have rights to:



# Make at least snmpwalk -v 1 localhost -c public system fast again.

# name incl/excl subtree mask(optional)

view systemview included .1

view systemview included .1.3.6.1.2.1.1

view systemview included .1.3.6.1.2.1.25.1.1


2.在此代碼附近


###############################################################################


# Process checks.

#

# The following are examples of how to use the agent to check for

# processes running on the host. The syntax looks something like:






將下列行的#號(hào)注釋去掉


#proc mountd


#proc ntalkd 4


#proc sendmail 10 1



3.在此代碼附近


###############################################################################

# Executables/scripts

#





#

# You can also have programs run by the agent that return a single

# line of output and an exit code. Here are two examples.


將下列行的#號(hào)注釋去掉


#exec echotest /bin/echo hello world


step2:tsung腳本增加監(jiān)控節(jié)點(diǎn)



<?xml version="1.0"?><!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd"><tsung loglevel="notice" version="1.0">  <clients>    <client host="localhost" use_controller_vm="true" maxusers="900"></client>  </clients>  <!-- Server side setup -->  <servers>    <server host="127.0.0.1" port="5222" type="tcp"></server>  </servers>  <monitoring>    <monitor host="192.168.80.128" type="snmp">    <snmp version="v2" >    <!-- tsung 官網(wǎng)的代碼,看不懂 -->    <!-- <oid value="1.3.6.1.4.1.42.2.145.3.163.1.1.2.11.0" name="heapused" type="sample" eval="fun(X)-> X/100 end. "></oid> -->    <!-- 使用自己定義的 -->    <oid value="1.3.6.1.4.1.2021.11.5.0" name="ssIOSend" type="sample"></oid>    <oid value="1.3.6.1.4.1.2021.11.6.0" name="ssIOReceive" type="sample"></oid>    <oid value="1.3.6.1.4.1.2021.4.6.0" name="ramUsed" type="sample"></oid>    <oid value="1.3.6.1.2.1.4.9" name="ipInDelivers" type="sample"></oid>    </snmp>    </monitor>  </monitoring>  <load>    <arrivalphase phase="1" duration="1" unit="minute">      <users maxnumber="900" interarrival="0.002" unit="second"></users>    </arrivalphase>  </load>  <!-- JABBER parameters -->  <!-- to synchronise users,  use a global acknoledgement -->  <options>    <option type="ts_jabber" name="global_number" value="100"></option>    <option type="ts_jabber" name="userid_max" value="900"></option>    <option type="ts_jabber" name="domain" value="floatant"></option>    <option type="ts_jabber" name="username" value="tsung"></option>    <option type="ts_jabber" name="passwd" value="tsung"></option>  </options>  <sessions>    <session probability="100" name="jabber-example" type="ts_jabber">      <request>        <jabber type="connect" ack="no_ack"></jabber>      </request>      <thinktime value="2"></thinktime>      <transaction name="authenticate">        <request>          <jabber type="auth_get" ack="local"></jabber>        </request>        <request>          <jabber type="auth_set_plain" ack="local"></jabber>        </request>      </transaction>      <request>        <jabber type="presence:initial" ack="no_ack"/>      </request>      <thinktime value="2"></thinktime>      <transaction name="roster">        <request>          <jabber type="iq:roster:get" ack="local"></jabber>        </request>      </transaction>      <thinktime value="30"></thinktime>      <transaction name="online">        <request>          <jabber type="chat" ack="no_ack" size="16" destination="online"></jabber>        </request>      </transaction>      <thinktime value="30"></thinktime>      <transaction name="offline">        <request>          <jabber type="chat" ack="no_ack" size="56" destination="offline"></jabber>        </request>      </transaction>      <thinktime value="30"></thinktime>      <transaction name="close">        <request>          <jabber type="close" ack="no_ack"></jabber>        </request>      </transaction>    </session>  </sessions></tsung>
linux snmp OID的鏈接 http://www.haiyun.me/archives/linux-snmp-oid.html


完成


本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
cacti實(shí)現(xiàn)監(jiān)控
Cacti中文版安裝配置
Centos yum安裝snmp 
初次登錄 Linux 服務(wù)器馬上要做的 9 件事 | Linux 中國
Cacti監(jiān)控網(wǎng)卡
linux的snmp安裝和配置 - hongliangpan - JavaEye技術(shù)網(wǎng)站
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服