Re: Compile trouble with 5.4pre3

Mike Brodbelt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 2006-10-05 at 10:51 +0100, Dave Shield wrote:
> On 05/10/06, Mike Brodbelt <[email protected]> wrote:
> > It doesn't seem to be working for me. I've dropped the new files in and
> > recompiled, but snmpwalk now times out on that part of the MIB:-
> 
> 
> > Individual get requests to each OID don't timeout, but some of them take
> > noticeably longer to complete than others, and all return zero:-
> 
> > So, no joy for me - sorry :-(

> OK - let's try a bit of digging to retrieve some more info about
> what's happening.
> Please try applying the following patch to cpu.c and cpu_kstat.c
> It's mostly to add some debugging output.

Mostly - but there must be some other magic in there cause it seems to
be working now...

> Once you've patched the code, and recompiled the agent, please try
> running the agent
> with   "-f -Le -Dcpu", and query the system stats again.

[root@ts-002 5.4]# ps -ef | grep snmp
    root   311     1   1 12:56:09 ?           0:00 /usr/local/sbin/snmpd -f -Le -Dcpu
[root@ts-002 5.4]# snmpwalk -v 2c -c public -t 5 localhost .1.3.6.1.4.1.2021.11
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 44645
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 98771
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 26172518
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 98771
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 0
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 0
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 86636522
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 32450139
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 0
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 22
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 9

>    What logging output do you see from the agent?

registered debug token cpu, 1
cpu: cpu_get_byIdx -1 (created)
cpu: cpu_kstat init
 cpu: cpu_get_byIdx 0 (created)
NET-SNMP version 5.4.pre3
cpu: cpu_get_byIdx -1 (found)
cpu: cpu_kstat load
 cpu: cpu_get_byIdx 0 (found)
cpu: cpu_get_byIdx -1 (found)
cpu: cpu_kstat load
 cpu: cpu_get_byIdx 0 (found)
cpu: cpu_get_byIdx -1 (found)
cpu: cpu_kstat load
 cpu: cpu_get_byIdx 0 (found)
cpu: cpu_get_byIdx -1 (found)
cpu: cpu_kstat load
 cpu: cpu_get_byIdx 0 (found)
cpu: cpu_get_byIdx -1 (found)

Then a load more messages identical to the last above as I do the
snmpwalk, then

cpu: cpu_get_byIdx -1 (found)
cpu: cpu_kstat load
 cpu: cpu_get_byIdx 0 (found)
^CReceived TERM or STOP signal...  shutting down...

HTH,

Mike

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.