100% CPU Problem
1753308 194627 / (/dev/dsk/c2t0d0s0) snmpd 2735 root txt VREG 33,320 213204 8342 /lib/ld.so.1 snmpd 2735 root0u VCHR 13,2 6815752 /devices/pseudo/[EMAIL PROTECTED]:null snmpd 2735 root1u VCHR 13,2 6815752 /devices/pseudo/[EMAIL PROTECTED]:null snmpd 2735 root2u VCHR 13,2 6815752 /devices/pseudo/[EMAIL PROTECTED]:null snmpd 2735 root3w VREG 33,320 7442 189560 /var/log/snmpd.log snmpd 2735 root4u FIFO 0x997b4ba00t1 24665851 (fifofs) PIPE->0x997b4c30 snmpd 2735 root5u FIFO 0x997b4c300t1 24665851 (fifofs) PIPE->0x997b4ba0 snmpd 2735 root6r VCHR 90,0 47185924 /devices/pseudo/[EMAIL PROTECTED]:kstat snmpd 2735 root7r VCHR 90,0 47185924 /devices/pseudo/[EMAIL PROTECTED]:kstat snmpd 2735 root8u FIFO 0xfe8a0432d2c00t1 24665852 (fifofs) PIPE->0xfe8a0432d350 snmpd 2735 root9u FIFO 0xfe8a0432d3500t1 24665852 (fifofs) PIPE->0xfe8a0432d2c0 snmpd 2735 root 10u IPv4 0xfe89fdedd4000t0 UDP *:snmp snmpd 2735 root 11r DOOR 0t0 47 /var/run/name_service_door (door to nscd[1084]) (FA:->0x9912be00) snmpd 2735 root 12u IPv4 0xfe89fde892000t0 UDP *:56621 snmpd 2735 root 13u IPv4 0xfe89fde8f8000t0 UDP *:56622 snmpd 2735 root 14u IPv4 0x99367c000t0 UDP *:56623 snmpd 2735 root 15r VREG 273,1705 2 /etc/mnttab snmpd 2735 root 16u VCHR 44,212 23068676 /devices/pseudo/[EMAIL PROTECTED]:arp->udp->tcp->arp->ip What do you make of this? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: 5.4 compile problem on x86 Solaris 10...
On Wed, Nov 29, 2006 at 11:18:35PM +0100, Thomas Anders wrote: > Jean-Sebastien Morisset wrote: >> I'm upgrading from 5.3.0.1 to 5.4 and ran accross a little problem on an >> x86 Solaris 10 box -- this is my first attempt at compiling 5.4. > > What's your full configure line? ./configure --enable-internal-md5 --with-perl-modules --enable-shared --with-openssl=/usr/local/ssl --with-mib-modules='host disman/event-mib smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod udp-mib tcp-mib' --with-cc=gcc --with-default-snmp-version='2' --with-sys-contact='***' --with-sys-location='' --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp/ >> /bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 >> -Dsolaris2=solaris2 -rpath /usr/local/lib -version-info 15:0:0 -o >> libnetsnmp.la snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo >> [...] >> gcc -shared -Wl,-h -Wl,libnetsnmp.so.15 -o .libs/libnetsnmp.so.15.0.0 >> .libs/snmp_client.o [...] >> false cru .libs/libnetsnmp.a snmp_client.o mib.o parse.o snmp_api.o > > Looks like configure/libtool/gcc have decided to use "false" instead of "ar" > on > your system which is somewhat strange. Can you find out why? Do you have "ar" > along your $PATH at all? Is this your own gcc installation or a third-party > package? What's the output of "gcc -v"? Have you ever said something like > "--with-ar=false" where a path to a working ar was expected instead? "ar" was NOT in my path, for some reason. Thanks for catching that! It compiles fine now, except for a few little errors: [snip!] /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c -o mibgroup/disman/event/mteObjects.lo mibgroup/disman/event/mteObjects.c gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibgroup/disman/event/mteObjects.c -fPIC -DPIC -o mibgroup/disman/event/.libs/mteObjects.o mibgroup/disman/event/mteObjects.c: In function `_init_default_mteObject': mibgroup/disman/event/mteObjects.c:50: warning: passing arg 2 of `mteObjects_addOID' discards qualifiers from pointer target type mibgroup/disman/event/mteObjects.c:50: warning: passing arg 4 of `mteObjects_addOID' discards qualifiers from pointer target type gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibgroup/disman/event/mteObjects.c -o mibgroup/disman/event/mteObjects.o >/dev/null 2>&1 [snip!] /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c -o mibgroup/kernel_sunos5.lo mibgroup/kernel_sunos5.c gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibgroup/kernel_sunos5.c -fPIC -DPIC -o mibgroup/.libs/kernel_sunos5.o mibgroup/kernel_sunos5.c: In function `getKstatInt': mibgroup/kernel_sunos5.c:277: warning: passing arg 2 of `kstat_lookup' discards qualifiers from pointer target type mibgroup/kernel_sunos5.c:277: warning: passing arg 4 of `kstat_lookup' discards qualifiers from pointer target type mibgroup/kernel_sunos5.c:290: warning: passing arg 2 of `kstat_data_lookup' discards qualifiers from pointer target type mibgroup/kernel_sunos5.c: In function `getKstat': mibgroup/kernel_sunos5.c:413: warning: passing arg 4 of `kstat_lookup' discards qualifiers from pointer target type mibgroup/kernel_sunos5.c: In function `getKstatString': mibgroup/kernel_sunos5.c:569: warning: passing arg 4 of `kstat_lookup' discards qualifiers from pointer target type gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibgroup/kernel_sunos5.c -o mibgroup/kernel_sunos5.o >/dev/null 2>&1 [snip!] "make test" fine, except for: 44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL My environment info is: # uname -a SunOS gessolx1 5.10 Generic_Patch_118844-30 i86pc i386 i86pc # gcc -v Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.3.2 # echo $PATH /root/bin:/usr/local/sbin:/usr/local/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/sfw/i386-sun-solaris2.10/bin:/usr/lib/nis:/usr/openv/netbackup/bin Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http:
5.4 compile problem on x86 Solaris 10...
Hi everyone, I'm upgrading from 5.3.0.1 to 5.4 and ran accross a little problem on an x86 Solaris 10 box -- this is my first attempt at compiling 5.4. - Net-SNMP configuration summary: - SNMP Versions Supported:1 2c 3 Net-SNMP Version: 5.4 Building for: solaris2 Network transport support: Callback Unix TCP UDP SNMPv3 Security Modules: usm Agent MIB code: host disman/event-mib smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod udp-mib tcp-mib default_modules => host/hr_system host/hr_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst disman/event smux/smux util_funcs agentx/master agentx/subagent udp-mib/udpEndpointTable tcp-mib/tcpConnectionTable tcp-mib/tcpListenerTable snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host Embedded Perl support: disabled SNMP Perl modules: building -- not embeddable SNMP Python modules:disabled Authentication support: MD5 SHA1 Encryption support: DES AES - [snip!] /bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -rpath /usr/local/lib -version-info 15:0:0 -o libnetsnmp.la snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo snmp_auth.lo asn1.lo md5.lo snmp_parse_args.lo system.lo vacm.lo int64.lo read_config.lo pkcs.lo snmp_debug.lo tools.lo snmp_logging.lo text_utils.lo snmpv3.lo lcd_time.lo keytools.lo file_utils.lo scapi.lo callback.lo default_store.lo snmp_alarm.lo data_list.lo oid_stash.lo fd_event_manager.lo mt_support.lo snmp_enum.lo snmp-tc.lo snmp_service.lo snprintf.lo strlcpy.lo strtol.lo strtoul.lo strtok_r.lo snmp_transport.lo snmpUDPDomain.lo snmpTCPDomain.lo snmpUnixDomain.lo snmpCallbackDomain.lo snmp_secmod.lo snmpusm.lo snmp_version.lo check_varbind.lo container.lo container_binary_array.lo container_null.lo container_list_ssll.lo container_iterator.lo cmu_compat.lo ucd_compat.lo -L/usr/local/ssl/lib gcc -shared -Wl,-h -Wl,libnetsnmp.so.15 -o .libs/libnetsnmp.so.15.0.0 .libs/snmp_client.o .libs/mib.o .libs/parse.o .libs/snmp_api.o .libs/snmp.o .libs/snmp_auth.o .libs/asn1.o .libs/md5.o .libs/snmp_parse_args.o .libs/system.o .libs/vacm.o .libs/int64.o .libs/read_config.o .libs/pkcs.o .libs/snmp_debug.o .libs/tools.o .libs/snmp_logging.o .libs/text_utils.o .libs/snmpv3.o .libs/lcd_time.o .libs/keytools.o .libs/file_utils.o .libs/scapi.o .libs/callback.o .libs/default_store.o .libs/snmp_alarm.o .libs/data_list.o .libs/oid_stash.o .libs/fd_event_manager.o .libs/mt_support.o .libs/snmp_enum.o .libs/snmp-tc.o .libs/snmp_service.o .libs/snprintf.o .libs/strlcpy.o .libs/strtol.o .libs/strtoul.o .libs/strtok_r.o .libs/snmp_transport.o .libs/snmpUDPDomain.o .libs/snmpTCPDomain.o .libs/snmpUnixDomain.o .libs/snmpCallbackDomain.o .libs/snmp_secmod.o .libs/snmpusm.o .libs/snmp_version.o .libs/check_varbind.o .libs/container.o .libs/container_binary_array.o .libs/container_null.o .libs/container_list_ssll.o .libs/container_iterator.o .libs/cmu_compat.o .libs/ucd_compat.o -L/usr/local/ssl/lib -lc (cd .libs && rm -f libnetsnmp.so.15 && ln -s libnetsnmp.so.15.0.0 libnetsnmp.so.15) (cd .libs && rm -f libnetsnmp.so && ln -s libnetsnmp.so.15.0.0 libnetsnmp.so) false cru .libs/libnetsnmp.a snmp_client.o mib.o parse.o snmp_api.o snmp.o snmp_auth.o asn1.o md5.o snmp_parse_args.o system.o vacm.o int64.o read_config.o pkcs.o snmp_debug.o tools.o snmp_logging.o text_utils.o snmpv3.o lcd_time.o keytools.o file_utils.o scapi.o callback.o default_store.o snmp_alarm.o data_list.o oid_stash.o fd_event_manager.o mt_support.o snmp_enum.o snmp-tc.o snmp_service.o snprintf.o strlcpy.o strtol.o strtoul.o strtok_r.o snmp_transport.o snmpUDPDomain.o snmpTCPDomain.o snmpUnixDomain.o snmpCallbackDomain.o snmp_secmod.o snmpusm.o snmp_version.o check_varbind.o container.o container_binary_array.o container_null.o container_list_ssll.o container_iterator.o cmu_compat.o ucd_compat.o make[1]: *** [libnetsnmp.la] Error 1 make[1]: Leaving directory `/usr/local/src/net-snmp-5.4/snmplib' make: *** [subdirs] Error 1 # locate libnetsnmp.la /usr/local/lib/libnetsnmp.la /usr/sfw/lib/libnetsnmp.la Any ideas? BTW, the reason I'm upgrading from 5.3.0.1 is that I've busted the HD oids on some 3+ TB filesystems. I'm hoping 5.4 will fix this. :-) # snmpwalk sunbox-a1 .1.3.6.1.4.1.2021.9.1.6 UCD-SNMP-MIB::dskTotal.1 = INTEGER: 75066407 UCD-SNMP-MIB::dskTotal.2 = INTEGER: -2147483648 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoris
Re: Excluding OIDs -- is this right?
On Mon, Oct 02, 2006 at 01:18:19PM -0400, Dominique bastien wrote: > Try with a mask 0xff:0xa0 at the end to exclude the > interface. Oh, nice! Thanks! js. > ex: > view read excluded > interfaces.ifTable.ifEntry.ifIndex.6 0xff:0xa0 > > --- Jean-Sebastien Morisset <[EMAIL PROTECTED]> > wrote: [snip!] -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> - 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 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
Excluding OIDs -- is this right?
Hi everyone, I've been using the "rocommunity" directive, but had to use the whole com2sec/group/access/view thing to exclude virtual interaces. Although the following works, I'm not sure if the syntax is correct... com2sec read default group read v1 read group read v2c read group read usm read access read "" any noauth exact read none none view read included .1 80 # exclude virtual interfaces view read excluded interfaces.ifTable.ifEntry.ifIndex.3 view read excluded interfaces.ifTable.ifEntry.ifIndex.4 view read excluded interfaces.ifTable.ifEntry.ifIndex.5 view read excluded interfaces.ifTable.ifEntry.ifIndex.6 Does this look good? If anyone can suggest an alternative to exclude virtual interfaces on Solaris, I'd appreciate any tips. Thanks! js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> - 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 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: Values for 1Gb interfaces...
Dominique, Thanks, although Net-SNMP does not seem to return this OID: # snmpwalk -v 2c localhost .1.3.6.1.2.1.31.1.1.1.6 IF-MIB::ifHCInOctets = No Such Object available on this agent at this OID Any ideas? My compilation options are: ./configure --enable-internal-md5 --with-perl-modules --enable-shared --with-openssl=/usr/local/ssl --with-mib-modules='host disman/event-mib smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod' --with-cc=gcc --with-default-snmp-version='2' --with-sys-contact='[EMAIL PROTECTED]' --with-sys-location='' --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp/ Thanks, js. On Mon, Sep 18, 2006 at 01:23:06PM -0400, Dominique bastien wrote: > Use the ifXtable information. > > 1.3.6.1.2.1.31.1.1.1.6 > > p.s. Don't forget to be in v2c because the 64bits > counter are not in v1. > > Dominique > > --- Jean-Sebastien Morisset <[EMAIL PROTECTED]> > wrote: > >> Hi everyone, >> >> I'm using Net-SNMP 5.3.0.1 on Solaris servers. I may >> have a little >> problem getting stats on 1Gb interfaces -- the 32 >> bit counter appears to >> roll too frequently. I'm polling the values every 30 >> secs, but this may >> not be enough. Is there a 64 bit counter available >> for interface bytes? >> I'm currently using these OIDs: >> >> # snmpwalk localhost .1.3.6.1.2.1.2.2.1.16 >> IF-MIB::ifOutOctets.1 = Counter32: 1238282472 >> IF-MIB::ifOutOctets.2 = Counter32: 768231585 >> IF-MIB::ifOutOctets.3 = Counter32: 2424394057 >> IF-MIB::ifOutOctets.4 = Counter32: 0 >> IF-MIB::ifOutOctets.5 = Counter32: 0 >> IF-MIB::ifOutOctets.6 = Counter32: 0 >> >> What are people doing to gather stats on a 1Gb >> interface? >> >> Thanks, >> js. >> -- >> Jean-Sebastien Morisset, Sr. UNIX Administrator >> <[EMAIL PROTECTED]> >> Personal Home Page <http://jsmoriss.mvlan.net/> >> Underwater and Travel Photographs >> <http://www.mvpix.com/> >> >> > - >> Using Tomcat but need to do more? Need to support >> web services, security? >> Get stuff done quickly with pre-integrated >> technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 >> based on Apache Geronimo >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > https://lists.sourceforge.net/lists/listinfo/net-snmp-users >> > > -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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
Values for 1Gb interfaces...
Hi everyone, I'm using Net-SNMP 5.3.0.1 on Solaris servers. I may have a little problem getting stats on 1Gb interfaces -- the 32 bit counter appears to roll too frequently. I'm polling the values every 30 secs, but this may not be enough. Is there a 64 bit counter available for interface bytes? I'm currently using these OIDs: # snmpwalk localhost .1.3.6.1.2.1.2.2.1.16 IF-MIB::ifOutOctets.1 = Counter32: 1238282472 IF-MIB::ifOutOctets.2 = Counter32: 768231585 IF-MIB::ifOutOctets.3 = Counter32: 2424394057 IF-MIB::ifOutOctets.4 = Counter32: 0 IF-MIB::ifOutOctets.5 = Counter32: 0 IF-MIB::ifOutOctets.6 = Counter32: 0 What are people doing to gather stats on a 1Gb interface? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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
Frequency of ifOutOctets stats???
Hi everyone, I have a little problem... I need to poll the value of ifOutOctets every few seconds, but Net-SNMP does not seem to keep this OID up to date. I wrote a little script to compare kstat with an snmpget of ifOutOctets and found Net-SNMP lagging behind. The following output shows the number of bytes transfered from one second to the next: [EMAIL PROTECTED]:~/tmp] # ./go Tue Sep 12 16:29:19 EDT 2006 : snmp , kstat Tue Sep 12 16:29:20 EDT 2006 : snmp 0, kstat 1714258 Tue Sep 12 16:29:21 EDT 2006 : snmp 0, kstat 3090239 Tue Sep 12 16:29:22 EDT 2006 : snmp 0, kstat 1473948 Tue Sep 12 16:29:23 EDT 2006 : snmp 0, kstat 1572216 Tue Sep 12 16:29:25 EDT 2006 : snmp 0, kstat 1808569 Tue Sep 12 16:29:26 EDT 2006 : snmp 0, kstat 1625163 Tue Sep 12 16:29:27 EDT 2006 : snmp 0, kstat 1818923 Tue Sep 12 16:29:28 EDT 2006 : snmp 0, kstat 1745207 Tue Sep 12 16:29:29 EDT 2006 : snmp 0, kstat 1531445 Tue Sep 12 16:29:30 EDT 2006 : snmp 0, kstat 1469064 Tue Sep 12 16:29:31 EDT 2006 : snmp 0, kstat 3248933 Tue Sep 12 16:29:32 EDT 2006 : snmp 0, kstat 1513737 Tue Sep 12 16:29:33 EDT 2006 : snmp 0, kstat 1422405 Tue Sep 12 16:29:34 EDT 2006 : snmp 0, kstat 1877322 Tue Sep 12 16:29:35 EDT 2006 : snmp 0, kstat 1480976 Tue Sep 12 16:29:37 EDT 2006 : snmp 38405473, kstat 1366733 Tue Sep 12 16:29:38 EDT 2006 : snmp 0, kstat 1649049 Tue Sep 12 16:29:39 EDT 2006 : snmp 0, kstat 1596821 Tue Sep 12 16:29:40 EDT 2006 : snmp 0, kstat 3106054 Tue Sep 12 16:29:41 EDT 2006 : snmp 0, kstat 1452236 Tue Sep 12 16:29:42 EDT 2006 : snmp 0, kstat 1474632 Tue Sep 12 16:29:43 EDT 2006 : snmp 0, kstat 1391611 Tue Sep 12 16:29:44 EDT 2006 : snmp 0, kstat 1618906 Tue Sep 12 16:29:45 EDT 2006 : snmp 0, kstat 1447613 Tue Sep 12 16:29:46 EDT 2006 : snmp 0, kstat 1531096 Tue Sep 12 16:29:47 EDT 2006 : snmp 0, kstat 1612960 Tue Sep 12 16:29:49 EDT 2006 : snmp 0, kstat 1696776 Tue Sep 12 16:29:50 EDT 2006 : snmp 0, kstat 3293827 Tue Sep 12 16:29:51 EDT 2006 : snmp 0, kstat 1700491 Tue Sep 12 16:29:52 EDT 2006 : snmp 0, kstat 1521244 Tue Sep 12 16:29:53 EDT 2006 : snmp 0, kstat 1395066 Tue Sep 12 16:29:54 EDT 2006 : snmp 0, kstat 1520107 Tue Sep 12 16:29:55 EDT 2006 : snmp 0, kstat 1495667 Tue Sep 12 16:29:56 EDT 2006 : snmp 0, kstat 1576788 Tue Sep 12 16:29:57 EDT 2006 : snmp 0, kstat 1549169 Tue Sep 12 16:29:58 EDT 2006 : snmp 0, kstat 2993925 Tue Sep 12 16:29:59 EDT 2006 : snmp 0, kstat 1712793 Tue Sep 12 16:30:01 EDT 2006 : snmp 0, kstat 1605770 Tue Sep 12 16:30:02 EDT 2006 : snmp 0, kstat 1523905 Tue Sep 12 16:30:03 EDT 2006 : snmp 0, kstat 1283011 Tue Sep 12 16:30:04 EDT 2006 : snmp 42570989, kstat 821472 Tue Sep 12 16:30:05 EDT 2006 : snmp 0, kstat 908148 Tue Sep 12 16:30:06 EDT 2006 : snmp 0, kstat 509385 Tue Sep 12 16:30:07 EDT 2006 : snmp 1806619, kstat 389086 Tue Sep 12 16:30:08 EDT 2006 : snmp 0, kstat 70395 Tue Sep 12 16:30:09 EDT 2006 : snmp 0, kstat 23384 Here's the simple script I wrote to display these results: #!/bin/sh while : do snmp_bytes="`snmpget localhost .1.3.6.1.2.1.2.2.1.16.3 2>/dev/null | sed 's/^.*: \([0-9]*\)$/\1/'`" [ "$snmp_last" ] && snmp_change="`expr $snmp_bytes - $snmp_last`" snmp_last="$snmp_bytes" kstat_bytes="`kstat -p bge:1:bge1:obytes64|sed -n 's/^[a-z0-9:]*[^0-9]*\([0-9]*\)$/\1/p'`" [ "$kstat_last" ] && kstat_change="`expr $kstat_bytes - $kstat_last`" kstat_last="$kstat_bytes" echo "`date` : snmp $snmp_change, kstat $kstat_change" sleep 1 done Does anyone know how I can get Net-SNMP to return accurate second-by-second stats for ifOutOctets? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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
Net-SNMP + Solaris kstat + OpenNMS
Hi everyone, I wrote a little Net-SNMP "pass_persist" script to allow polling of Solaris kstat information, and then display the results in OpenNMS. Here are some of the details: snmpd.conf: ---begin--- pass_persist .1.3.6.1.4.1.8072.100.2 /usr/perl5/5.8.4/bin/perl /usr/local/share/snmp/snmp-kstat.pl end Note: The perl used should know about the Kstat.pm perl module. Here's a sample from a Solaris 10 x86 server: # locate Kstat.pm /usr/perl5/5.6.1/lib/Sun/Solaris/Kstat.pm /usr/perl5/5.8.4/lib/Sun/Solaris/Kstat.pm snmp.conf: ---begin--- mibs+NET-SNMP-PASS-PERSIST-MIB end The NET-SNMP-PASS-PERSIST-MIB.txt MIB file is attached. Only one level has been defined, allowing you to do stuff like "snmpwalk hostname kStat". The Solaris "kstat" tool uses sd/ssd/md device names. To map these to actual /dev device names and mount points, I've used MapDev.pm. Unfortunately this CPAN module will only install on Solaris 2.7 or older. As-is the module works fine on Solaris 10, so I've copied it to a /usr/local/share/snmp/lib/Solaris/ directory. You may have to edit the "use lib" directive in the snmp-kstat.pl script depending on where you locate it. I've attached a copy, just in case. snmp-kstat.conf (attached): I've only used this script to poll sd/ssd/md device nread and nwritten values. Since these are 64bit, I divide them by 10240 before sending them. This means that whatever analysis you do, you have to multiply the value by 10240. The config file is probably self explanitory (I hope). :-) OpenNMS collectd-configuration.xml: ---begin--- (pollerCategory ~ "kStat") file:/usr/local/opennms/etc/include zzz from poll-outages.xml zzz end I make use of the OpenNMS "Poller Category" asset value. You must include the word "kStat" for each server you want to be polled. OpenNMS datacollection-config.xml: ---begin--- RRA:AVERAGE:0.5:1:44640 RRA:AVERAGE:0.5:5:107136 RRA:MIN:0.5:1:44640 RRA:MIN:0.5:5:107136 RRA:MAX:0.5:1:44640 RRA:MAX:0.5:5:107136 . . . . . . . . . .1.3.6.1.4.1.8072.3. kstat-group end In the snmp-kstat.conf file I attached, there are also some .1.3.6.1.4.1.8072.100.2.22.x.2.x (sd5,a), .1.3.6.1.4.1.8072.100.2.22.x.3.x (sd5,c), etc. values that you would probably want to include in the datacollection file. OpenNMS snmp-graph.properties: ---begin--- report.ksmd0101nrw.name=Bytes per Second on ksmd0101 report.ksmd0101nrw.columns=ksmd0101nread,ksmd0101nwritten report.ksmd0101nrw.type=node report.ksmd0101nrw.propertiesValues=ksmd0101name,ksmd0101class report.ksmd0101nrw.command=--title="Bytes per Second on {ksmd0101class} {ksmd0101name}" \ --lower-limit 0 --upper-limit 1000 \ DEF:nread={rrd1}:ksmd0101nread:AVERAGE \ DEF:nwritten={rrd2}:ksmd0101nwritten:AVERAGE \ CDEF:nreadbytes=nread,10240,* \ CDEF:nwrittenbytes=nwritten,10240,* \ LINE1:nreadbytes#cc:"Read " \ GPRINT:nreadbytes:AVERAGE:"Avg \\: @8.2 @s" \ GPRINT:nreadbytes:MIN:"Min \\: @8.2 @s" \ GPRINT:nreadbytes:MAX:"Max \\: @8.2 @s\\n" \ LINE1:nwrittenbytes#00cc00:"Written" \ GPRINT:nwrittenbytes:AVERAGE:"Avg \\: @8.2 @s" \ GPRINT:nwrittenbytes:MIN:"Min \\: @8.2 @s" \ GPRINT:nwrittenbytes:MAX:"Max \\: @8.2 @s\\n" end The above is just a sample. You'd have to create many more. The snmp-kstat.conf file attached needs 5 graph blocks to display all the md and sd values. Want to know what it looks like? I've attached a graph.png file to give you an idea... LateR! js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> NET-SNMP-PASS-PERSIST-MIB DEFINITIONS ::= BEGIN -- -- MIB objects for netSnmp pass_persist directive -- IMPORTS MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE FROM SNMPv2-SMI SnmpAdminString FROM SNMP-FRAMEWORK-MIB netSnmp FROM NET-SNMP-MIB ; PassPersist MODULE-IDENTITY LAST-UPDATED "20060313Z" ORGANIZATION "www.mvlan.com" CONTACT-INFO "Jean-Sebastien Morisset, email: [EMAIL PROTECTED]" DESCRIPTION "MIB objects for netSnmp pass_persist directive" REVISION "20060
No -p port parameter?
Hi everyone, I'm trying to snmpwalk a server that uses a different port number (1661). This isn't a port number I would usually use, so I don't want to add it as a default to my snmp.conf file. Is there a way to specify the port number on the command line of snmpwalk? BTW, I'm using Net-SNMP v5.3.0.1. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: "Sub-id not found" error?
On Tue, Mar 28, 2006 at 09:08:34AM +0100, Dave Shield wrote: > On Mon, 2006-03-27 at 15:46 -0500, Jean-Sebastien Morisset wrote: > >> If I stop cron using the following in my snmpd.conf file: >> >> monitor -S -r 128 -o prNames -o prErrMessage "procTable" prErrorFlag != 0 >> >> Then it work fine, > > As expected - good. > >> BUT if I use this _instead_: >> >> monitor -S -r 128 -o prNames.2 -o prErrMessage.2 "procTable.2" prErrorFlag.2 >> != 0 >> >> Then it doesn't work. > > Try > > monitor -I -S -r 128 > > The "-I" flag indicates that this monitor entry refers to a specific > instance, rather than a wildcarded object. Aha! That was the bit I was missing! :-) I'm a happy camper now! All my lmSensor traps are working. Woohoo! :-) >>I had to split the procTable because the standard >> monitor would return erroneous errors for running processes. For >> example: >> >> mteTriggerFired trap received from gessolx1.dev.me.org: >>procTable .1.3.6.1.4.1.2021.2.1.100.2 1 cron >> >> I'd set "proc cron 1 1" so a trap shouldn't have been sent. > > What does walking the procTable show in such a situation? > It might be worth tweaking the "monitor" line to report the > prErrorFlag and prCount values as part of the trap, so you > can see what's actually happening. I haven't spotted a pattern yet. It happens at all hours on just about any process, although cron keeps on coming up more often. Hopefully switching from "monitor -S -r 128 -o prNames ..." to "monitor -S -I -r 128 -o prNames.1 ..." will fix my problem. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: "Sub-id not found" error?
On Mon, Mar 27, 2006 at 03:27:55PM -0500, Jean-Sebastien Morisset wrote: > On Mon, Mar 27, 2006 at 01:49:41PM -0500, Jean-Sebastien Morisset wrote: >> On Mon, Mar 27, 2006 at 07:43:45PM +0200, Thomas Anders wrote: >>> Jean-Sebastien Morisset wrote: >>>> I'm trying to debug some monitoring lines in my snmpd.conf file that >>>> aren't working. After restarting snmpd, I get the following error in my >>>> snmpd.log file. Any ideas what this might mean? >>>> >>>> # tail -f /var/log/snmpd.log >>>> NET-SNMP version 5.3.0.1 >>>> send response: (Sub-id not found: iso -> lmFanSensorsValue) >>> >>> Are you running 5.3.0.1 *with* official patches >>> (www.net-snmp.org/official_patches) applied? >> >> "Official Patches"? Oh man... Thanks, I'm on it. :-) > > Thomas, > > I applied the disman.pat and oid-names2_5.3.patch patches, but I'm still > getting: > > # tail -f /var/log/snmpd.log > NET-SNMP version 5.3.0.1 > send response: (Sub-id not found: (top) -> lmMiscSensorsValue) > -- IF-MIB::ifNumber.0 > send response: > -- SNMPv2-MIB::sysObjectID.0 > > Should I apply other patches? Thomas, I may be on to something... # snmpwalk -c roex25mb devunix6 prNames.2 UCD-SNMP-MIB::prNames.2 = STRING: cron If I stop cron using teh following in my snmpd.conf file: monitor -S -r 128 -o prNames -o prErrMessage "procTable" prErrorFlag != 0 Then it work fine, BUT if I use this _instead_: monitor -S -r 128 -o prNames.2 -o prErrMessage.2 "procTable.2" prErrorFlag.2 != 0 Then it doesn't work. I had to split the procTable because the standard monitor would return erroneous errors for running processes. For example: mteTriggerFired trap received from gessolx1.dev.me.org: procTable .1.3.6.1.4.1.2021.2.1.100.2 1 cron I'd set "proc cron 1 1" so a trap shouldn't have been sent. Since most of the lmSensors are checked using the oidname.# method, then it's no wonder it doesn't work. Is there another patch I should try? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: "Sub-id not found" error?
On Mon, Mar 27, 2006 at 01:49:41PM -0500, Jean-Sebastien Morisset wrote: > On Mon, Mar 27, 2006 at 07:43:45PM +0200, Thomas Anders wrote: >> Jean-Sebastien Morisset wrote: >>> I'm trying to debug some monitoring lines in my snmpd.conf file that >>> aren't working. After restarting snmpd, I get the following error in my >>> snmpd.log file. Any ideas what this might mean? >>> >>> # tail -f /var/log/snmpd.log >>> NET-SNMP version 5.3.0.1 >>> send response: (Sub-id not found: iso -> lmFanSensorsValue) >> >> Are you running 5.3.0.1 *with* official patches >> (www.net-snmp.org/official_patches) applied? > > "Official Patches"? Oh man... Thanks, I'm on it. :-) Thomas, I applied the disman.pat and oid-names2_5.3.patch patches, but I'm still getting: # tail -f /var/log/snmpd.log NET-SNMP version 5.3.0.1 send response: (Sub-id not found: (top) -> lmMiscSensorsValue) -- IF-MIB::ifNumber.0 send response: -- SNMPv2-MIB::sysObjectID.0 Should I apply other patches? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: "Sub-id not found" error?
On Mon, Mar 27, 2006 at 07:43:45PM +0200, Thomas Anders wrote: > Jean-Sebastien Morisset wrote: >> I'm trying to debug some monitoring lines in my snmpd.conf file that >> aren't working. After restarting snmpd, I get the following error in my >> snmpd.log file. Any ideas what this might mean? >> >> # tail -f /var/log/snmpd.log >> NET-SNMP version 5.3.0.1 >> send response: (Sub-id not found: iso -> lmFanSensorsValue) > > Are you running 5.3.0.1 *with* official patches > (www.net-snmp.org/official_patches) applied? "Official Patches"? Oh man... Thanks, I'm on it. :-) js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
"Sub-id not found" error?
Hi everyone, I'm trying to debug some monitoring lines in my snmpd.conf file that aren't working. After restarting snmpd, I get the following error in my snmpd.log file. Any ideas what this might mean? # tail -f /var/log/snmpd.log NET-SNMP version 5.3.0.1 send response: (Sub-id not found: iso -> lmFanSensorsValue) -- SNMPv2-MIB::sysObjectID.0 ^C The LM_SENSORS-MIB file is included in the snmp.conf, and I can snmpwalk the table just fine... # snmpwalk -c -O fn localhost lmFanSensorsValue .1.3.6.1.4.1.2021.13.16.3.1.3.1 = Gauge32: 2173 .1.3.6.1.4.1.2021.13.16.3.1.3.2 = Gauge32: 2272 .1.3.6.1.4.1.2021.13.16.3.1.3.3 = Gauge32: 2173 .1.3.6.1.4.1.2021.13.16.3.1.3.4 = Gauge32: 2272 .1.3.6.1.4.1.2021.13.16.3.1.3.5 = Gauge32: 3409 .1.3.6.1.4.1.2021.13.16.3.1.3.6 = Gauge32: 0 .1.3.6.1.4.1.2021.13.16.3.1.3.7 = Gauge32: 3896 .1.3.6.1.4.1.2021.13.16.3.1.3.8 = Gauge32: 3797 .1.3.6.1.4.1.2021.13.16.3.1.3.9 = Gauge32: 3896 .1.3.6.1.4.1.2021.13.16.3.1.3.10 = Gauge32: 3846 The lmFanSensorsValues are configured thus in my snmpd.conf file: monitor -r 128 -o lmFanSensorsDevice.1 -o lmFanSensorsValue.1 "lmFanSensors.1" lmFanSensorsValue.1 = 0 monitor -r 128 -o lmFanSensorsDevice.2 -o lmFanSensorsValue.2 "lmFanSensors.2" lmFanSensorsValue.2 = 0 monitor -r 128 -o lmFanSensorsDevice.3 -o lmFanSensorsValue.3 "lmFanSensors.3" lmFanSensorsValue.3 = 0 monitor -r 128 -o lmFanSensorsDevice.4 -o lmFanSensorsValue.4 "lmFanSensors.4" lmFanSensorsValue.4 = 0 monitor -r 128 -o lmFanSensorsDevice.5 -o lmFanSensorsValue.5 "lmFanSensors.5" lmFanSensorsValue.5 = 0 monitor -r 128 -o lmFanSensorsDevice.7 -o lmFanSensorsValue.7 "lmFanSensors.7" lmFanSensorsValue.7 = 0 monitor -r 128 -o lmFanSensorsDevice.8 -o lmFanSensorsValue.8 "lmFanSensors.8" lmFanSensorsValue.8 = 0 monitor -r 128 -o lmFanSensorsDevice.9 -o lmFanSensorsValue.9 "lmFanSensors.9" lmFanSensorsValue.9 = 0 monitor -r 128 -o lmFanSensorsDevice.10 -o lmFanSensorsValue.10 "lmFanSensors.10" lmFanSensorsValue.10 = 0 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Monitor line not working...
Hi folks, Is there a reason the following line in snmpd.conf isn't working? monitor -r 30 -o lmMiscSensorsDevice.190 -o lmMiscSensorsValue.190 "lmMiscSensors.190" lmMiscSensorsValue.190 != 1 (normally I would be checking for a non-zero value, but I'm trying to generate a trap for testing purposes). :-) The sensor _is_ working: # snmpget -c devunix6 lmMiscSensorsValue.190 LM-SENSORS-MIB::lmMiscSensorsValue.190 = Gauge32: 0 Any ideas? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: pass_persist timing out!?
Never mind, found the problem. Sorry for the spam. :-) js. On Mon, Mar 13, 2006 at 01:55:10PM -0500, Jean-Sebastien Morisset wrote: > Hi everyone, > > I wrote a script that was working very well with the "pass" config > option. In order to improve it's speed (mostly perl load times), I > changed it to support the "pass_persist" option instead. As I understand > this config option, the script should run like so (note: I manually > added the ">" and "<" prefix to show input/output): > > # ./snmp-psbyname-persist.pl >> PING > < PONG >> GET >> .1.3.6.1.4.1.8072.100.1.4.7.13 > < .1.3.6.1.4.1.8072.100.1.4.7.13 > < integer > < 1045 >> QUIT > # > > I added support for a QUIT/EXIT command just to make it nicer. The man > page doesn't explain how Net-SNMP will terminate the running script, but > I expect it just kills it instead of issuing a QUIT/EXIT command. > > When I add the pass_persist script to Net-SNMP, I get the following > result: > > # snmpget -c * -O s -v 2c devunix7 .1.3.6.1.4.1.8072.100.1.4.7.13 > Timeout: No Response from devunix7. > > It works fine manually though... Any ideas where I might have gone > wrong? :-) -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
pass_persist timing out!?
Hi everyone, I wrote a script that was working very well with the "pass" config option. In order to improve it's speed (mostly perl load times), I changed it to support the "pass_persist" option instead. As I understand this config option, the script should run like so (note: I manually added the ">" and "<" prefix to show input/output): # ./snmp-psbyname-persist.pl > PING < PONG > GET > .1.3.6.1.4.1.8072.100.1.4.7.13 < .1.3.6.1.4.1.8072.100.1.4.7.13 < integer < 1045 > QUIT # I added support for a QUIT/EXIT command just to make it nicer. The man page doesn't explain how Net-SNMP will terminate the running script, but I expect it just kills it instead of issuing a QUIT/EXIT command. When I add the pass_persist script to Net-SNMP, I get the following result: # snmpget -c * -O s -v 2c devunix7 .1.3.6.1.4.1.8072.100.1.4.7.13 Timeout: No Response from devunix7. It works fine manually though... Any ideas where I might have gone wrong? :-) Thanks! js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Need help using embedded perl with Solaris...
Sorry guys, Bruce kindly reminded me to read the solaris README, where this whole embedded compiling issue is explained very well. :-) Thanks, js. On Fri, Mar 10, 2006 at 12:07:42PM -0500, Jean-Sebastien Morisset wrote: > Hi everyone, > > I wrote a perl script to return various stats on specific processes. > I've included the script in snmpd.conf as: > > pass .1.3.6.1.4.1.8072.10.1 /usr/local/share/snmp/snmp-proctable.pl > > Which allows me to do stuff like: > > # time snmpwalk -c -O s -v 2c devunix7 .1.3.6.1.4.1.8072.10.1.4.1.13 > netSnmp.10.1.4.1.13 = INTEGER: 9 > real0m0.728s > user0m0.034s > sys 0m0.006s > > FYI - .13 is 13th stat from Proc::ProcessTable, .1.13 is the first > process defined in an array of process names, and .4.1.13 is the fourth > user defined in an array of user names. > > I think I'm running into some performance issues for 2 reasons... The > first is that Proc::ProcessTable reads the process table every time > Net-SNMP runs the script. Since I'm data collecting about 60 OIDs every > 2 mins, that's quite a bit of overhead. I could probably -- although I > dont know how -- have Net-SNMP set a global variable every 15-30 secs > with the current process table, and then my script could use that > variable. I would, of course, need the --enable-embedded-perl > functionality to do this. :-) > > So this brings me to my second problem, I cannot compile v5.3.0.1 on > Solaris with --enable-embedded-perl! :-( I've tried using > --with-out-mib-modules='ucd-snmp/memory', but get the same result: > > /usr/include/sys/swap.h:47: #error "Cannot use swapctl in the large > files compilation environment" > > And since I'm not using an embedded perl, the OS perl is probably adding > some overhead as well. > > I've compiled v5.3.0.1 with the following options: > > ./configure --enable-internal-md5 --with-perl-modules --enable-shared > --with-openssl=/usr/local/ssl --with-mib-modules='host disman/event-mib > smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod' > --with-cc=gcc --with-default-snmp-version='2' > --with-sys-contact='[EMAIL PROTECTED]' --with-sys-location='' > --with-logfile=/var/log/snmpd.log > --with-persistent-directory=/var/net-snmp/ > > Can anyone suggest any way I can get embedded perl to compile on Solaris? > > Thanks! > js. > -- > Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> > Personal Home Page <http://jsmoriss.mvlan.net/> > Underwater and Travel Photographs <http://www.mvpix.com/> > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Need help using embedded perl with Solaris...
Hi everyone, I wrote a perl script to return various stats on specific processes. I've included the script in snmpd.conf as: pass .1.3.6.1.4.1.8072.10.1 /usr/local/share/snmp/snmp-proctable.pl Which allows me to do stuff like: # time snmpwalk -c -O s -v 2c devunix7 .1.3.6.1.4.1.8072.10.1.4.1.13 netSnmp.10.1.4.1.13 = INTEGER: 9 real0m0.728s user0m0.034s sys 0m0.006s FYI - .13 is 13th stat from Proc::ProcessTable, .1.13 is the first process defined in an array of process names, and .4.1.13 is the fourth user defined in an array of user names. I think I'm running into some performance issues for 2 reasons... The first is that Proc::ProcessTable reads the process table every time Net-SNMP runs the script. Since I'm data collecting about 60 OIDs every 2 mins, that's quite a bit of overhead. I could probably -- although I dont know how -- have Net-SNMP set a global variable every 15-30 secs with the current process table, and then my script could use that variable. I would, of course, need the --enable-embedded-perl functionality to do this. :-) So this brings me to my second problem, I cannot compile v5.3.0.1 on Solaris with --enable-embedded-perl! :-( I've tried using --with-out-mib-modules='ucd-snmp/memory', but get the same result: /usr/include/sys/swap.h:47: #error "Cannot use swapctl in the large files compilation environment" And since I'm not using an embedded perl, the OS perl is probably adding some overhead as well. I've compiled v5.3.0.1 with the following options: ./configure --enable-internal-md5 --with-perl-modules --enable-shared --with-openssl=/usr/local/ssl --with-mib-modules='host disman/event-mib smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod' --with-cc=gcc --with-default-snmp-version='2' --with-sys-contact='[EMAIL PROTECTED]' --with-sys-location='' --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp/ Can anyone suggest any way I can get embedded perl to compile on Solaris? Thanks! js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Net-SNMP w/ Solaris 10 libseaProxy/Extensions.so doesn't work!
printValueOnly (1|yes|true|0|no|false) dontPrintUnits (1|yes|true|0|no|false) hexOutputLength integerValue dumpPacket (1|yes|true|0|no|false) reverseEncodeBER (1|yes|true|0|no|false) defaultPort integerValue defCommunity string noTokenWarnings (1|yes|true|0|no|false) noRangeCheck (1|yes|true|0|no|false) persistentDirstring tempFilePattern string noDisplayHint(1|yes|true|0|no|false) 16bitIDs (1|yes|true|0|no|false) clientaddr string serverSendBufintegerValue serverRecvBufintegerValue clientSendBufintegerValue clientRecvBufintegerValue noPersistentLoad (1|yes|true|0|no|false) noPersistentSave (1|yes|true|0|no|false) defSecurityModel string defSecurityName string defContext string defPassphrasestring defAuthPassphrasestring defPrivPassphrasestring defAuthMasterKey string defPrivMasterKey string defAuthLocalizedKey string defPrivLocalizedKey string defVersion 1|2c|3 defAuthType MD5|SHA defPrivType DES|AES defSecurityLevel noAuthNoPriv|authNoPriv|authPriv -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Missing OID?
Hi everyone, I'm using Net-SNMP v5.3.0.1 on several versions of Solaris (2.6->10) and trying to build a CPU graph with rrd (in OpenNMS), but Net-SNMP isn't returning one of the required IODs: # snmpwalk -m ALL -c -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.51 ssCpuRawNice = No Such Object available on this agent at this OID All the other related IODs are returned just fine: # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.3 ssSwapIn.0 = INTEGER: 0 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.4 ssSwapOut.0 = INTEGER: 0 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.7 ssSysInterrupts.0 = INTEGER: 784 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.8 ssSysContext.0 = INTEGER: 600 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.50 ssCpuRawUser.0 = Counter32: 54060 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.52 ssCpuRawSystem.0 = Counter32: 65478 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.53 ssCpuRawIdle.0 = Counter32: 51380651 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.55 ssCpuRawKernel.0 = Counter32: 65479 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.57 ssIORawSent.0 = Counter32: 132441 # snmpwalk -m ALL -c roex25mb -O s -v 2c gessolx1 .1.3.6.1.4.1.2021.11.58 ssIORawReceived.0 = Counter32: 12778 I built Net-SNMP with the following options: # ./configure --with-perl-modules --with-openssl=/usr/local/ssl \ --with-mib-modules="host disman/event-mib ucd-snmp/diskio smux agentx" \ --with-cc=gcc Is there a way to get this OID, or should I just bite the bullet and exclude it from the graphs? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Using "procfix"...
On Fri, Mar 03, 2006 at 02:32:11PM +, Dave Shield wrote: > On Fri, 2006-03-03 at 08:47 -0500, Jean-Sebastien Morisset wrote: >> This morning I found automountd down on a few servers, so I'm looking at >> the "procfix" feature in snmpd.conf. The details on it's use are a >> little sketchy. For example, is a trap sent for the failure, or is the >> "fix" applied first. Is a trap sent after the fix command? > > Neither. > "proc" and "procfix" don't actually trigger traps at all. > At least not on their own - that's the realm of the (newer) > "monitor" directive. > > The basic use of "proc" is to set a flag when it detects an > error. It's up to an external management application to poll > the agent to spot such error flags. > > The basic use of "procfix" is to run a command when it is > explicitly told to do so (by some external management app). > This command will *not* be run automatically (at least not > on its own), or trigger a trap - either before or after > being run. > > > > One possibility with the 5.3 release is to have the DisMan > Event MIB trigger a suitable SET request (instead of sending > a trap), that *will* execute the command automatically. > > This would look something as follows (untested!): > > setEvent jimllFixIt prErrFix = 1 > monitor -S -r 128 -e jimllFixIt "procTable" prErrorFlag != 0 > > > This functionality is only available with the 5.3 release. > The previous Event MIB implementation did not support set > events, just notifications. Dave, Excellent - thank you very much for your continued replies. I don't know where you find the time, but it's very much appreciated. In your example, would that mean a trap would never be sent, even if the "procfix" command failed? Is there a way to run the procfix and then generate a trap if the proc is still missing afterwards (checking the procfix exit code may not be reliable -- procfix may run ok but not restore the process)? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Using "procfix"...
Hi everyone, This morning I found automountd down on a few servers, so I'm looking at the "procfix" feature in snmpd.conf. The details on it's use are a little sketchy. For example, is a trap sent for the failure, or is the "fix" applied first. Is a trap sent after the fix command? Here's my related config sections: procautomountd 1 1 procfix automountd /usr/sbin/svcadm enable autofs monitor -S -r 128 -o prNames -o prErrMessage "procTable" prErrorFlag != 0 Any info on what I _shoudl_ expect from the above would be appreciated. :-) Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug? Got it!
On Fri, Mar 03, 2006 at 10:37:37AM +, Dave Shield wrote: > On Thu, 2006-03-02 at 14:00 -0500, Jean-Sebastien Morisset wrote: > >> Can we use an AND in the monitor line? Something like: >> >> monitor -r 70 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 && >> dskUsed >= 0 > > Not directly. > The Event MIB is designed to monitor a single value - not > arbitrary combinations. > > > But I've got some good news and some bad news. > The good news is that the DisMan working group also > developed an Expression MIB - explicitly for this > sort of requirement. So the Expression MIB can be > configured to combine dskErrorFlag and dskUsed, and > the Event MIB configured to monitor the Expression MIB > (rather than the diskTable directly). > > The bad news is that the Net-SNMP doesn't currently > implement the Expression MIB. There is some preliminary > work on a full implementation (as well as an earlier > incomplete version), but the code shipped with 5.3.0.1 > isn't really useable. > > The good news is that the CVS branch includes newer > code that is somewhat more complete, and *may* handle > the example above. > > The bad news is that this is still incomplete, and > definitely not fully tested. But it's something you > might like to investigate. > > Alternatively, you might prefer to try and track down > what's going wrong with the diskTable itself. Dave, I'm using OpenNMS to receive these traps, so I'll see if I can filter them out there. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote: > On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote: > >> I was able to reproduce the problem. I copied a few gigs on the >> filesystem and then removed it. Right after, I ran an snmpwalk. It stuck >> for second half way through, and then gave me the following: > > >> dskTotal.2 = INTEGER: 142436675 >> dskAvail.2 = INTEGER: 140139526 >> dskUsed.2 = INTEGER: -2147483648 > > Urk! > >> dskErrorFlag.2 = INTEGER: 1 > > Well that would certainly explain why the monitor entry is > being triggered :-) > > > OK - so the problem lies with the disk table. Unfortunately, > that code isn't particularly clean. (I've got plans, but not > enough time). Dave, Can we use an AND in the monitor line? Something like: monitor -r 70 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 && dskUsed >= 0 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Trap sent for no procTable error?
On Thu, Mar 02, 2006 at 05:25:30PM +, Dave Shield wrote: > On Thu, 2006-03-02 at 08:10 -0500, Jean-Sebastien Morisset wrote: >> I seem to have a little problem. I have several Net-SNMP v5.3.0.1 >> clients on various Solaris servers, and I get the following trap from >> several of them: >> >> mteTriggerFired trap received from x: procTable >> .1.3.6.1.4.1.2021.2.1.100.2 1 cron >> >> This does NOT appear to be an error. > > What does walking the procTable show? Dave, Everything appears normal: # snmpwalk -c -O s -v 2c devunix4 prTable|grep '\.2 ' prIndex.2 = INTEGER: 2 prNames.2 = STRING: cron prMin.2 = INTEGER: 1 prMax.2 = INTEGER: 1 prCount.2 = INTEGER: 1 prErrorFlag.2 = INTEGER: 0 prErrMessage.2 = STRING: prErrFix.2 = INTEGER: 0 prErrFixCmd.2 = STRING: And on the server itself: # ps -ef|grep cron root 7841 1 0 Feb 26 ?0:02 /usr/sbin/cron A trap was sent at 8:36:01 this morning. Cron was certainly active since it's log file shows: [snip!] > sys 19320 c Thu Mar 2 08:35:00 2006 < sys 19320 c Thu Mar 2 08:35:00 2006 > CMD: /usr/lib/sa/sa1 > sys 19349 c Thu Mar 2 08:36:00 2006 < sys 19349 c Thu Mar 2 08:36:01 2006 > CMD: /usr/lib/sa/sa1 > sys 19376 c Thu Mar 2 08:37:00 2006 < sys 19376 c Thu Mar 2 08:37:00 2006 > CMD: /usr/lib/sa/sa1 [snip!] Although I'm monitoring many single instances of a process on this and other servers, "cron" is the only one generating traps on occasion. And not just on this server -- on a few others as well. I haven't found a pattern to these traps yet -- they just happen once in a while (maybe a total of 3-4 traps / day from 20 servers or so). Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 02:53:04PM +, Dave Shield wrote: > On Thu, 2006-03-02 at 09:38 -0500, Jean-Sebastien Morisset wrote: > >> I was able to reproduce the problem. I copied a few gigs on the >> filesystem and then removed it. Right after, I ran an snmpwalk. It stuck >> for second half way through, and then gave me the following: > > >> dskTotal.2 = INTEGER: 142436675 >> dskAvail.2 = INTEGER: 140139526 >> dskUsed.2 = INTEGER: -2147483648 > > Urk! > >> dskErrorFlag.2 = INTEGER: 1 > > Well that would certainly explain why the monitor entry is > being triggered :-) > > > OK - so the problem lies with the disk table. Unfortunately, > that code isn't particularly clean. (I've got plans, but not > enough time). > What O/S is this running on? [EMAIL PROTECTED]:~$ uname -a SunOS devsolx4 5.10 Generic_118844-28 i86pc i386 i86pc :-) js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug? Got it!
On Thu, Mar 02, 2006 at 01:08:49PM +, Dave Shield wrote: > On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote: >> On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote: >>> Can you try walking the UCD-SNMP-MIB:dskTable > >> Ah, of course, I didn't notice that "dskTable" in the error message. :-) >> Here you go > >> dskErrorFlag.1 = INTEGER: 0 >> dskErrorFlag.2 = INTEGER: 0 >> dskErrorFlag.3 = INTEGER: 0 > > No sign of an error condition there, so the monitor trigger shouldn't > be firing. Strange. > > Ummm... Can you try running the agent with -Ddisman:event > and report the output? I probably haven't got the debugging > code quite right for pinning this sort of problem down, but > that should give us something to work with. Dave, I was able to reproduce the problem. I copied a few gigs on the filesystem and then removed it. Right after, I ran an snmpwalk. It stuck for second half way through, and then gave me the following: # snmpwalk -Ddisman:event -c -O s -v 2c devsolx4 UCD-SNMP-MIB:dskTable No log handling enabled - turning on stderr logging registered debug token disman:event, 1 dskIndex.1 = INTEGER: 1 dskIndex.2 = INTEGER: 2 dskIndex.3 = INTEGER: 3 dskPath.1 = STRING: / dskPath.2 = STRING: /export/home dskPath.3 = STRING: /export/san dskDevice.1 = STRING: /dev/dsk/c0t0d0s0 dskDevice.2 = STRING: /dev/dsk/c0t2d0s2 dskDevice.3 = STRING: /dev/dsk/c5t600C0FF00824C347B635AD00d0s2 dskMinimum.1 = INTEGER: -1 dskMinimum.2 = INTEGER: -1 dskMinimum.3 = INTEGER: -1 dskMinPercent.1 = INTEGER: 50 dskMinPercent.2 = INTEGER: 25 dskMinPercent.3 = INTEGER: 25 dskTotal.1 = INTEGER: 53651285 dskTotal.2 = INTEGER: 142436675 dskTotal.3 = INTEGER: 857894876 dskAvail.1 = INTEGER: 48398025 dskAvail.2 = INTEGER: 140139526 dskAvail.3 = INTEGER: 821699219 dskUsed.1 = INTEGER: 4716748 dskUsed.2 = INTEGER: -2147483648 dskUsed.3 = INTEGER: 10458811 dskPercent.1 = INTEGER: 9 dskPercent.2 = INTEGER: 3108 dskPercent.3 = INTEGER: 1 dskPercentNode.1 = INTEGER: 3 dskPercentNode.2 = INTEGER: 0 dskPercentNode.3 = INTEGER: 0 dskErrorFlag.1 = INTEGER: 0 dskErrorFlag.2 = INTEGER: 1 dskErrorFlag.3 = INTEGER: 0 dskErrorMsg.1 = STRING: dskErrorMsg.2 = STRING: /export/home: less than 25% free (= 3108%) dskErrorMsg.3 = STRING: -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug?
On Thu, Mar 02, 2006 at 01:08:49PM +, Dave Shield wrote: > On Wed, 2006-03-01 at 15:09 -0500, Jean-Sebastien Morisset wrote: >> On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote: >>> Can you try walking the UCD-SNMP-MIB:dskTable > >> Ah, of course, I didn't notice that "dskTable" in the error message. :-) >> Here you go > >> dskErrorFlag.1 = INTEGER: 0 >> dskErrorFlag.2 = INTEGER: 0 >> dskErrorFlag.3 = INTEGER: 0 > > No sign of an error condition there, so the monitor trigger shouldn't > be firing. Strange. > > Ummm... Can you try running the agent with -Ddisman:event > and report the output? I probably haven't got the debugging > code quite right for pinning this sort of problem down, but > that should give us something to work with. Dave, I noticed that when the file systems in question where under heavy use, snmpwalk would timeout. I had to specify "-t 3" to avoid timeouts. Could it be the internal disk monitor is timing out and generating an error trap with odd values? I checked, but could not find, a timeout option for "monitor". Here's my monitor line: monitor -r 70 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Trap sent for no procTable error?
Hi everyone, I seem to have a little problem. I have several Net-SNMP v5.3.0.1 clients on various Solaris servers, and I get the following trap from several of them: mteTriggerFired trap received from x: procTable .1.3.6.1.4.1.2021.2.1.100.2 1 cron This does NOT appear to be an error. I'm used to seeing procTable errors in the form of: mteTriggerFired trap received from x: procTable .1.3.6.1.4.1.2021.2.1.100.19 1 wots Too few wots running (# = 0) Here's a typical snmpd.conf proc section: proc automountd1 1 proc cron 1 1 proc devfsadm 1 1 proc fsflush 1 1 proc inetd 1 1 proc lcfd 1 1 proc mountd1 1 proc nfsd 100 1 proc nmbd 1 1 proc nscd 1 1 proc prngd 1 1 proc rpcbind 1 1 proc sac 1 1 proc smbd 100 1 proc sshd 100 1 proc syseventd 1 1 proc syslogd 1 1 proc utmpd 1 1 proc vxconfigd 1 1 proc vxnotify 1 1 proc vxrelocd 3 1 proc wots 1 1 proc xntpd 1 1 Any idea why Net-SNMP would send a trap for cron? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Anyone using Net-SNMP on Solaris 10
Hi everyone, Has anyone upgraded Net-SNMP on Solaris 10? It comes packaged with v5.0.9 (I think). I removed that package and installed v5.3.0.1 instead. Everything works fine on most servers (except for a little SAN disk space reporting issue on one server), but I get the following errors: Incorrect Community Name (authenticationFailure Trap) enterprise:.1.3.6.1.4.1.8072.3.2.3 (.1.3.6.1.4.1.8072.3.2.3) args(1):.1.3.6.1.6.3.1.1.4.3.0=".1.3.6.1.4.1.8072.3.2.3" If I start snmpdx by itself, I find the following ports open: # lsof -i -n -P | grep snmp snmpdx25372 root4u IPv4 0xa06c1a800t0 UDP *:16161 (Idle) snmpdx25372 root5u IPv4 0xfe8456e3ee000t0 UDP *:45858 (Idle) snmpdx25372 root6u IPv4 0xa06c17000t0 UDP *:45859 (Idle) Once I start Net-SNMP, here are the open ports: # lsof -i -n -P | grep snmp snmpdx25372 root4u IPv4 0xa06c1a800t0 UDP *:16161 (Idle) snmpdx25372 root5u IPv4 0xfe8456e3ee000t0 UDP *:45858 (Idle) snmpdx25372 root6u IPv4 0xa06c17000t0 UDP *:45859 (Idle) snmpd 25660 root 10u IPv4 0x9fb0f0000t0 UDP *:46149 (Idle) snmpd 25660 root 11u IPv4 0x9fb0f3800t0 UDP *:46150 (Idle) snmpd 25660 root 13u IPv4 0xa144fc000t0 TCP *:199 (LISTEN) snmpd 25660 root 15u IPv4 0xfe840b19e5400t0 UDP *:161 (Idle) As I understand it, snmpdx was working as a sub-agent with the previously installed Net-SNMP. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Bug?
On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote: > On Tue, 2006-02-28 at 14:28 -0500, Jean-Sebastien Morisset wrote: >> And I receive the following trap: >> >> mteTriggerFired trap received from devsolx4.dev.me.org: dskTable >> .1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25% >> free (= 515%) >> >> Here's the snmpwalk section for this filesystem: >> >> hrStorageIndex.10 = INTEGER: 10 >> hrStorageType.10 = OID: hrStorageFixedDisk >> hrStorageDescr.10 = STRING: /export/san >> hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes >> hrStorageSize.10 = INTEGER: 857894876 >> hrStorageUsed.10 = INTEGER: 613520 >> >> As you can see, there's really no space problem. > > Can you try walking the UCD-SNMP-MIB:dskTable > That's meant to report the same information as the > Host Resources hrStorageTable, but it's not impossible > that there's a discrepancy between the two. > > If nothing else, it's the dskTable that's triggering > the trap, so seeing the contents of this table might > shed some light on what's actually happening. Ah, of course, I didn't notice that "dskTable" in the error message. :-) Here you go. As you can see, plenty of space reported here too. BTW, errors are being reported for /export/home AND /export/san. Here are the latest errors followed by the snmpwalk. mteTriggerFired trap received from devsolx4.dev.me.org: dskTable .1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25% free (= 516%) mteTriggerFired trap received from devsolx4.dev.me.org: dskTable .1.3.6.1.4.1.2021.9.1.100.2 1 /export/home /export/home: less than 25% free (= 3109%) # snmpwalk -c -O s -v 2c devsolx4 UCD-SNMP-MIB:dskTable dskIndex.1 = INTEGER: 1 dskIndex.2 = INTEGER: 2 dskIndex.3 = INTEGER: 3 dskPath.1 = STRING: / dskPath.2 = STRING: /export/home dskPath.3 = STRING: /export/san dskDevice.1 = STRING: /dev/dsk/c0t0d0s0 dskDevice.2 = STRING: /dev/dsk/c0t2d0s2 dskDevice.3 = STRING: /dev/dsk/c5t600C0FF00824C347B635AD00d0s2 dskMinimum.1 = INTEGER: -1 dskMinimum.2 = INTEGER: -1 dskMinimum.3 = INTEGER: -1 dskMinPercent.1 = INTEGER: 50 dskMinPercent.2 = INTEGER: 25 dskMinPercent.3 = INTEGER: 25 dskTotal.1 = INTEGER: 53651285 dskTotal.2 = INTEGER: 142436675 dskTotal.3 = INTEGER: 857894876 dskAvail.1 = INTEGER: 48428911 dskAvail.2 = INTEGER: 138010545 dskAvail.3 = INTEGER: 831498871 dskUsed.1 = INTEGER: 4685862 dskUsed.2 = INTEGER: 153030 dskUsed.3 = INTEGER: 659159 dskPercent.1 = INTEGER: 9 dskPercent.2 = INTEGER: 0 dskPercent.3 = INTEGER: 0 dskPercentNode.1 = INTEGER: 3 dskPercentNode.2 = INTEGER: 0 dskPercentNode.3 = INTEGER: 0 dskErrorFlag.1 = INTEGER: 0 dskErrorFlag.2 = INTEGER: 0 dskErrorFlag.3 = INTEGER: 0 dskErrorMsg.1 = STRING: dskErrorMsg.2 = STRING: dskErrorMsg.3 = STRING: Thanks! js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Bug?
Hi everyone, I have the following config in net-snmp v5.3.0.1: disk /export/san 25% createUser_internal MD5 "" iquerySecName _internal rouser_internal authtrapenable 1 linkUpDownNotifications yes trapcommunity snmp-trap trap2sink snmp1.dev.me.org trap2sink gestdev1.dev.me.org monitor -S -r 70 -o prNames -o prErrMessage"procTable" prErrorFlag != 0 monitor -r 70 -o memErrorName -o memSwapErrorMsg "memory" memSwapError != 0 monitor -r 70 -o extNames -o extOutput "extTable" extResult != 0 monitor -r 70 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 monitor -r 70 -o laNames -o laErrMessage"laTable" laErrorFlag != 0 monitor -r 70 -o fileName -o fileErrorMsg"fileTable" fileErrorFlag != 0 And I receive the following trap: mteTriggerFired trap received from devsolx4.dev.me.org: dskTable .1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25% free (= 515%) Here's the snmpwalk section for this filesystem: hrStorageIndex.10 = INTEGER: 10 hrStorageType.10 = OID: hrStorageFixedDisk hrStorageDescr.10 = STRING: /export/san hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes hrStorageSize.10 = INTEGER: 857894876 hrStorageUsed.10 = INTEGER: 613520 As you can see, there's really no space problem. Could net-snmp have a problem with the disk size (818GB)? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Trying to generate traps...
On Fri, Feb 24, 2006 at 02:25:10PM -0500, Jean-Sebastien Morisset wrote: > [sni!] > I compiled v5.3.0.1 and received the following trap (in OpenNMS): > > Cisco Event: mteTriggerFired trap received mteHotTrigger=process table > mteHotTargetName= mteHotContextName= > mteHotOID=.1.3.6.1.4.1.2021.2.1.100.7 mteHotValue=1 > > Does this look like the right OID? The one I have in my DISMAN-EVENT-MIB > is .1.3.6.1.2.1.88.2. FYI - The above trap was received when using "defaultMonitors yes". When I switched to the following: monitor -r 60 -o prNames -o prErrMessage "procTable" prErrorFlag != 0 monitor -r 60 -o memErrorName -o memSwapErrorMsg "memory" memSwapError != 0 monitor -r 60 -o extNames -o extOutput "extTable" extResult != 0 monitor -r 60 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 monitor -r 60 -o laNames -o laErrMessage "laTable" laErrorFlag != 0 monitor -r 60 -o fileName -o fileErrorMsg "fileTable" fileErrorFlag != 0 I then received this: mteTriggerFired trap received mteHotTrigger=procTable mteHotTargetName= mteHotContextName= mteHotOID=.1.3.6.1.4.1.2021.2.1.100.7 mteHotValue=1 So, it looks like I'm on the right track. :-) Anyone know how I can populate the mteHotTargetName? Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Trying to generate traps...
On Fri, Feb 24, 2006 at 03:45:41PM +, Dave Shield wrote: > On Fri, 2006-02-24 at 10:31 -0500, Jean-Sebastien Morisset wrote: >> On Fri, Feb 24, 2006 at 09:12:28AM +, Dave Shield wrote: > > >>> Which version of the agent are you using? >> >> 5.1.1 for Solaris 8 sparc > > Hmmm That's a fairly old version, and I'm not sure how mature > the DisMan support was back then. I'd suggest that you try with > one of the more recent versions - either 5.2.2 (which uses the same > basic DisMan implementation) or 5.3.0.1 (which has a complete > re-write). > > The other possibility might be to try an "exact" monitor command > (watching prErrorFlag.7 explicitly) rather than wildcarding across > all possible prTable entries. > > But one of the reasons for the 5.3 re-write was to avoid the > need for such a hack. Dave, I compiled v5.3.0.1 and received the following trap (in OpenNMS): Cisco Event: mteTriggerFired trap received mteHotTrigger=process table mteHotTargetName= mteHotContextName= mteHotOID=.1.3.6.1.4.1.2021.2.1.100.7 mteHotValue=1 Does this look like the right OID? The one I have in my DISMAN-EVENT-MIB is .1.3.6.1.2.1.88.2. Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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: Trying to generate traps...
On Fri, Feb 24, 2006 at 09:12:28AM +, Dave Shield wrote: > On Thu, 2006-02-23 at 16:26 -0500, Jean-Sebastien Morisset wrote: >> Hi everyone, >> >> I'm trying to configure Net-SNMP to send traps when a process is >> missing, disk space is low, etc. According to the examples page ( >> http://net-snmp.sourceforge.net/docs/man/snmpd.examples.html ), the >> following should send a trap when the sleep process is missing. My >> problem is that it doesn't. :-) > > What do you see if you run an snmpwalk on the UCD-SNMP-MIB::prTable? > In particular, is the prErrorFlag value set or not? Yup. prIndex.7 = INTEGER: 7 prNames.7 = STRING: sleep prMin.7 = INTEGER: 1 prMax.7 = INTEGER: 1 prCount.7 = INTEGER: 0 prErrorFlag.7 = INTEGER: 1 prErrMessage.7 = STRING: Too few sleep running (# = 0) prErrFix.7 = INTEGER: 0 prErrFixCmd.7 = STRING: > Which version of the agent are you using? 5.1.1 for Solaris 8 sparc -- specifically the binary package from sunfreeware. BTW, I'm running a sniffer to pickup any trafic to port 162, so I can be sure if a trap is sent or not (without replying on another application). When I restart snmpd, two traps are sent, and then silence. Here are the trap details as reported by OpenNMS: Agent Up with Possible Changes (coldStart Trap) enterprise:.1.3.6.1.4.1.8072.3.2.3 (.1.3.6.1.4.1.8072.3.2.3) args(1):.1.3.6.1.6.3.1.1.4.3.0=".1.3.6.1.4.1.8072.3.2.3" Received unformatted enterprise event (enterprise:.1.3.6.1.4.1.8072.4 generic:6 specific:2). 0 args: Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Trying to generate traps...
Hi everyone, I'm trying to configure Net-SNMP to send traps when a process is missing, disk space is low, etc. According to the examples page ( http://net-snmp.sourceforge.net/docs/man/snmpd.examples.html ), the following should send a trap when the sleep process is missing. My problem is that it doesn't. :-) proc sleep 1 1 createUser_internal MD5 "the first sign of madness" iquerySecName _internal rouser_internal defaultMonitors yes linkUpDownNotifications yes authtrapenable 1 trapcommunity snmp-trap trap2sink snmp1.dev.me.org BTW, how fast should Net-SNMP detect the missing process? Should I use something like this instead? proc sleep 1 1 createUser_internal MD5 "the first sign of madness" iquerySecName _internal rouser_internal linkUpDownNotifications yes authtrapenable 1 trapcommunity snmp-trap trap2sink snmp1.dev.me.org monitor -r 60 -o prNames -o prErrMessage "procTable" prErrorFlag != 0 monitor -r 60 -o memErrorName -o memSwapErrorMsg "memory" memSwapError != 0 monitor -r 60 -o extNames -o extOutput "extTable" extResult != 0 monitor -r 60 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 monitor -r 60 -o laNames -o laErrMessage "laTable" laErrorFlag != 0 monitor -r 60 -o fileName -o fileErrorMsg "fileTable" fileErrorFlag != 0 Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> Personal Home Page <http://jsmoriss.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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