Re: ioctl returned -1 ??
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 19 Nov 2006 08:23:30 +0100 Thomas wrote: TA> Paul Reilly wrote: TA> > It always happens twice per minute, irrespective of what snmpgets I run. TA> TA> The routine in question is netsnmp_arch_interface_index_find() in TA> agent/mibgroup/if-mib/data_access/interface_linux.c, I think. There's a 30sec TA> default update interval which explains what you're seeing. TA> TA> You may want to play with the debug tokens to find out the interface in TA> question. Try running snmpd e.g. with "-Daccess:interface,9:access:ifcontainer" TA> for a minute and scan through the output to find out which interface triggers TA> the error. That doesn't appear to give enough info, since the function is not called while scanning interfaces... so, the attached patch will log the interface that is causing the error... but the function is called from several places, which probably means we'll need you to run the agent under a debugger and set a break-point so that we can see which module is calling it.. ------------------------------------------------------------------------- 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
ioctl-dbg.pat
(application/octet-stream, 972 B) - not displayed