Need some help with an Snmp Entry.

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Need some help with an Snmp Entry.

Postby dwhitfield » Thu Dec 01, 2016 10:24 am

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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2771
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Need some help with an Snmp Entry.

Postby skyerjoe » Wed Feb 15, 2017 9:08 am

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
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
 
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need some help with an Snmp Entry.

Postby dwhitfield » Wed Feb 15, 2017 10:15 am

No problem on the wait. I just wanted to make sure we weren't missing something new from the gap. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2771
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Need some help with an Snmp Entry.

Postby skyerjoe » Thu Feb 16, 2017 3:52 am

Dwithfield

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

at the end i'll make an summary

best regards john
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
 
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need some help with an Snmp Entry.

Postby dwhitfield » Thu Feb 16, 2017 8:40 am

skyerjoe wrote:at the end i'll make an summary


Fantastic! It's always great to have community contributions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2771
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Need some help with an Snmp Entry.

Postby skyerjoe » Tue Mar 07, 2017 3:10 am

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
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
 
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need some help with an Snmp Entry.

Postby mcapra » Tue Mar 07, 2017 1:13 pm

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.
Former Nagios employee - https://github.com/mcapra/
mcapra
 
Posts: 2380
Joined: Thu May 05, 2016 3:54 pm

Re: Need some help with an Snmp Entry.

Postby skyerjoe » Wed Mar 08, 2017 9:49 am

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
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
 
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need some help with an Snmp Entry.

Postby cdienger » Wed Mar 08, 2017 10:49 am

Hi John, We look forward to hearing back on any progress you make.
User avatar
cdienger
 
Posts: 357
Joined: Tue Feb 07, 2017 11:26 am

Re: Need some help with an Snmp Entry.

Postby skyerjoe » Tue May 09, 2017 1:46 am

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.
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
 
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

PreviousNext

Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 3 guests