Wu.Fang.Frank | 24 Jul 03:03 2014

SOS, how to convert V2 trap to V3 trap?

Hi,

 

I have the device A which only sends V2 traps to the device B.  The device B receives V2 traps from the device A and forwards these traps to the device C.

My question is how to convert these V2 traps to V3 traps, so that the device C receives V3 traps?

Does snmptrapd/snmpd  provide this function? how to do it?

Please help me! Thanks!

 

 

 

Send V3 traps

 

Device C

 

Send V2 traps

 

Device B

receives V2 traps

convert V2 traps to V3 traps for security

send the V3 traps

 

Device A

 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Kevin McDermott (kevinmc | 24 Jul 02:30 2014
Picon

NFS failure causing snmpd to stop responding on NET-SNMP version: 5.7.2

I am looking for some help in understanding if this is an issue with snmpd ?
Running snmpd (NET-SNMP version:  5.7.2) on a centos 6.3 system where an nfs is mounted.
Everything runs ok until the nfs is disconnected.. at which point snmpd continues to run but does not respond..

Is this an expected behavior ? Is there a way to fix/avoid this behavior ?

Thanks..
Kev.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Cristian Vazquez | 23 Jul 02:14 2014
Picon

snmp in zfs

Hi!! I am sysadmin. I have server with nas4free. this server has a filesystem zfs with 3 disk in raidz. I want to monitoring storage. any knows oid code for size disk and use disk?

Thankz

Cristian
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Turbo Fredriksson | 23 Jul 00:22 2014

MIB design question

Hope it's ok to ask a MIB design question here, I couldn't find any more
suitable list for this... 

If not, just link me to the correct place!

In my MIB, I have a couple of tables:

$ smidump -f tree ./BAYOUR-COM-MIB.txt
[....]
     +--zfsPoolStatusTable(5)
     |  |
     |  +--zfsPoolStatusEntry(1) [zfsPoolStatusIndex]
     |     |
     |     +-- --- CounterIndex       zfsPoolStatusIndex(1)
     |     +-- r-n DisplayString      zfsPoolName(2)
     |     +-- r-n Integer32          zfsPoolSize(3)
     |     +-- r-n Integer32          zfsPoolAlloc(4)
     |     +-- r-n Integer32          zfsPoolFree(5)
     |     +-- r-n Integer32          zfsPoolCap(6)
     |     +-- r-n DisplayString      zfsPoolDedup(7)
     |     +-- r-n ZFSPoolStatusValue zfsPoolHealth(8)
     |     +-- r-n DisplayString      zfsPoolAltRoot(9)
     |     +-- r-n Integer32          zfsPoolUsedBySnaps(10)
     |     +-- r-n Integer32          zfsPoolUsed(11)
     [....]
     +--zfsVFSIOPSTable(8)
     |  |
     |  +--zfsVFSIOPSEntry(1) [zfsVFSIOPSIndex]
     |     |
     |     +-- --- CounterIndex  zfsVFSIOPSIndex(1)
     |     +-- r-n DisplayString zfsPoolNameVFSIOPS(2)
     |     +-- r-n Counter32     zfsOperReads(3)
     |     +-- r-n Counter32     zfsOperWrites(4)

Now, I'd like to "reuse" 'zfsPoolName' in 'zfsVFSIOPSTable', but if I just
add that there:

          ZFSVFSIOPSEntry             ::= SEQUENCE {
            zfsVFSIOPSIndex           CounterIndex,

            zfsPoolName               DisplayString,
            zfsOperReads              Counter32,
            zfsOperWrites             Counter32
          }

I get:

	BAYOUR-COM-MIB.txt:2213: SEQUENCE element #2 `zfsPoolName' is not a child node under `zfsVFSIOPSEntry'
	BAYOUR-COM-MIB.txt:2213: warning: SEQUENCE element #3 `zfsOperReads' does not match order of
columnar objects under `zfsVFSIOPSEntry'

Which is why I had to name it something really ugly like 'zfsPoolNameVFSIOPS' (this
is not the only place I want/need to reuse it in)...

The error in itself is quite obvious, don't get me wrong! But how can I include
a defined ... 'node' from/in another 'parent'?

The (second) most obvious (I thought) would be to use

	zfsPoolStatusTable::zfsPoolStatusEntry::zfsPoolName

but that obviously didn't work....

The full MIB file can be found at

	https://github.com/FransUrbo/snmp-modules/blob/master/BAYOUR-COM-MIB.txt

if someone needs/want to look at it.

PS. I've tried a couple of google queries, but I don't even know what to
    search for, so no luck there :)
--
As soon as you find a product that you really like,
they will stop making it.
- Wilson's Law

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

karteek.challa | 21 Jul 12:33 2014

Please help me in understanding the strange behaviour with my subagnet.

I have a strange behavior with the subagent. Trying to understand from past 2 months. Solving this issue is very important to me. Please help friends.

 

My subagent is receiving huge number of continuous snmpget and snmpset requests.

 

At a certain point I noticed the below observation from the snmp agent log.

 

                Agent received snmpget request with var-bind of 20 items for my subagent. After the agent sends the packet to subagent, the response is getting delayed for some time. Tthe response is received by agent after 2 to 3 timeouts. This can be the reason as the subagent is receiving huge requests. But for the 4th request the agent didn’t receive any response before 5 timeouts (max retries count is 5). For this request, in the tcpdump, I can see the response as “noSuchInstance” for all 20 snmpget requests.

 

This is repeated 3 times.

 

Then for some snmpget requests,  I can see “noSuchObject” in the get-response for these requests in the tcpdump. From the agent log info, I can find the below information for these snmpget requests.

 

handler:calling: main handler bulk_to_next

handler:calling: calling handler bulk_to_next for mode GET

handler:returned: handler bulk_to_next returned 0

handler:calling: calling handler null for mode GET

handler:returned: handler null returned 0

 

At the same time, for a snmpset request, I’ve seen “notWritable” error in the response packet in the tcpdump. For this particular packet, I found the below information in the agent log

 

agent_set: doing set mode = 0 (SET_RESERVE1)

KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE...

agent_set: did set mode = 0, status = 17

agent_set: doing set mode = 4 (SET_FREE)

KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE...

agent_set: did set mode = 4, status = 17

 

My debug statement KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE... is placed in the net-snmp code as below

 

    case MODE_SET_RESERVE1:

    case MODE_SET_RESERVE2:

    case MODE_SET_ACTION:

    case MODE_SET_COMMIT:

    case MODE_SET_FREE:

    case MODE_SET_UNDO:

        if (!(reginfo->modes & HANDLER_CAN_SET)) {

            for (; requests; requests = requests->next) {

                snmp_log(LOG_INFO, "KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE...\n");

                netsnmp_set_request_error(reqinfo, requests,

                                          SNMP_ERR_NOTWRITABLE);

            }

            return SNMP_ERR_NOERROR;

 

 

I am not able to understand this behavior. Anything wrong with my subagent?? Please help me. I am struggling to solve this issue from past 2 months. Please help me friends.

 

 

Best Regards,

Karteek

 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Stephan Buys | 17 Jul 18:46 2014
Picon

snmpdelta not honouring polling period

Hi all,

We're using snmpdelta to monitor the interface on on our routers. It works really well except sometimes
during loss of power. When the snmpdelta monitor starts before the router is ready, we get a massive flood
of message like:

[12:47:10 7/9] IF-MIB::ifInOctets.1 /15 sec: 0
[12:47:10 7/9] IF-MIB::ifOutOctets.1 /15 sec: 0
[12:47:10 7/9] IF-MIB::ifInOctets.1 /15 sec: 0
[12:47:10 7/9] IF-MIB::ifOutOctets.1 /15 sec: 0
[12:47:10 7/9] IF-MIB::ifInOctets.1 /15 sec: 0

This keeps flooding STDOUT (and our log forwarding agent). 

The switches we use are:

snmpdelta -v2c -c <snip> -Cs -Cf -Cp 15 <snip> IF-MIB::ifInOctets.1 IF-MIB::ifOutOctets.1

Is this a bug in snmdelta? My expectation would be that, even if returning 0 values, snmpdelta should honour
the -Cp 15 (in other words at least wait 15 seconds before returning).

Thoughts or corrections are most welcome.

Kind regards,
Stephan

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Ricky Byrd | 16 Jul 21:53 2014

Problems running net-snmp 5.6 x86 on Windows 7 64-bit

I’m trying to run net-snmp 5.6 x86 on a Windows 7 64-bit machine.  Every time I attempt to run snmpd.exe, I get the following window error:

 

 

>>>> snmpd.exe has stopped working

 

 

I’m about to get net-snmp 5.5 x64-bit to work fine.  Therefore, I thought it was because of Windows 64-bit.  However, when I installed Windows XP Mode and attempted to run net-snmp 5.6 & 5.7, both crashed and failed to run.  I’m currently also using… ActivePerl-5.16.3.1604-MSWin32-x64-298023

 

Things I’ve tried to resolve this issue are:

(1)    Configure snmp.conf & snmpd.conf

(2)    Disable spyware, firewall, and antivirus

(3)    Verify nothing was running on UDP port 161

(4)    Tried with both OpenSSL 32-bit & 64-bit

 

At this point, I’m stumped at what could be causing this issue and would welcome any advice as to how to resolve this issue.  Thanks ahead of time!

 

..............................................
Ricky Byrd, Jr.


 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Troels Arvin | 15 Jul 23:47 2014
Picon

Patch: DB2 support for the check_sql active check

Hello,

At
http://troels.arvin.dk/code/check_mk/patches/check_sql-db2-support.patch
I've provided a patch which adds DB2 support to the check_sql active 
check. I propose it for inclusion into check_mk.

--

-- 
Regards,
Troels Arvin <troels <at> arvin.dk>
http://troels.arvin.dk/

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

timingsrc src | 15 Jul 07:27 2014
Picon

mib2c compilation issue .


Hello,

mib2c throwing compilation error , when i compile with --with-mib-module=mibII/interfaces,
we have our own mibII/XYZinterfaces.c module, which i wanted to include with other mib modules.

May i know how to remove 'if-mib/data_access/interface' module and add mibII/interface mib module. I tried --without-mib-module but compilation is aborted.

Let me know how to resolve this issue.


UCD-SNMP compatability:     enabled
  SNMP Versions Supported:    1 2c 3
  Building for:               linux
  Net-SNMP Version:           5.7.2
  Network transport support:  Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase
  SNMPv3 Security Modules:     usm
  *** MIB Module warning *** mib module 'if-mib/data_access/interface' excludes module 'mibII/interfaces' but another module requires it
  *** MIB Module warning *** mib module 'if-mib/ifTable' requires module 'if-mib/ifTable/ifTable' but someone told me to compile without it
  Agent MIB code:             mibII/vacm_vars mibII/vacm_conf utilities/execute tejas mibII/system_mib mibII/interfaces snmpv3mibs =>  util_funcs/header_generic mibII/vacm_context mibII/vacm_conf tejas/tejasCard tejas/tejasCurrentAlarms tejas/tejasEqptHolder tejas/tejasEventHistory tejas/tejasMib tejas/tejasPortEth tejas/tejasSNMPConfiguration tejas/tejasSystem util_funcs mibII/updates util_funcs/header_generic if-mib/data_access/interface mibII/var_route snmpv3/snmpMPDStats_5_5 snmpv3/usmStats_5_5 snmpv3/snmpEngine snmpv3/usmConf snmpv3/usmUser
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Crypto support from:        internal
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled


Thanks,
Wilson

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Simon Chamlian | 11 Jul 16:46 2014
Picon

ERROR: You don't have the SNMP perl module installed.

Hi,

I installed net-snmp my Ubuntu machine. Works well.

simon <at> Subuntu-2:~/SNMP$ snmpget --version
NET-SNMP version: 5.7.2.1

simon <at> Subuntu-2:~/SNMP$ snmptranslate -m +MPBC-RMH-MIB  -IR -On mpbcRMHDateTime
.1.3.6.1.4.1.4464.2.1.4.2.3


Now I am trying the perl scripts but it fails:

simon <at> Subuntu-2:~/SNMP$ sudo env MIBS="+MPBC-RMH-MIB" mib2c -c /usr/local/share/snmp/mib2c.genhtml.conf mpbcRMH

ERROR: You don't have the SNMP perl module installed.  Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ .  Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.


I installed perl:

 in net-snmp-5.7.1/perl$
    sudo perl Makefile.PL
    sudo make
    sudo make install

What am I missing?

Thanks,
Simon



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Balaji P | 10 Jul 18:53 2014
Picon

Clarification for Bug BZ#820850

Hi Team,

 

We are currently using “net-snmp-5.4.1-5.2”. One of the setups we are hitting the negative request ID for the SNMP messages, which is being encoded as 5 bytes instead of 4 bytes.

 

 

So we met with a situation where the outgoing SNMP requests are not recognized by some of the clients.

 

There was a bug “BZ#820850 - https://rhn.redhat.com/errata/RHBA-2012-0674.html ” which is relevant to this behavior and got fixed as part of “net-snmp-devel-5.3.2.2-17.el5_8.1.x86_64”.

 

We are not sure bug is ported to the release we are using or the bug fix not fixed the problem.

 

Please help us to understand the present version we use has the fix available or we need to look for other releases in 5.4.1.x to get rid of the bug.

 

Thanks,

Arun Kumar K

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Gmane