[hobbit] Hobbit 4.1.0 available - includes Unix client

Henrik Stoerner henrik at hswn.dk
Mon Jul 25 07:36:14 CEST 2005


On Mon, Jul 25, 2005 at 03:36:55AM +0000, David Gore wrote:
> I know this may not be supported by I am trying to compile the client on 
> Digital UNIX 4.0f using gcc version 2.95.  Is this error because I need 
> a new version of gcc which I may not be able to do on DGUX 4.0f?  Any ideas?
> 
> gcc -g -O -D_REENTRANT -DNO_VSNPRINTF -DOSF -I. 
> -I/var/tmp/hobbit-4.1.0/include -I. -I../include    -c -o sendmsg.o 
> sendmsg.c
> sendmsg.c: In function `sendtobbd':
> sendmsg.c:318: `socklen_t' undeclared (first use in this function)

"socklen_t" is one of those POSIX datatypes that apparently don't
exist on some of the "earlier" Unix'es. For a quick fix, edit the
lib/sendmsg.c file and on line 318 replace "socklen_t" with "int".

However, for the client to work you'll need to create a
client/hobbitclient-osf.sh script to collect the information from
your system; you can probably use one of the existing scripts
as a template. When you have that script working, the hobbitd_client 
needs an update to recognize the data you send to it, so send me
a copy of the output from your client script, and I'll work it
into the back-end module.

The most tricky stuff in the client appears to be getting the 
information about total and available RAM; at least, that is
the area where I had to do some work on the client. Apart from
that, just make sure you get a good "ps" listing and a "df" 
output that has one line per filesystem.

Regards,
Henrik




More information about the Xymon mailing list