Xymon Mailing List Archive search

hobbitgraph doesn't understand "suse"

3 messages in this thread

list Larry Barber · Wed, 16 Feb 2005 16:23:09 -0500 (EST) ·
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
Ip:
    23283298 total packets received
    0 forwarded
    0 incoming packets discarded
    22999200 incoming packets delivered
    26771180 requests sent out
Icmp:
    14673 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 17
        echo requests: 14656
    14662 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 6
        echo replies: 14656
Tcp:
    138902 active connections openings
    798503 passive connection openings
    0 failed connection attempts
    57034 connection resets received
    90 connections established
    23262079 segments received
    26756470 segments send out
    14189 segments retransmited
    0 bad segments received.
    45075 resets sent
Udp:
    39 packets received
    6 packets to unknown port received.
    0 packet receive errors
    45 packets sent
TcpExt:
    4214327 invalid SYN cookies received
    ArpFilter: 0
    740267 TCP sockets finished time wait in fast timer
    78 time wait sockets recycled by time stamp
    160 packets rejects in established connections because of timestamp
    254969 delayed acks sent
    2037 delayed acks further delayed because of locked socket
    Quick ack mode was activated 5294 times
    12623844 packets directly received from backlog
    3266594 packets header predicted
    8502 packets header predicted and directly queued to user
    TCPPureAcks: 10978507
    TCPHPAcks: 4380035
    TCPRenoRecovery: 1
    TCPSackRecovery: 0
    TCPSACKReneging: 0
    TCPFACKReorder: 0
    TCPSACKReorder: 0
    TCPRenoReorder: 0
    TCPTSReorder: 0
    TCPFullUndo: 0
    TCPPartialUndo: 0
    TCPDSACKUndo: 0
    TCPLossUndo: 160
    TCPLoss: 0
    TCPLostRetransmit: 0
    TCPRenoFailures: 1
    TCPSackFailures: 0
    TCPLossFailures: 0
    TCPFastRetrans: 2
    TCPForwardRetrans: 0
    TCPSlowStartRetrans: 23
    TCPTimeouts: 2637
    TCPRenoRecoveryFail: 0
    TCPSackRecoveryFail: 0
    TCPSchedulerFailed: 0
    TCPRcvCollapsed: 0
    TCPDSACKOldSent: 3444
    TCPDSACKOfoSent: 0
    TCPDSACKRecv: 134
    TCPDSACKOfoRecv: 0
    TCPAbortOnSyn: 0
    TCPAbortOnData: 44026
    TCPAbortOnClose: 868
    TCPAbortOnMemory: 0
    TCPAbortOnTimeout: 109
    TCPAbortOnLinger: 0
    TCPAbortFailed: 0
    TCPMemoryPressures: 0
    TCPShortIcmp: 0

Message received from 165.221.94.21
Status unchanged in 7 days, 22 hours, 42 minutes

It would appear that it is being confused by "suse" as the OS name. I am
getting similar errors for vmstat. 

Thanks,
Larry Barber
list Henrik Størner · Wed, 16 Feb 2005 23:04:02 +0100 ·
quoted from Larry Barber
On Wed, Feb 16, 2005 at 04:23:09PM -0500, user-7a6c75d6cc10@xymon.invalid 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
list Larry Barber · Wed, 16 Feb 2005 17:18:08 -0500 (EST) ·
Great!, that took care of it.

Thanks,
Larry Barber
quoted from Henrik Størner


On Wed, 2005-02-16 at 16:04 -0600, user-ce4a2c883f75@xymon.invalid wrote:
On Wed, Feb 16, 2005 at 04:23:09PM -0500, user-7a6c75d6cc10@xymon.invalid
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