pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/parallel/ganglia-monitor-core Initial import of gangli...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7a065a1de30
branches: trunk
changeset: 488726:f7a065a1de30
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Mon Feb 07 14:33:19 2005 +0000
description:
Initial import of ganglia-monitor-core into pkgsrc:
Ganglia is a scalable distributed monitoring system for high-performance
computing systems such as clusters and Grids. It is based on a hierarchical
design targeted at federations of clusters. It relies on a multicast-based
listen/announce protocol to monitor state within clusters and uses a tree of
point-to-point connections amongst representative cluster nodes to federate
clusters and aggregate their state. It leverages widely used technologies such
as XML for data representation, XDR for compact, portable data transport, and
RRDtool for data storage and visualization. It uses carefully engineered data
structures and algorithms to achieve very low per-node overheads and high
concurrency. The implementation is robust, has been ported to an extensive set
of operating systems and processor architectures, and is currently in use on
over 500 clusters around the world. It has been used to link clusters across
university campuses and around the world and can scale to handle clusters with
2000 nodes.
http://ganglia.sourceforge.net
diffstat:
parallel/ganglia-monitor-core/DESCR | 17 +
parallel/ganglia-monitor-core/Makefile | 62 +
parallel/ganglia-monitor-core/PLIST | 36 +
parallel/ganglia-monitor-core/distinfo | 13 +
parallel/ganglia-monitor-core/files/gmetad.in | 45 +
parallel/ganglia-monitor-core/files/gmond.in | 42 +
parallel/ganglia-monitor-core/patches/patch-aa | 23 +
parallel/ganglia-monitor-core/patches/patch-ab | 1011 ++++++++++++++++++++++++
parallel/ganglia-monitor-core/patches/patch-ac | 13 +
parallel/ganglia-monitor-core/patches/patch-ad | 11 +
parallel/ganglia-monitor-core/patches/patch-ae | 13 +
parallel/ganglia-monitor-core/patches/patch-af | 22 +
parallel/ganglia-monitor-core/patches/patch-ag | 22 +
parallel/ganglia-monitor-core/patches/patch-ah | 13 +
parallel/ganglia-monitor-core/patches/patch-ai | 11 +
15 files changed, 1354 insertions(+), 0 deletions(-)
diffs (truncated from 1414 to 300 lines):
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/DESCR Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,17 @@
+Ganglia is a scalable distributed monitoring system for high-performance
+computing systems such as clusters and Grids. It is based on a hierarchical
+design targeted at federations of clusters. It relies on a multicast-based
+listen/announce protocol to monitor state within clusters and uses a tree of
+point-to-point connections amongst representative cluster nodes to federate
+clusters and aggregate their state. It leverages widely used technologies such
+as XML for data representation, XDR for compact, portable data transport, and
+RRDtool for data storage and visualization. It uses carefully engineered data
+structures and algorithms to achieve very low per-node overheads and high
+concurrency. The implementation is robust, has been ported to an extensive set
+of operating systems and processor architectures, and is currently in use on
+over 500 clusters around the world. It has been used to link clusters across
+university campuses and around the world and can scale to handle clusters with
+2000 nodes.
+
+You may wish to install www/ganglia-webfrontend to monitor your systems via
+the web.
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/Makefile Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/02/07 14:33:19 jschauma Exp $
+#
+
+DISTNAME= ganglia-monitor-core-2.5.7
+CATEGORIES= net parallel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ganglia/}
+
+MAINTAINER= jschauma%NetBSD.org@localhost
+HOMEPAGE= http://ganglia.sourceforge.net/
+COMMENT= Ganglia cluster monitor, monitoring daemon
+
+HAS_CONFIGURE= YES
+USE_BUILDLINK3= YES
+USE_PKGINSTALL= YES
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --with-gmetad
+
+PATCH_ETC= lib/ganglia/gmond_config.h \
+ mans/gmetad.1 mans/gmond.1 \
+ gmetad/cmdline.c gmond/cmdline.c
+
+PATCH_RCS= gmond gmetad
+
+EGDIR= ${PREFIX}/share/examples/ganglia
+CONF_FILES= ${EGDIR}/gmond.conf ${PKG_SYSCONFDIR}/gmond.conf
+CONF_FILES+= ${EGDIR}/gmetad.conf ${PKG_SYSCONFDIR}/gmetad.conf
+
+RCD_SCRIPTS= gmond gmetad
+
+post-patch:
+.for pfile in ${PATCH_ETC}
+ ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
+ ${WRKSRC}/${pfile} > ${WRKSRC}/${pfile}.tmp && \
+ ${MV} ${WRKSRC}/${pfile}.tmp ${WRKSRC}/${pfile}
+.endfor
+.for pfile in ${PATCH_RCS}
+ ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
+ -e 's|@PREFIX@|${PREFIX}|g' \
+ -e 's|@RCD_SCRIPTS_SHELL@|${RCD_SCRIPTS_SHELL}|g' \
+ ${FILESDIR}/${pfile}.in > ${WRKSRC}/${pfile}.sh
+.endfor
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${PREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/mans/gmetric.1 ${PREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/mans/gmond.1 ${PREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/mans/gstat.1 ${PREFIX}/man/man1/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ganglia
+ ${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKSRC}/gmond/gmond.conf ${PREFIX}/share/examples/ganglia/
+ ${INSTALL_DATA} ${WRKSRC}/gmetad/gmetad.conf ${PREFIX}/share/examples/ganglia/
+ ${INSTALL_DATA} ${WRKSRC}/gmond.sh ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/gmond
+ ${INSTALL_DATA} ${WRKSRC}/gmetad.sh ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/gmetad
+
+CFLAGS+=-g
+LDFLAGS+=-g
+
+.include "../../databases/rrdtool/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/PLIST Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/07 14:33:19 jschauma Exp $
+bin/gmetric
+bin/gstat
+include/ganglia.h
+include/ganglia/ascii.h
+include/ganglia/asciitab.h
+include/ganglia/daemon_inetd.h
+include/ganglia/daemon_init.h
+include/ganglia/debug_msg.h
+include/ganglia/error.h
+include/ganglia/file.h
+include/ganglia/fsusage.h
+include/ganglia/gexec_funcs.h
+include/ganglia/gexec_process.h
+include/ganglia/gmond_config.h
+include/ganglia/hash.h
+include/ganglia/iasciitab.h
+include/ganglia/latin1tab.h
+include/ganglia/llist.h
+include/ganglia/my_inet_ntop.h
+include/ganglia/nametab.h
+include/ganglia/net.h
+include/ganglia/rdwr.h
+include/ganglia/utf8tab.h
+include/ganglia/xmldef.h
+include/ganglia/xmlparse.h
+include/ganglia/xmlrole.h
+include/ganglia/xmltok.h
+include/ganglia/xmltok_impl.h
+lib/libganglia.la
+sbin/gmond
+sbin/gmetad
+share/examples/ganglia/gmond.conf
+share/examples/ganglia/gmetad.conf
+@dirrm share/examples/ganglia
+@dirrm include/ganglia
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/distinfo Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/02/07 14:33:19 jschauma Exp $
+
+SHA1 (ganglia-monitor-core-2.5.7.tar.gz) = b5cfbb319bea0bafd6b0272584570207378ff841
+Size (ganglia-monitor-core-2.5.7.tar.gz) = 497202 bytes
+SHA1 (patch-aa) = 7a2f44bbde10513b66036169aaa990c64d0d0370
+SHA1 (patch-ab) = bdac9969d31762bc54b9e5476572a9be45faf0e6
+SHA1 (patch-ac) = 5a3fe5b9d86d495d4e157b3e2a152ac25cf91f7f
+SHA1 (patch-ad) = 4f03c665800827e1d89d7d76b81b667f0cf82ca6
+SHA1 (patch-ae) = 417a7ed552583fc61f8c3e095e9233c68311caf9
+SHA1 (patch-af) = 1874ebe88fa2ac288c5ca0a94f864bd0a71415ba
+SHA1 (patch-ag) = f78a42a47dcd8d396400ca4ed4c85e0041d21778
+SHA1 (patch-ah) = 40fae7e64918a0c7709005e9de0629dfb2c22565
+SHA1 (patch-ai) = 1ae508692d8160aa202e02612590d329d910f434
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/files/gmetad.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/files/gmetad.in Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,45 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gmetad.in,v 1.1.1.1 2005/02/07 14:33:22 jschauma Exp $
+#
+# PROVIDE: gmetad
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start gmetad:
+#
+# gmetad=YES
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="gmetad"
+rcvar=$name
+command="@PREFIX@/sbin/gmetad"
+required_files="@PKG_SYSCONFDIR@/gmetad.conf"
+start_cmd="gmetad_start"
+stop_cmd="gmetad_stop"
+restart_cmd="gmetad_stop ; gmetad_start"
+
+gmetad_start ()
+{
+ # gmetad/process_xml.c 1060 re-releases a lock, claiming it's
+ # ``required under certain errors''
+ export PTHREAD_DIAGASSERT=A
+ ${command}
+}
+
+gmetad_stop()
+{
+ pkill ${name} 2>/dev/null
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ eval ${start_cmd}
+fi
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/files/gmond.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/files/gmond.in Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gmond.in,v 1.1.1.1 2005/02/07 14:33:22 jschauma Exp $
+#
+# PROVIDE: gmond
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start gmond:
+#
+# gmond=YES
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="gmond"
+rcvar=$name
+command="@PREFIX@/sbin/gmond"
+required_files="@PKG_SYSCONFDIR@/gmond.conf"
+start_cmd="gmond_start"
+stop_cmd="gmond_stop"
+restart_cmd="gmond_stop ; gmond_start"
+
+gmond_start ()
+{
+ ${command}
+}
+
+gmond_stop()
+{
+ pkill ${name} 2>/dev/null
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ eval ${start_cmd}
+fi
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/patches/patch-aa Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/02/07 14:33:19 jschauma Exp $
+
+--- configure.orig 2005-02-03 16:34:11.000000000 -0500
++++ configure 2005-02-03 16:34:49.000000000 -0500
+@@ -11470,6 +11470,18 @@
+ #define FREEBSD 1
+ _ACEOF
+ ;;
++*netbsd*) metric_source="netbsd.c"
++ CFLAGS="-pthread $CFLAGS -D_REENTRANT"
++
++cat >>confdefs.h <<\_ACEOF
++#define SUPPORT_GEXEC 0
++_ACEOF
++
++
++cat >>confdefs.h <<\_ACEOF
++#define NETBSD 1
++_ACEOF
++;;
+ *cygwin*) metric_source="cygwin.c"
+
+ cat >>confdefs.h <<\_ACEOF
diff -r ad53e7f54869 -r f7a065a1de30 parallel/ganglia-monitor-core/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/patches/patch-ab Mon Feb 07 14:33:19 2005 +0000
@@ -0,0 +1,1011 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/02/07 14:33:21 jschauma Exp $
+
+--- /dev/null 2005-02-06 17:33:10.000000000 -0500
++++ gmond/machines/netbsd.c 2005-02-06 17:33:11.000000000 -0500
+@@ -0,0 +1,1006 @@
++/*
++ * First stab at support for metrics in NetBSD
++ * by Jan Schaumann <jschauma%netbsd.org@localhost>
++ * Thu Feb 3 22:33:36 EST 2005
++ *
++ */
++
++#include <kvm.h>
++
++#include <sys/param.h>
++#include <sys/mount.h>
++#include <sys/sysctl.h>
++#include <sys/time.h>
++#include <sys/user.h>
++#include <sys/resource.h>
++#include <sys/stat.h>
++#include <sys/swap.h>
++#include <vm/vm_param.h>
++
++#include <sys/socket.h>
++#include <net/if.h>
++#include <net/if_dl.h>
++#include <net/route.h>
++
++#include <unistd.h>
Home |
Main Index |
Thread Index |
Old Index