ports/157503: [new port] net-mgmt/zenpack-InterfaceGraphs: Provides a link that graphs all network interfaces for a device (zenoss)

Jason Helfman zenoss at experts-exchange.com
Wed Jun 1 19:10:10 UTC 2011


>Number:         157503
>Category:       ports
>Synopsis:       [new port] net-mgmt/zenpack-InterfaceGraphs: Provides a link that graphs all network interfaces for a device (zenoss)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 01 19:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Zenpacks extend the capabilities of Zenoss. This port builds cleanly in Tinderbox.

This port depends on the following PR:
ports/156655

>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	zenpack-InterfaceGraphs
#	zenpack-InterfaceGraphs/files
#	zenpack-InterfaceGraphs/files/pkg-deinstall.in
#	zenpack-InterfaceGraphs/files/pkg-message.in
#	zenpack-InterfaceGraphs/distinfo
#	zenpack-InterfaceGraphs/pkg-descr
#	zenpack-InterfaceGraphs/pkg-plist
#	zenpack-InterfaceGraphs/Makefile
#
echo c - zenpack-InterfaceGraphs
mkdir -p zenpack-InterfaceGraphs > /dev/null 2>&1
echo c - zenpack-InterfaceGraphs/files
mkdir -p zenpack-InterfaceGraphs/files > /dev/null 2>&1
echo x - zenpack-InterfaceGraphs/files/pkg-deinstall.in
sed 's/^X//' >zenpack-InterfaceGraphs/files/pkg-deinstall.in << 'f2036375e03022af26741883f361572f'
X#!/bin/sh
X
Xif [ "$2" = "DEINSTALL" ]; then
X   echo "To de-activate this Zenpack, run the following command as the zenoss user:
X
X%%ZENHOME%%/bin/zenpack --remove %%ZPACKPREFIX%%%%PORTNAME%%
X
XIMPORTANT: De-activating a Zenpack will also remove all its associated data"
X
Xfi
f2036375e03022af26741883f361572f
echo x - zenpack-InterfaceGraphs/files/pkg-message.in
sed 's/^X//' >zenpack-InterfaceGraphs/files/pkg-message.in << '5d0bbc9d56a8eef66de9354e7850022b'
X
XBefore activation of this Zenpack, you will need to create a Sub-Folder named
X"Storage" under MIBs in the web-interface. (Advanced-> MIBs> Sub-Folder)
X
XTo activate this Zenpack, run the following commands as the zenoss user:
X
X%%ZENHOME%%/bin/zenpack --install %%ZPACKHOME%%/%%ZPACK%%
X%%ZENHOME%%/bin/zopectl restart
5d0bbc9d56a8eef66de9354e7850022b
echo x - zenpack-InterfaceGraphs/distinfo
sed 's/^X//' >zenpack-InterfaceGraphs/distinfo << 'cb23596854354391f2ae71c388c64333'
XSHA256 (InterfaceGraphs-1.0.tar.gz) = 36c71c06eb12108599f793b683ff6365a1ababb87cdced99c54c73f4cdce2806
XSIZE (InterfaceGraphs-1.0.tar.gz) = 5202
cb23596854354391f2ae71c388c64333
echo x - zenpack-InterfaceGraphs/pkg-descr
sed 's/^X//' >zenpack-InterfaceGraphs/pkg-descr << 'da86abb0da1db3e04f501ac24bb47844'
XWhen troubleshooting network issues, it can be very useful to have all the 
Xinterface graphs for a device on the same screen. This helps with spotting 
Xtrends, or tracing where traffic is flowing through a switch or router. The 
Xonly way to natively achieve this with Zenoss is to create a graph or 
Xmulti-graph report for every network device manually, which can be a chore 
Xif you have more than a few network devices.
X 
XThis ZenPack provides a new link on the left side of a device detail view 
Xcalled "Interface Graphs" - this view shows the graphs for all of the network 
Xinterfaces on the device in one place, allowing for fast spotting of issues 
Xor traffic flows. Both the interface name and the description (if any) are 
Xused to title the graphs to aid with identification.
X 
XNote that with stacked switches, you can end up with a very large number of 
Xgraphs on the page, so tuning this slightly via the configuration properties 
Xbelow could be a good idea in these situations.
X
XWWW: http://community.zenoss.org/docs/DOC-10226
da86abb0da1db3e04f501ac24bb47844
echo x - zenpack-InterfaceGraphs/pkg-plist
sed 's/^X//' >zenpack-InterfaceGraphs/pkg-plist << '610731a87d76ef06c3ae895a13f0df2c'
Xzenoss/ZenPack/%%ZPACK%%
X at dirrmtry zenoss/ZenPack
610731a87d76ef06c3ae895a13f0df2c
echo x - zenpack-InterfaceGraphs/Makefile
sed 's/^X//' >zenpack-InterfaceGraphs/Makefile << '5574151eb8ff69554ede4cad47e0d5ba'
X# New ports collection makefile for: InterfaceGraphs
X# Date created:    26 May 2011
X# Whom:      Zenoss <zenoss at experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	InterfaceGraphs
XPORTVERSION=	1.0
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://www.glenbarber.us/ports/net-mgmt/${PORTDIRNAME}/
X
XMAINTAINER=	zenoss at experts-exchange.com
XCOMMENT=	Provides a link that graphs all network interfaces for a device
X
XBUILD_DEPENDS=	zenoss>=3.1.0:${PORTSDIR}/net-mgmt/zenoss
XRUN_DEPENDS=	zenoss>=3.1.0:${PORTSDIR}/net-mgmt/zenoss
X
XFETCH_ARGS=	-o - > ${DISTDIR}/${DISTFILES}
XPKGNAMEPREFIX:=	zenpack-community-
X
XZENHOME=	${LOCALBASE}/zenoss
XZPACKHOME=	${LOCALBASE}/zenoss/ZenPack
XZPACKPREFIX=	ZenPacks.community.
XZPACK=	${ZPACKPREFIX}${PORTNAME}-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg
XPLIST_SUB=	ZPACK=${ZPACK}
XSUB_LIST=	ZENHOME=${ZENHOME} \
X		ZPACK=${ZPACK} \
X		ZPACKHOME=${ZPACKHOME} \
X		ZPACKPREFIX=${ZPACKPREFIX} \
X		PORTNAME=${PORTNAME}
XSUB_FILES=	pkg-message pkg-deinstall
X
XSHAREOWN=	zenoss
XSHAREGRP=	zenoss
X
X#zenoss provides its own python 2.6 - we build against that for application compatibility
XPYTHON_VERSION=	python2.6
XPYTHON_CMD=	${ZENHOME}/bin/python
XPYSETUP=	./setup.py
X
XMAKE_ENV+=	ZENHOME=${ZENHOME} \
X		INSTANCE_HOME=${ZENHOME} \
X		PYTHONPATH=${ZENHOME}/lib/python \
X		PATH=${ZENHOME}/bin:${PATH}
X
X.if !defined(UID)
XUID!=	/usr/bin/id -u
X.endif
X
Xdo-build:
X.if ${UID} != 0 && !defined(INSTALL_AS_USER)
X	@${ECHO_MSG} "===>  Switching to root credentials for '${.TARGET}' target"
X	@cd ${.CURDIR} && \
X		${SU_CMD} "${MAKE} ${__softMAKEFLAGS} ${.TARGET}"
X	@${ECHO_MSG} "===>  Returning to user credentials"
X.else
X	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} bdist_egg
X.endif
X
Xdo-install:
X	${MKDIR} ${ZPACKHOME}
X	${INSTALL_DATA} ${WRKSRC}/dist/${ZPACK} ${ZPACKHOME}
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
5574151eb8ff69554ede4cad47e0d5ba
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list