From: mosedale@genome.Stanford.EDU (Dan Mosedale)
Subject: porting xmeter to Ultrix 4.3 & OSF 1.2
Date: Thu, 1 Jul 93 06:22:13 GMT [thread overview]
Message-ID: <1993Jul1.062213.5321@leland.Stanford.EDU> (raw)
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
reply other threads:[~1993-07-01 6:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox