Bug 723800
| Summary: | Enhance snmptrapd plugin | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> |
| Component: | Plugins | Assignee: | Heiko W. Rupp <hrupp> |
| Status: | CLOSED UPSTREAM | QA Contact: | Mike Foley <mfoley> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.1 | CC: | genman, hrupp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-29 19:32:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Heiko W. Rupp
2011-07-21 08:18:34 UTC
Sorry, I did not look at it earlier, but I was knee down in some other stuff.
I've created a BZ for this patch - I would have added you in CC, but BZ is too
#*"§$€@!! to let me do that.
Questions:
* Why did you ?
- // SNMP v3
- else if (pdu instanceof ScopedPDU) {
- ScopedPDU spdu = (ScopedPDU) pdu;
- }
* log.trace() should be guarded by a if (log.isTraceEnabled()) ( or better by some previously
initialized boolean) - as you do with log.debug()
Mazz: I think the polling interval is ok here, as it only means how often the PC goes out
to query the plugin for more events. It does not lower the interval for sending event reports
to the server.
As the plugin itself has a thread that gets called when an snmp trap comes in, and then just
adds the data to a vector, from where the poller then adds it to the internal queue to be sent to
the server, I wonder if the poll interval matters much anyway.
* Why did you ?
.. because that code doesn't do anything. It does a cast and throws away the result
* Trace:
+ log.trace("poll");
this is the only trace, doesn't need to be wrapped as I'm just tracing execution and not composing a statement to print.
Polling interval...Yes agree with your findings. It's probably a level of indirection that's not needed? Or at least it's confusing to people doing coding.
The contribution under LGPL was approved using the Apple OSS contribution form.
Return-path: <prabhaka>
Received: from hyssop.apple.com ([17.128.115.95])
by mail9.apple.com (Oracle Communications Messaging Exchange Server 7u4-20.01
64bit (built Nov 21 2010)) with ESMTP id <0LN90063GES0TKJ0.com>;
Thu, 23 Jun 2011 13:12:01 -0700 (PDT)
Received: from relay13.apple.com ([17.128.113.29])
by postino.apple.com (Oracle Communications Messaging Exchange Server
7u4-20.01 64bit (built Nov 21 2010))
with ESMTP id <0LN9009HTEQYJI90.com>; Thu,
23 Jun 2011 13:12:00 -0700 (PDT)
X-AuditID: 1180711d-b7c5fae000001427-5a-4e039e045f03
Received: from kencur (kencur.apple.com [17.151.62.38])
by relay13.apple.com (Apple SCV relay) with SMTP id EA.80.05159.40E930E4; Thu,
23 Jun 2011 13:11:48 -0700 (PDT)
Received: from selfserve.apple.com (selfserve.apple.com [17.203.40.11])
by kencur.apple.com
(Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21
2010)) with ESMTPSA id <0LN900A78ERZOF90.com>; Thu,
23 Jun 2011 13:12:00 -0700 (PDT)
Subject: Re: OSS Postback Request: RHQ
MIME-version: 1.0 (Apple Message framework v1237.1)
Content-type: text/plain; charset=iso-8859-1
From: "Ernest N. Prabhakar, Ph.D." <prabhaka>
In-reply-to: <20110621205550.144A2DEC40.apple.com>
Date: Thu, 23 Jun 2011 13:12:05 -0700
Cc: darwin-mgt.com, tmcneil, ksaul
Content-transfer-encoding: quoted-printable
Message-id: <869A00D4-72B8-4461-8516-7BD5169D22F6>
References: <20110621205550.144A2DEC40.apple.com>
To: elias_ross, iBoon
X-Mailer: Apple Mail (2.1237.1)
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFlrBLMWRmVeSWpSXmKPExsUiON1OTZdlHrOfwYwD8haPPp9htDjZtIXR
gclj68kfbAGMUVw2Kak5mWWpRfp2CVwZh7Z9ZC643MdU8fnMecYGxktXGbsYOTkkBEwkpky8
zgRhi0lcuLeeDcQWEljJKHFspxiEPYVJonWhNIgtLKAm8WD7M1YQm1fAWKJ98WUWEJtZQEei
9/s35i5Gdg42AXOJT9YgUU4BR4klv+8CVXNwsAioSsx7HQpR7CRx5cZ3JghbW+LJuwtQA20k
9i1sZwQpFxJwkLh5xA8kLCKgKXHl/gY2iBvlJbZtesk8gVFgFpITZiE5YRaSqQsYmVcxChal
5iRWGhrrJRYU5KTqJefnbmIEhV9DoewOxv0/+Q8xCnAwKvHwrkxg9hNiTSwrrsw9xCjBwawk
wtuRDBTiTUmsrEotyo8vKs1JLT7EKM3BoiTOe3XNJ18hgfTEktTs1NSC1CKYLBMHp1QDI/vK
XUnTbhxu0+C3KXt3NU9/2qwrJtJJxVve2j+5KRUQdbNwQmOezIcL908snJdSyXLuxtumZ1LP
De+LaDZ7+qos/BmbdVKLd21SgHvT/ajCUv58ngePVQRzp0zpMs2TT07tnJU6jZeFlXOmmfeC
ylvhBr/z9bc6iih/C3isavXj38T5G5sTlViKMxINtZiLihMBQRMsGzsCAAA=
Elias, great. This is 826233b0e8fc6 in master - thanks a lot. marking this closed/upstream. this plugin is not part of jon. |