LR监控linux之详解rstatd的安装.docx_第1页
LR监控linux之详解rstatd的安装.docx_第2页
LR监控linux之详解rstatd的安装.docx_第3页
LR监控linux之详解rstatd的安装.docx_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

LR监控linux之详解rstatd的安装-Zee1. 前期准备:1,把rstatd文件解压到要监控的机器上。2,打开终端,定位到rstatd文件夹下:查看文件夹中的内容如下:rootlocalhost rpc.rstatd# lsaclocal.m4 COPYING Makefile.am README rstat_proc.crup.1config.h.in CVS Makefile.in rpc.rstatd.8rstat.x rup.cconfigure INSTALL missing rstatd.8 rsysinfo.1 stamp-h.inconfigure.ininstall-shmkinstalldirsrstat_main.crsysinfo.c2. 执行如下步骤:2.1.执行:./configure 命令rootlocalhost rpc.rstatd# ./configurecreating cache ./config.cachechecking for a BSD compatible install. /usr/bin/install -cchecking whether build environment is sane. yeschecking whether make sets $MAKE. yeschecking for working aclocal. foundchecking for working autoconf. foundchecking for working automake. foundchecking for working autoheader. foundchecking for working makeinfo. foundchecking for gawk. gawkchecking for gcc. gccchecking whether the C compiler (gcc) works. yeschecking whether the C compiler (gcc) is a cross-compiler. nochecking whether we are using GNU C. yeschecking whether gcc accepts -g. yeschecking for a BSD compatible install. /usr/bin/install -cchecking whether ln -s works. yeschecking whether make sets $MAKE. (cached) yeschecking how to run the C preprocessor. gcc -Echecking for sys/ioctl.h. yeschecking for syslog.h. yeschecking whether time.h and sys/time.h may both be included. yeschecking whether gcc needs -traditional. nochecking for ANSI C header files. yeschecking return type of signal handlers. voidupdating cache ./config.cachecreating ./config.statuskcreating Makefilecreating config.h2.2.执行:make 命令。rootlocalhost rpc.rstatd# makerm -f rstat.hrpcgen -h -o rstat.h rstat.xgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rup.crup.c: In function ointopoint_v5:rup.c:256: warning: passing argument 6 of client-cl_ops-cl_call?from incompatible pointer typerup.c: In function ointopoint_v3?rup.c:292: warning: passing argument 6 of client-cl_ops-cl_call?from incompatible pointer typerup.c: In function main?rup.c:317: warning: return type of main?is not int?rm -f rstat_xdr.crpcgen -c -o rstat_xdr.c rstat.xgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rstat_xdr.crm -f rstat_clnt.crpcgen -l -o rstat_clnt.c rstat.xgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rstat_clnt.cgcc-g -O2-o ruprup.o rstat_xdr.o rstat_clnt.ogcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rsysinfo.crsysinfo.c: In function ointopoint_v3?rsysinfo.c:136: warning: passing argument 6 of client-cl_ops-cl_call?from incompatible pointer typersysinfo.c: In function main?rsysinfo.c:160: warning: return type of main?is not int?gcc-g -O2-o rsysinforsysinfo.o rstat_xdr.o rstat_clnt.orm -f rstat_svc.crpcgen -m -o rstat_svc.c rstat.xgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rstat_svc.cgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rstat_proc.cgcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c rstat_main.crstat_main.c: In function main?rstat_main.c:82: warning: return type of main?is not int?gcc-g -O2-o rpc.rstatdrstat_svc.o rstat_xdr.o rstat_proc.o rstat_main.o这之后可以执行:make check检查一下。2.3.执行:make install 命令。rootlocalhost rpc.rstatd# make installmake1: Entering directory /opt/rpc.rstatd/bin/sh ./mkinstalldirs /usr/local/bin/usr/bin/install -crup /usr/local/bin/rup/usr/bin/install -crsysinfo /usr/local/bin/rsysinfo/bin/sh ./mkinstalldirs /usr/local/sbin/usr/bin/install -crpc.rstatd /usr/local/sbin/rpc.rstatdmake1: Nothing to be done for install-data-am.make1: Leaving directory /opt/rpc.rstatd2.4.执行:./rpc.rstatd 命令。启动rpc服务。注:无回显为成功。rootlocalhost rpc.rstatd# ./rpc.rstatd2.5.执行:rpcinfo p 命令。检查rpc服务的状态.rootlocalhost rpc.rstatd# rpcinfo -p program vers proto port 100000 2 tcp 111portmapper 100000 2 udp 111portmapper 100024 1 udp 797status 100024 1 tcp 800status 100001 5 udp 900rstatd 100001 3 udp 900rstatd 100001 2 udp 900rstatd 100001 1 udp 900rstatdrootlocalhost rpc.rstatd# 3. 可能会出现的错误:1,若RPC服务没有成功启动。2,若目标主机上开启了防火墙,阻挡了RPC服务。在LR中添加时可能会出现如下错误:Monitor name :UNIX Resources. Cannot initialize the monitoring on 10.1.200.65. 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 is not registered on host 10.1.200.65. (entry point: CFactory:Initialize). MsgId: MMSG-47190Monitor name :UNIX Resources. Internal rpc error (error code:2). Machine: 10.1.200.65. Hint: Check that RPC on this machine is up and running. Check that rstat da

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论