RE: Error using SNMPv3 in SUSE 9,3
Nils: > I created a SNMPv3 user with (and got success message afterwards) > > net-snmp-config --create-snmpv3-user -ro -x DES -a MD5 -A "mypw" -X > "mypw" nagios What success message? "mypw" is too short to work with the net-snmp agents (v5.4.1 and v5.5) that I've used. These require a minimum password length of 8 characters. I believe this restriction is part of the USM. > Logfile says: > > /var/lib/net-snmp/snmpd.conf: line 35: Error: Unknown authentication > protocol > > line 35 is > > oldEngineID 0x80001f8880b7ecfe285bdf6543 > > do I have to install a package, so that DES-encryption can be handled? Any encryption requires that your SUSE platform has the OpenSSL libraries installed. But none of this is going to work until you try a longer password, why not use "password?" Ron The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ 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
Error using SNMPv3 in SUSE 9,3
Hi there, I've got a SUSE 9.3 server I created a SNMPv3 user with (and got success message afterwards) > net-snmp-config --create-snmpv3-user -ro -x DES -a MD5 -A "mypw" -X "mypw" nagios then I changed /usr/share/snmp/snmpd.conf to > rouser nagios AuthPriv for forcing encryption then I startet the daemon (which wasn't running before): when I now run the command > snmpwalk -v3 -u nagios -a MD5 -A "mypw" -x DES -X "mypw" -l authPriv localhost I get the message >snmpwalk: Unknown user name Logfile says: > /var/lib/net-snmp/snmpd.conf: line 35: Error: Unknown authentication protocol line 35 is > oldEngineID 0x80001f8880b7ecfe285bdf6543 do I have to install a package, so that DES-encryption can be handled? I think, I had a similar problem some time ago, but don't quite remenber, what I had done to solve it. Thanks in advance for any help. Nils <>-- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ 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 of net-snmp
On 5 August 2010 12:37, AC. wrote: > I downloaded "net-snmp-5.4.3.tar.gz" again, unpacked it, and then executed > "./configure". [snip] > Then, I executed the "make" command. (# make -j3 -s 1>make-out.log > 2>make-err.log) Can you try *without* the -j3 option. It looks suspiciously as if one of the compilation jobs is trying to use the target of one of the others, before that job has finished. It would also be useful to redirect stdout and stderr to the same file (2>&1), so that we can coordinate error messages with the file that's being compiled at the time. Dave -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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: nmpd authcommunity context option missing
On 4 August 2010 23:04, Claus Klein wrote: > while working with snmpd V5.5 I tried to configure a mapping of v2c > community to v3 context with authcommunity. > > I was wondering that the man page is different from configuration: > > man snmpd.conf: > com2sec [-Cn CONTEXT] secName IPv4-network-address[/netmask] > community > authcommunity TYPES COMMUNITY [SOURCE [OID | -V VIEW [CONTEXT]]] > > macbook-pro:net-snmp-5.5 clausklein$ /usr/local/sbin/snmpd -H 2>&1 | > grep authcommunity > authcommunity authtype1,authtype2 community [default|hostname| > network/bits [oid|-V view]] Checking the history, the usage message for "authcommunity" (and related directives) wasn't updated when the context support was added. Now fixed. Thanks for the report. Dave -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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 of net-snmp
> I tried the method that you suggested yesterday. > > I downloaded "net-snmp-5.4.3.tar.gz" again, unpacked it, and then executed > "./configure". > > the "configure" patameter is as following (the same as before) > >--host=x86_64-linux \ > --with-cc="$CROSS_COMPILE"gcc \ > --with-endianness=little \ > --with-default-snmp-version="2" \ > --with-sys-contact="Unknown" \ > --with-sys-location="Unknown" \ > --with-logfile="/var/log" \ > --with-persistent-directory="/var/net-snmp/" \ > --disable-embedded-perl \ > --disable-perl-cc-checks \ > --disable-applications \ > --disable-manuals \ > --disable-scripts \ > --disable-snmptrapd-subagent \ > --without-opaque-special-types \ > --with-out-mib-modules="disman/event disman/schedule notification > notification-log-mib target ucd_snmp host agentx" \ > --without-kmem-usage \ > --with-cflags=-Os \ > --disable-debugging \ > --without-openssl > > The attached file, "config.log", is the log of this configured. > > Then, I executed the "make" command. (# make -j3 -s 1>make-out.log > 2>make-err.log) > > The attached file, "make-err.log", is the log about the error of this job. > > I don't know how to fix it, and please help me. > > Thanks. > > Bluce > > === make-err.log Warning: -L../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/default_store/../../snmplib/ Warning: -L../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/ASN/../../snmplib/.libs Warning: -L../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/ASN/../../snmplib/ Warning: -L../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/OID/../../snmplib/.libs Warning: -L../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/OID/../../snmplib/ Warning: -L../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../snmplib/.libs Warning: -L../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../snmplib/ Warning: -L../../agent/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/ Warning: -L../../agent/helpers/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/../../agent/helpers/ Warning: -L../../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/default_store/../../../snmplib/.libs Warning: -L../../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/agent/default_store/../../../snmplib/ Warning: -L../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/SNMP/../../snmplib/.libs Warning: -L../../snmplib/ changed to -L/home/bluce/work/net-snmp-5.4.3/perl/SNMP/../../snmplib/ Warning: -L../../apps changed to -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../apps Warning: -L../../agent changed to -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent Warning: -L../../agent/helpers changed to -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../agent/helpers Warning: -L../../snmplib/.libs changed to -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../snmplib/.libs Warning: -L../../snmplib changed to -L/home/bluce/work/net-snmp-5.4.3/perl/TrapReceiver/../../snmplib snmpUDPDomain.c: In function '_sock_buffer_maximize': snmpUDPDomain.c:325: warning: passing argument 5 of 'getsockopt' from incompatible pointer type /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *' snmpUDPDomain.c:362: warning: passing argument 5 of 'getsockopt' from incompatible pointer type /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *' snmpUDPDomain.c: In function 'netsnmp_sock_buffer_set': snmpUDPDomain.c:507: warning: passing argument 5 of 'getsockopt' from incompatible pointer type /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *' snmpUDPDomain.c:542: warning: passing argument 5 of 'getsockopt' from incompatible pointer type /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/sys/socket.h:190: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *' mibgroup/util_funcs.c: In function 'get_exec_output': mibgroup/util_funcs.c:291: warning: passing argument 4 of 'run_exec_command' from incompatible pointer type mibgroup/utilities/execute.h:9: note: expected 'int *' but argument is of type 'ssize_t *' mibgroup/util_funcs.c: In function 'restart_doit': mibgroup/util_funcs.c:719: warning: 'sigsetmask' is deprecated (declared at /opt/x-tools/x86_64-unknown-linux-gnu/bin/../x86_64-unknown-linux-gnu//sys-root/usr/include/signal.h:199) mibgroup/if-mib/data_access/interface.c: In function '_free_int
RE: snmpcmd Manpage is Broken
>From the Snmpd.conf man page http://www.net-snmp.org/docs/man/snmpd.conf.html It actually looks like all the links on the page that reference /docs are broken. It looks like someone forgot to include a " at the end of most of the link references (on the snmpd.conf.html page). 'snmptrapd.conf(5)' man page for discussion of other view types. Should be an easy fix. Thanks - Mike Prest Mike Prest IT Manager, HighBeam Research a division of The Gale Group, Inc. | Cengage Learning 65 E. Wacker Place, Suite 400, Chicago, IL 60601 (o) 312-416-3896| (e) ad...@highbeam.com (w) www.highbeam.com | www.encyclopedia.com | www.accessmylibrary.com -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Thursday, August 05, 2010 3:00 AM To: Prest, Mike Cc: net-snmp-users@lists.sourceforge.net Subject: Re: snmpcmd Manpage is Broken On 4 August 2010 21:17, Prest, Mike wrote: > The snmpcmd Manpage doesn't work. It generates a 404. Where is the link you are following, please? Dave -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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: snmpcmd Manpage is Broken
On 5 August 2010 12:04, Prest, Mike wrote: > From the Snmpd.conf man page > http://www.net-snmp.org/docs/man/snmpd.conf.html > > It actually looks like all the links on the page that reference /docs are > broken. > It looks like someone forgot to include a " at the end of most of the link > references > (on the snmpd.conf.html page). Unfortunately, it's not just that one page. The same problem seems to affect most of the man page web pages. > Should be an easy fix. Easy, but tedious! OK - I've updated the files in the SVN repository. I'm not sure how long that will take to propogate through to the live web pages. I'm also not sure where this problem came from. I've just tried re-creating the HTML man pages from the current source, and the link syntax looks fine to me. (I'm not convinced that all of the links are actually correct, but that's a different problem) Dave -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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
implementing traps...
hi, i want to implement snamp standard traps like coldstart ,warm start, linkdown,linkup... Using mib2c i generated the template code for coldstart? after this what to edit in coldStart.c? coldstart.c contains : /* * Note: this file originally auto-generated by mib2c using *: mib2c.notify.conf,v 5.2.2.1 2004/04/15 12:29:06 dts12 Exp $ */ #include #include #include #include "coldStart.h" static oid snmptrap_oid[] = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0}; int send_coldStart_trap( void ) { netsnmp_variable_list *var_list = NULL; oid coldStart_oid[] = { 1,3,6,1,6,3,1,1,5,1 }; /* * Set the snmpTrapOid.0 value */ snmp_varlist_add_variable(&var_list, snmptrap_oid, OID_LENGTH(snmptrap_oid), ASN_OBJECT_ID, coldStart_oid, sizeof(coldStart_oid)); /* * Add any extra (optional) objects here */ /* * Send the trap to the list of configured destinations * and clean up */ send_v2trap( var_list ); snmp_free_varbind( var_list ); return SNMP_ERR_NOERROR; } thank you looking forward for ur help with regards ganesy y http://www.bel-india.comVisit BEL Website Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Bharat Electronics or supp...@bel.co.in immediately and destroy all copies of this message and any attachments. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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: snmpcmd Manpage is Broken
On 4 August 2010 21:17, Prest, Mike wrote: > The snmpcmd Manpage doesn't work. It generates a 404. Where is the link you are following, please? Dave -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ 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 of net-snmp
Before this change, I make it success for the old system. The imformation of the old embedded system is: Kernel: linux-2.6.14 power pc cross compile: powerpc-440-linux-gun Now I have to change system for Kernel: linux-2.6.32.9 x86_64 cross conpile-x86_64-unknow-linux-gun I jsut modify the parameter of configure file with --host=ppc-linux to --host=x86_64-linux, --with-endianness=big to --with-endianness=little, and the $CROSS_COMPILE is changed from powerpc-440-linux-gun- to x86_64-unknow-linux-gun-. After I executed the "./configure", I make it by typing "make -j3 -s". Then I got the "perlmodules" error! More Information is as following: 1. my configure: ./configure \ --host=x86_64-linux \ --with-cc="$CROSS_COMPILE"gcc \ --with-endianness=little \ --with-default-snmp-version="2" \ --with-sys-contact="Unknown" \ --with-sys-location="Unknown" \ --with-logfile="/var/log" \ --with-persistent-directory="/var/net-snmp/" \ --disable-embedded-perl \ --disable-perl-cc-checks \ --disable-applications \ --disable-manuals \ --disable-scripts \ --disable-snmptrapd-subagent \ --without-opaque-special-types \ --with-out-mib-modules="disman/event disman/schedule notification notification-log-mib target ucd_snmp host agentx" \ --with-mib-modules="myScalar myTable" \ --without-kmem-usage \ --with-cflags=-Os \ --disable-debugging \ --without-openssl 2. uname -a Linux bluce-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux 3. perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.24-23-server, archname=i486-linux-gnu-thread-multi uname='linux vernadsky 2.6.24-23-server #1 smp wed apr 1 22:22:14 utc 2009 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.4.1', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.10.1.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0 gnulibc_version='2.10.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Oct 1 2009 22:19:26 @INC: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl It perplexed me 3 days, please help me. >_< Thanks. 2010/8/4 Dave Shield > On 4 August 2010 03:22, AC. wrote: > > making all in > /home/bluce/work/root/filesystem/packages/net-snmp-5.4/snmplib > > make[1]: *** No rule to make target > > `/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Config.pm', needed by > `Makefile'. Stop. > > make: *** [perlmodules] Error 1 > > > > Does that mean I must get and install the perl5 with 64-bit? > > You're getting this in the *snmplib* directory?!? > I've seen something similar when compiling the perl modules, > but never with snmplib. > > What I would suggest is that you start again with a fresh source > tree. Unpack the tarball from scratch and ru
snmpcmd Manpage is Broken
The snmpcmd Manpage doesn't work. It generates a 404. Error 404 Sorry, the page "/docs/man/snmpcmd.html>snmpcmd(5)%20for%20details.-m%20MIBLISTSpecifies%20a%20colon%20separated%20list%20of%20MIB%20modules%20to%20load%20for%20thisapplication.%20%20This%20overrides%20the%20environment%20variable%20MIBS.See%20-- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ 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