From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,d6bceeb19433c8e6,start X-Google-Attributes: gid10b612,public X-Google-Thread: fee84,d6bceeb19433c8e6,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-06-30 23:31:50 PST Xref: gmd.de comp.unix.ultrix:9877 comp.unix.osf.osf1:578 Newsgroups: comp.unix.ultrix,comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!nntp.Stanford.EDU!genome.Stanford.EDU!mosedale From: mosedale@genome.Stanford.EDU (Dan Mosedale) Subject: porting xmeter to Ultrix 4.3 & OSF 1.2 Message-ID: <1993Jul1.062213.5321@leland.Stanford.EDU> Sender: news@leland.Stanford.EDU (Mr News) Organization: Stanford Genome Sequencing Center Date: Thu, 1 Jul 93 06:22:13 GMT >From the readme: xmeter displays a histogram of data returned by rstat(3). It can be told to monitor multiple hosts, or to monitor multiple statistics on the same host. xmeter is an extremely handy program for a sysadmin (as is rstatd, rusers, and rup -- why these programs aren't provided with Ultrix and OSF/1 is beyond me). I've taken the code, ANSIfied it a bit, and fixed a bug or two (most importantly, the one the sometimes leaves old xmeter processes lying around after you've quit). Before I post it to alt.sources, I'd like to port to Ultrix 4.3 and OSF/1. First, Ultrix 4.3: I've gotten Marcus Ranum's port of ONC RPC 4.0 and installed it. I've built the rstat_svc daemon that comes with it, and this works well -- if I run xmeter on a Sun, the daemon running on the Ultrix boxes provides perfectly good statistics to it. The ruser client works, too. However, when I build xmeter with these new include files and libraries, it doesn't work. When executed, xmeter thinks that all the hosts it is trying to talk to are down. Looking at it with gdb, the problem happens as clnt_call doesn't return RPC_SUCCESS. Never having done any RPC programming before, I thought I'd try and draw on the collective wisdom of the net to see if anyone might venture a guess as to what's going on. Or, even better, volunteer that they've already done the porting! :-) Second, Alpha OSF/1 1.2: first off, I'd like to build an rstat daemon to provide me with statistics. However, the ONC one bombs since it can't find /usr/include/sys/vmmeter.h, and I couldn't find any comparable include file. Secondly, I tried to build xmeter to gather stats from the Suns and Ultrix boxes we have around. However, it won't even compile with cc or gcc (which is kinda strange, since gcc compiles it on Suns and DECs). The problem seems to have to do with the rather strange way that xmeter does its resources -- they don't seem to belong to any widget in particular. c89 compiles it, but the executable seg-faults in the Xt code which tries to read resources. If anyone has tried any of this stuff before (Hi Pete! :-) or has any suggestions, I'd love to hear them. -- Dan Mosedale, Systems Admin Email: mosedale@genome.Stanford.EDU Stanford Genome Sequencing Center