[hobbit] hobbitgraph doesn't understand "suse"

Larry.Barber at usda.gov Larry.Barber at usda.gov
Wed Feb 16 23:18:08 CET 2005


Great!, that took care of it.

Thanks,
Larry Barber


On Wed, 2005-02-16 at 16:04 -0600, henrik at hswn.dk wrote:
> 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
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 
> 





More information about the Xymon mailing list