Rstatd installation-zee

Source: Internet
Author: User

Rstatd installation-zee 1. preparations:1. decompress the rstatd file to the machine to be monitored. 2. Open the terminal and navigate to the rstatd Folder: view the content in the folder as follows:

[Root @ localhost RPC. rstatd] # lsaclocal. m4 copying makefile. am readme rstat_proc.c rup.1config. h. in CVS makefile. in RPC. rstatd.8 rstat. x rup. cconfigure install missing rstatd.8 rsysinfo.1 stamp-h.inconfigure.in install-SH mkinstalldirs rstat_main.c rsysinfo. c
2. perform the following steps: 2.1. Run the./configure command.

[Root @ localhost 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 supported ded... 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. h
2.2. Run the make command.

[Root @ localhost 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 'oss point _ V5 ': RUP. c: 256: Warning: Passing argument 6 of 'client-> cl_ops-> cl_call '? From incompatible pointer typerup. C: In function 'oss point _ 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 rup. O rstat_xdr.o rstat_clnt.o gcc-dhave_config_h-I. -I. -I. -G-O2-C rsysinfo. crsysinfo. c: In function 'oss point _ 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 rsysinfo. O rstat_xdr.o rstat_clnt.o Rm-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. rstatd rstat_svc.o rstat_xdr.o rstat_proc.o rstat_main.o
Run make check. 2.3. Run the make install command.

[Root @ localhost RPC. rstatd] # Make installmake [1]: Entering directory '/opt/rpc. rstatd '/bin/sh. /mkinstalldirs/usr/local/bin/usr/bin/install-c rup/usr/local/bin/RUP/usr/bin/install-C rsysinfo/usr/local/bin /rsysinfo/bin/sh. /mkinstalldirs/usr/local/sbin/usr/bin/install-c rpc. rstatd/usr/local/sbin/rpc. rstatdmake [1]: Nothing to be done for 'Install-data-am '. make [1]: Leaving directory '/opt/rpc. rstatd'
2.4. Run the./rpc. rstatd command. Start the RPC service.Note: No echo is successful.

[Root @ localhost rpc. rstatd] #./rpc. rstatd
2.5. Run the rpcinfo-p command. Check the RPC service status.

[Root @ localhost RPC. rstatd] # rpcinfo-P program vers proto PORT 100000 2 TCP 111 Portmapper 100000 2 UDP 111 Portmapper 100024 1 udp 797 status 100024 1 tcp 800 status 100001 5 UDP 900 rstatd 100001 3 UDP 900 rstatd 100001 2 UDP 900 rstatd 100001 1 udp 900 rstatd [root @ localhost RPC. rstatd] #
3. Possible errors:1. If the RPC service fails to be started. 2. If the firewall is enabled on the target host, the RPC service is blocked. When LR is added, the following error may occur:

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 <100001, 3, 17> is not registered on host' 10. 1.200.65 '. (Entry Point: cfactory: Initialize ). [msgid: MMSG-47190]
 

Monitor 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 daemon on this machine is up and running (use rpcinfo utility for this verification ). details: RPC call failed. RPC-TCP: Recv ()/recvfrom () failed. RPC-TCP: Timeout reached. (Entry Point: Factory: collectdata ). [msgid: MMSG-47197]
So far.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.