Menu

#11 check_snmp errors in 1.2.9-beta4

open
None
5
2001-01-03
2000-12-19
Anonymous
No

Discussion

  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.73 [en] (WinNT; U)

    The following returns errors:
    ./check_snmp 10.10.10.10 -C community -o
    .1.3.6.1.4.1.9.9.48.1.1.1.6.0,.1.3.6.1.4.1.9.9.48.1.1.1.5.0 -w 400000 -c 100000 -u "bytes free
    (","bytes used)" -l memory

    This should check Cisco memory usage. The following error is being returned:

    check_snmp in realloc(): warning: chunk is already free.
    failed malloc in strscat

    ( using ucd-snmp:

    root@host02# snmpget -V
    UCD-snmp version: 4.2

    )

    Also snmpget 4.2 now returns:

    root@host02# snmpget -m ALL 10.10.10.10 community .1.3.6.1.4.1.9.9.48.1.1.1.6.0
    .1.3.6.1.4.1.9.9.48.1.1.1.5.0

    enterprises.9.9.48.1.1.1.6.1 = Gauge32: 19349292
    enterprises.9.9.48.1.1.1.5.1 = Gauge32: 18377980

    instead of:

    enterprises.9.9.48.1.1.1.6.1 = Gauge: 19349292
    enterprises.9.9.48.1.1.1.5.1 = Gauge: 18377980

    and check_snmp from 1.2.8 plugins parses it incorrectly:
    output from check_snmp ( 1.2.8 ) + ucd-snmp v.4.2
    memory OK - 32: 19354492 bytes free ( 32: 18372772 bytes used)
    output from check_snmp ( 1.2.8 ) + ucd-snmp v.4.1.2
    memory OK - 19354492 bytes free ( 18372772 bytes used)

    Can you please look into it ?

    Gregg

     
  • Karl DeBisschop

    Karl DeBisschop - 2001-01-03
    • assigned_to: nobody --> kdebisschop
     
  • Nobody/Anonymous

    Logged In: YES
    user_id=1671
    Browser: Mozilla/4.76 [en] (X11; U; Linux 2.4.0-0.26 i586)

    I cannot reproduce the memory error (I tried with snmp 4.1.2
    and 4.2). Waht OS/version are you running snmpget/netsaint
    on?

    I have fixed the problem with 'Gauge32'

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.73 [en] (WinNT; U)

    I'm running:

    FreeBSD 4.2-RELEASE
    UCD-snmp version: 4.2
    plugins 1.2.9b4 ( all versions of 1.2.9 do that )

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.76 [en] (Windows NT 5.0; U)

    The "check_snmp in realloc(): warning: chunk is already free.
    failed malloc in strscat" error only apears if you specify either -w or -c

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.