Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234036 - net-analyzer/net-snmp - add new capabilities
Summary: net-analyzer/net-snmp - add new capabilities
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 233546 59891 208429
  Show dependency tree
 
Reported: 2008-08-05 22:50 UTC by Chris Gianelloni (RETIRED)
Modified: 2012-08-19 02:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-analyzer/net-snmp/net-snmp-5.4.1.1-r1.ebuild (net-snmp-5.4.1.1-r1.ebuild,8.68 KB, text/plain)
2008-08-05 23:08 UTC, Chris Gianelloni (RETIRED)
Details
files.diff (files.diff,407 bytes, patch)
2008-08-05 23:11 UTC, Chris Gianelloni (RETIRED)
Details | Diff
metadata.diff (metadata.diff,2.07 KB, patch)
2008-08-05 23:12 UTC, Chris Gianelloni (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gianelloni (RETIRED) gentoo-dev 2008-08-05 22:50:46 UTC
I'm attaching my local net-snmp ebuild.  I've been using this (though more modified with company-specific stuff) for monitoring my production environment and would love to see these enhancements make it into the tree.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2008-08-05 23:08:05 UTC
Created attachment 162323 [details]
net-analyzer/net-snmp/net-snmp-5.4.1.1-r1.ebuild

This is the complete ebuild, which also resolves bug #233546 and bug #59891.  There are a ton of changes in this ebuild, which I will outline here.

- Switched to EAPI=1
- Enabled smux and extensible by default for compatibility
- Enabled diskio by default, since it's supported by every kernel we ship
- Added initial kerberos support
- Wrapped lm_sensors in kernel_linux
- Added USE=java (bug #233546) to enable JVM stats
- Added USE=apache2 (bug #59891) since the mod_ap2_snmp ebuild is completely useless in the tree without this, also
- Only run default perl/python functions when they're enabled
- Use net-snmp's building/installing for perl/python modules
- Added support for TUNNEL-MIB on Linux
- Cleaned up MIB selection section for better embedded support
- Refactored USE=minimal to actually build a mini-agent
- Added USE=bzip2 and USE=zlib, since they're usable outside RPM support

I'm sure that there's something that I'm missing, but this should cover it.  ;]
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-08-05 23:11:42 UTC
Created attachment 162324 [details, diff]
files.diff

This is actually a one-liner that adds a "before apache2" to the depend section of snmpd.  This is required for mod_ap2_snmp to function correctly.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-08-05 23:12:59 UTC
Created attachment 162326 [details, diff]
metadata.diff

This is an updated metadata.xml patch that gives descriptions for the global USE flags and tries to make things easier to understand for the end-user.
Comment 4 Gordon Malm (RETIRED) gentoo-dev 2009-07-28 05:29:29 UTC
I've opened another net-snmp revamp bug in #279423.  I've included some of this stuff where our goals, etc. overlap.  Yours adds more functionality items that mine does not.  I'm going to break down your original list so we can track what the two have in common.

Included in #279423: 
> - Switched to EAPI=1
^^^ EAPI=2 now actually.
> - Wrapped lm_sensors in kernel_linux
> - Only run default perl/python functions when they're enabled
> - Use net-snmp's building/installing for perl/python modules
> - Added USE=bzip2 and USE=zlib, since they're usable outside RPM support

Not included in #279423:
> - Enabled smux and extensible by default for compatibility
> - Enabled diskio by default, since it's supported by every kernel we ship
> - Added initial kerberos support
> - Added USE=java (bug #233546) to enable JVM stats
> - Added USE=apache2 (bug #59891) since the mod_ap2_snmp ebuild is completely
> useless in the tree without this, also
> - Added support for TUNNEL-MIB on Linux
> - Cleaned up MIB selection section for better embedded support
> - Refactored USE=minimal to actually build a mini-agent

Most (if not all) of this stuff is worthy and should go in too.  I didn't want to pile on though and I can't test some of this stuff.  ebuild changed enough already and is mainly a build+fixing release.

BTW, why is the apache2 stuff also x86 || amd64 dependent in your ebuild?  Is it because mod_ap2_snmp is only x86/amd64 keyworded or that they really are arch-specific or what?
Comment 5 Chris Gianelloni 2009-08-31 22:34:02 UTC
It was specific due to the KEYWORDS, not due to limitations in mod_ap2_snmp.  I have actually removed it from the current versions of the ebuild due to instability issues that it caused.  Essentially, his update mechanism would cause all kinds of headaches, since it worked via pushing SNMP writes locally.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-19 02:19:53 UTC
I'm marking this obsolete, I'll do my best to add the missing parts of this in the ebuild.