[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbitgraph doesn't understand "suse"
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbitgraph doesn't understand "suse"
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Wed, 16 Feb 2005 23:04:02 +0100
- User-agent: Mutt/1.5.5.1i
On Wed, Feb 16, 2005 at 04:23:09PM -0500, Larry.Barber (at) usda.gov wrote:
> I'm getting errors like this in larrd-status.log:
>
> 2005-02-16 15:13:13 Host 'elnx105' reports netstat for an unknown OS
>
> The corresponding message is:
>
> green Wed Feb 16 15:18:12 CST 2005 <netstat>
> suse
OK, I looked at the BB 1.9e and it seems that it has separate OS
names for SuSE, Red Hat, Debian and Mandrake. Hobbit already knows
about Debian and Red Hat, so you can just add a couple of lines
to lib/misc.c to make it recognize "suse" and "mandrake" also:
Around line 48 of hobbit-4.0-RC2/lib/misc.c add these two lines:
else if (strcasecmp(osname, "suse") == 0) result = OS_LINUX;
else if (strcasecmp(osname, "mandrake") == 0) result = OS_LINUX;
Rebuild it with "make; make install", restart Hobbit and it should be
OK.
I'll add this for the next release.
Henrik