Page 8 of 9

Re: Need some help with an Snmp Entry.

Posted: Thu Dec 01, 2016 10:24 am
by dwhitfield
Since it's been over a month since the last post, can you fill us in on where we are with the original issue? Has there been any chance in that time? Thanks!

Re: Need some help with an Snmp Entry.

Posted: Wed Feb 15, 2017 9:08 am
by skyerjoe
Hello dwhitfield

Sorry for delay .. but i'm an one man monitoring army and we have other projects with more priority .. i have to do what my boss say

We migrate our nagios instance to omd, and omd has an own integrated Snmptrap mechanism which can be started in the config and manged over the checkmk event console.

Today i made some tests but i'm not on final ... i'll give feedback if the solution works or not

best regards john

Re: Need some help with an Snmp Entry.

Posted: Wed Feb 15, 2017 10:15 am
by dwhitfield
No problem on the wait. I just wanted to make sure we weren't missing something new from the gap. :)

Re: Need some help with an Snmp Entry.

Posted: Thu Feb 16, 2017 3:52 am
by skyerjoe
Dwithfield

Don't worry .. you won't missed anything
.. believe me ; )

at the end i'll make an summary

best regards john

Re: Need some help with an Snmp Entry.

Posted: Thu Feb 16, 2017 8:40 am
by dwhitfield
skyerjoe wrote: at the end i'll make an summary
Fantastic! It's always great to have community contributions!

Re: Need some help with an Snmp Entry.

Posted: Tue Mar 07, 2017 3:10 am
by skyerjoe
Hello Folks

Here is an Update.

I migrate Nagios to OMD - Open Monitoring Distribution Version 2.20-labs-edition and it uses the Nagios Core Version 3.5.0 but the snmp thing drives me crazy atm.

OMD has an integrated SNP Trap Deamon. But it seems that my Python on the System and the OMD One are collidating in some way.

I made some tests again:

1. Snmp Cold Trap to OMD --> Works
2. SNMP Trap clone from the Watersensor to OMD --- > Works
3. Direct triggered snmp Trap from the Watersensor to OMD -- doesn't Work

Here is an outline ( the whole is several thousand rows but it's an loop ) from on Debug log from the Trap Deamon:

Code: Select all

[1488528430.390022] Exception handling a snmptrap (skipping this one): Traceback (most recent call last):
  File "/omd/sites/SBA2/bin/mkeventd", line 1299, in serve
    self.process_raw_data(self.process_snmptrap, self._snmptrap.recvfrom(65535))
  File "/omd/sites/SBA2/bin/mkeventd", line 1327, in process_raw_data
    handler_func(data)
  File "/omd/sites/SBA2/bin/mkeventd", line 1132, in process_snmptrap
    req_msg, whole_msg = pyasn_decoder.decode(whole_msg, asn1Spec = proto.Message())
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 342, in valueDecoder
    component, head = decodeFun(head, asn1Spec)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 50, in valueDecoder
    value, _ = decodeFun(head, asn1Spec, tagSet, length)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 831, in __call__
    '%s not in asn1Spec: %s' % (tagSet, asn1Spec)
PyAsn1Error: [0:0:6]+[128:32:4] not in asn1Spec: TagMap:
posMap:
[untagged] -> PDUs {
 "get-request" = [128:32:0] -> GetRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }
 "get-next-request" = [128:32:1] -> GetNextRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }
Adittional:

Here the link for the complete Debug Log:

https://www.file-upload.net/download-12 ... d.log.html


An other user from an mailinglist from OMD says that the System is sending illegal strings for Python parsing.

any ideas ?

best regards john

Re: Need some help with an Snmp Entry.

Posted: Tue Mar 07, 2017 1:13 pm
by mcapra
If this system is on OMD now, we cannot offer additional assistance since that's not our software. I would recommend seeking help from the OMD community in this case. I'm vaguely familiar with pyasn1, but haven't much experience with whatever mkeventd is doing.

Re: Need some help with an Snmp Entry.

Posted: Wed Mar 08, 2017 9:49 am
by skyerjoe
Hello Mcapra

I thought as much .. i just write here cause dwithfield has encouraged me to give an Update from my Case.

But i think your'e right this is gone a little bit beyound nagios.

I'll see if i can solve this in an other way ( OMD Support etc.)

but i still want to give you the end of the Story cause you've helped me so much that the community here deserves an info about the end.

Thanks everybody for guidance

best regards john

Re: Need some help with an Snmp Entry.

Posted: Wed Mar 08, 2017 10:49 am
by cdienger
Hi John, We look forward to hearing back on any progress you make.

Re: Need some help with an Snmp Entry.

Posted: Tue May 09, 2017 1:46 am
by skyerjoe
Hello everyone,

Unfortunately atm. the nagios snmp project is postponend in our company but not discontinued.

I'm not sure how we should handle this here now, set on closed and i have to ask an admin for reopening or just leave as it is.

best regards john.