标题: 对linux系统的服务器监控 [打印本页] 作者: han_xue1230 时间: 2007-5-14 08:51 标题: 对linux系统的服务器监控 对linux系统的mysql数据库服务器监控,
首先是对系统的监控,
在服务器上安装rstatd守护进程
安装步骤:
1. 从网上下载rstatd
2. 将该文件放到/home/user目录下
3. chmod 777 rpc.rstatd----改变该文件读写的权限,拥有所有权限。
4. chmod 777 configure ---同上
5. ./configure ---配置
6. make ---编译
7. make install ---安装
8. rpc.rstatd ---启动rstatd进程
以上的步骤技术已经在服务器上操作了,
在lr中配置
从LR里面add measurement, 填写linux机器的IP,出现所有unix/linux的计数器,包括cpu的,mem的,disk,network的。介绍几个常用的:
average load :在过去的1分钟,的平均负载
cpu utilization: cpu的使用率
disk traffic: disk传输率
paging rate: 每秒从磁盘读到物理内存,或者从物理内存写到页面文件的内存页数
Swap-in rate: 每秒交换到内存的进程数
Swap-out rate: 每秒从内存交换出来的进程
这里,从LR里面add measurement, 填写linux机器的IP,出现所有unix/linux的计数器,添加了linux机器的IP,但没有出现linux的计数器
下面是我添加linux的计数器的步骤:作者: han_xue1230 时间: 2007-5-14 08:53
不知道问题出在哪里作者: han_xue1230 时间: 2007-5-14 08:58
我成功添加了ScreenShot010.jpg 中所有的计数器,出现了下面的错误
Monitor name :UNIX Resources. Cannot initialize the monitoring on 192.168.0.8. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.
RPC-TCP: Failed to establish RPC server address.
RPC-TCP: RPC Server <100001, 3, 17> is not registered on host '192.168.0.8'. (entry point: CFactory::Initialize). [MsgId: MMSG-47190]作者: shanxi 时间: 2007-5-14 09:06
There is no need for any LoadRunner installation to be on a Unix/Linux Machine to be monitored. However, the machine must have the default RSTAT daemon installed and running. The controller establishes a UDP socket connection with the UNIX machine. It first communicates with port 111 on the Unix machine and this port is then mapped to the dynamic port on which the rstatd is working. The controller then queries rstatd and all communication takes place through this established UDP socket connection.
To monitor a UNIX/Linux machine through a firewall, you must run a UNIX utility called rpcinfo and identify the rstatd's port number. By running rpcinfo -p <hostname>, you will receive a list of all RPC servers registered in the host?s portmapper, along with the port number. This list will not change until rstatd is stopped and rerun.
Some firewalls allow you to open an RPC program number instead of a port. In such cases, open program 100001. If are prompted to include a version number, specify versions 3 and 4.
Note: You can use the same 'UNIX Resources monitor' to monitor Linux machine