delegated and getbulk (more info)
I am using NET-SNMP version 5.4 configured so: ./configure \ --prefix=${PWD}/net-snmp/install \ --with-perl-modules \ --enable-shared \ --enable-mini-agent \ --with-cc=ppc_82xx-gcc \ --with-ar=ppc_82xx-ar \ --with-linkcc=ppc_82xx-gcc \ --host=powerpc-montavista-linux \ --with-endianness=big \ --with-default-snmp-version=2 \ --with-logfile=/nv/snmpd.log \ --with-persistent-directory=/nv \ --without-rpm \ --disable-embedded-perl \ --disable-perl-cc-checks \ --with-mib-modules="ucd-snmp/dlmod utilities/execute mibII/snmp_mib" \ --with-out-mib-modules="target notification notification/snmpNotifyTable notification-log-mib snmp-notification-mib mibII/system_mib mibII/sysORTable mibII/at mibII/ip mibII/tcp mibII/icmp mibII/udp mibII/SetSerialNo snmpv3mibs ucd_snmp agent_mibs agentx utilities disman/event disman/schedule host" -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: Compile problem
> From: Андрей Долгушин [mailto:dolgushin_and...@mail.ru] > Sent: Wednesday, September 16, 2009 7:29 AM > I try compile this package for PowerPC platform. Configuration string > is: > > ./configure --host=i686-pc-linux-gnu --target=powerpc -- > prefix=$HOME/ppc_install --exec-prefix=$HOME/ppc_exec_install -- > disable-embedded-perl --disable-scripts --with-cc=powerpc-405-linux- > gnu-gcc --with-linkcc=powerpc-405-linux-gnu-gcc --with-ar=powerpc-405- > linux-gnu-ar --with-endianness=big Just curious, but is powerpc-405-linux-gnu-gcc a wrapoper for gcc with the proper crosscompiling flags, or a different build of gcc? > There is some error in compile time: > > powerpc-405-linux-gnu-gcc -I../../include -I. -I../../agent - > I../../agent/mibgroup -I../../snmplib -g -O2 -Unone -Dnone=none -c > mibII/at.c -fPIC -DPIC -o mibII/.libs/at.o > mibII/at.c: In function 'ARP_Scan_Next': > mibII/at.c:732: error: 'ifIndex' undeclared (first use in this function) > mibII/at.c:732: error: (Each undeclared identifier is reported only > once > mibII/at.c:732: error: for each function it appears in.) > > I edit this file (at.c) in body of the function ( 'ARP_Scan_Next' ): > > #ifdef ARP_SCAN_FOUR_ARGUMENTS > ifIndex = ... > #endif http://marc.info/?l=net-snmp-users&m=121239609108632&w=2 I don't think that's the answer. Looks like you're building on a four-arg system. You should set -host= top the system you're building for - look in include/net-snmp/systems for a match, or you may need to modify your own. > P.S. Sorry for my bad english. It's better than my Russian... (is it Russian?) HTH, Mike -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: config
> From: Mike Ayers [mailto:mike_ay...@tvworks.com] > Sent: Wednesday, September 16, 2009 4:40 PM > > My requirements are, > > 1 snmpd need to support only SNMPv2c. > > I don't think you can build without v3. Try '--with-default-snmp-version="2" --disable-snmpv1' HTH, Mike -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
HOST-RESOURCES-MIB data for subagents
Hi Team, I am running a snmpd master agent in the master card which communicates over N/W with the other cards which currently running the snmp subagent (AgentX protocol is used). I am able to get the HOST-RESOURCES-MIB data for the master card which is running the master agent but not sure how to get these informations from the subagent cards. I have completed my snmp subagent implementation and able to get the custom build mibs information from the subagents through the master agent. Please help in adding agent code to handle the HOST-RESOURCES-MIB in the subagents and how the master agent will forward/reply the request which will have the same mib object ids. Thank you in advance. -- Regards, Sathish. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
unnecessary alarms of Netsnmp
Hi, I am receiving alarms of the snmp daemon, while everything is ok on the system (and the values do not return any error) This is my config: rocommunity syslocation "System administrators office" syscontact "System administrator" sysservices 72 proc mysqld 2 1 proc "java" 10 1 #monitor or dbdump completed successfully exec db_dump_save_log /bin/grep successfully /opt/scripts/log/backup_archivemanager.log # This will cause the error messages when walking over the object for processes, logMatches and filesizes: trap2sink naos 162 # snmp v2 agentSecName meme rouser meme # This will cause the error messages when walking over the object for processes, logMatches and filesizes: #defaultMonitors yes monitor -o prNames -o prErrMessage "Too many or less processes running" prErrorFlag != 0 #instead we are using the separate commands to be able to tune it: #monitor -o memErrorName -o memSwapErrorMsg "memory threshold exceeded" memSwapError != 0 monitor -o extNames -o extOutput "external script plugin Error" extResult != 0 monitor -o dskPath -o dskErrorMsg "disk threshold exceeded" dskErrorFlag != 0 #monitor -o laNames -o laErrMessage "Load average threshold exceeded" laErrorFlag != 0 monitor -o fileName -o fileErrorMsg "filesize exceeded" fileErrorFlag != 0 #monitor -r 120 -o logMatchFilename "Log file keyword found" != logMatchCurrentCount createUser meme MD5 "junk" DES When an error occurred of an process I receive the trap with description: Too many or less processes running and the process that is down (e.g. Java !=1). Sometimes I receive an trap with the description Too many or less processes, however the prNames field is empty. This error also occurs which the other monitor checks. I hope someone knows an solution for this. Regards, Mario Jansen -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
delegated and getbulk
List members, I am using the delegated flag in my extension of an snmp agent as described here: http://www.net-snmp.org/dev/agent/delayed__instance_8c-example.html It works well when I test it with snmpwalk, but fails when I use snmpbulkwalk. The first MIB object for which I use the delegated flag is fetched correctly, but then this object is repeated with the message: "No more variables left in this MIB View (It is past the end of the MIB tree)" This should not be the case. My handler is not called again after the first delegated object. I am not setting HANDLER_CAN_GETBULK I am checking the transaction id as recommended in the example above. Can you offer advice on the information given? Are there known limitations with get bulk and the delegated mechanism? -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: A question about net-snmp agent extension
Not sure if it’s sent successfully. Just re-send it for help. Alben Shao Guangdong Nortel 4G Design ESN: 6-554-5301 From: Alben Shao Sent: 2009年9月17日 10:18 To: 'net-snmp-users@lists.sourceforge.net' Subject: A question about net-snmp agent extension Hi, I want to write a custom extension to the core net-snmp agent. As the tutorial said, usually I need to 1) write a MIB file 2)Write the related C file 3) Write a header file. And I think, if I want to use the default subhandler (e.g. use netsnmp_instance_int_handler for my integer object), only write the MIB file is OK, and no need to write the C/header file for registration. Because I don’t want to register a custom subhandler. Am I right? Thanks! Alben -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users