pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/munin-node Import the client version of the M...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7f8351f66151
branches: trunk
changeset: 513861:7f8351f66151
user: he <he%pkgsrc.org@localhost>
date: Sun Jun 04 20:53:56 2006 +0000
description:
Import the client version of the Munin system monitoring/graphing
tool -- project homepage is at http://munin.sourceforge.net/
This package has added support for NetBSD, via a number of new plugin
scripts where specific steps needs to be taken to collect information.
I also modified the ntp_ plugin script to make it possible to not
plot the NTP poll delay, leaving just jitter and offset, which IMO
produces a more telling graph.
diffstat:
sysutils/munin-node/DESCR | 7 +
sysutils/munin-node/MESSAGE | 6 +
sysutils/munin-node/Makefile | 84 +++++
sysutils/munin-node/PLIST | 136 +++++++++
sysutils/munin-node/distinfo | 9 +
sysutils/munin-node/files/munin-node.sh | 36 ++
sysutils/munin-node/files/node/node.d.netbsd/cpu.in | 133 ++++++++
sysutils/munin-node/files/node/node.d.netbsd/df.in | 76 +++++
sysutils/munin-node/files/node/node.d.netbsd/df_inode.in | 91 ++++++
sysutils/munin-node/files/node/node.d.netbsd/forks.in | 75 ++++
sysutils/munin-node/files/node/node.d.netbsd/if_.in | 80 +++++
sysutils/munin-node/files/node/node.d.netbsd/if_errcoll_.in | 76 +++++
sysutils/munin-node/files/node/node.d.netbsd/interrupts.in | 93 ++++++
sysutils/munin-node/files/node/node.d.netbsd/iostat.in | 117 +++++++
sysutils/munin-node/files/node/node.d.netbsd/iostat_ops.in | 117 +++++++
sysutils/munin-node/files/node/node.d.netbsd/irqstats.in | 84 +++++
sysutils/munin-node/files/node/node.d.netbsd/load.in | 122 ++++++++
sysutils/munin-node/files/node/node.d.netbsd/memory.in | 89 +++++
sysutils/munin-node/files/node/node.d.netbsd/memory_pools.in | 143 +++++++++
sysutils/munin-node/files/node/node.d.netbsd/memory_types.in | 88 +++++
sysutils/munin-node/files/node/node.d.netbsd/netstat.in | 94 ++++++
sysutils/munin-node/files/node/node.d.netbsd/nfs_client.in | 82 +++++
sysutils/munin-node/files/node/node.d.netbsd/nfsd.in | 82 +++++
sysutils/munin-node/files/node/node.d.netbsd/open_files.in | 78 +++++
sysutils/munin-node/files/node/node.d.netbsd/processes.in | 52 +++
sysutils/munin-node/files/node/node.d.netbsd/sensors_.in | 166 +++++++++++
sysutils/munin-node/files/node/node.d.netbsd/swap.in | 74 ++++
sysutils/munin-node/files/node/node.d.netbsd/uptime.in | 63 ++++
sysutils/munin-node/files/node/node.d.netbsd/vmstat.in | 102 ++++++
sysutils/munin-node/files/node/node.d/ntp_kernel_err.in | 43 ++
sysutils/munin-node/files/node/node.d/ntp_kernel_pll_freq.in | 50 +++
sysutils/munin-node/files/node/node.d/ntp_kernel_pll_off.in | 43 ++
sysutils/munin-node/patches/patch-aa | 89 +++++
sysutils/munin-node/patches/patch-ab | 13 +
sysutils/munin-node/patches/patch-ac | 40 ++
sysutils/munin-node/patches/patch-ad | 21 +
36 files changed, 2754 insertions(+), 0 deletions(-)
diffs (truncated from 2898 to 300 lines):
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/DESCR Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,7 @@
+Munin is a tool for graphing all sorts of information about one or
+more servers and displaying it in a web interface. It uses the
+execellent RRDTool (written by Tobi Oetiker) and is written in Perl.
+Munin has a master/node architecture. The master connects to all the
+nodes at regular intervals, and asks them for data. It then stores
+the data in RRD-files, and (if needed) updates the graphs. One of the
+main goals has been ease of creating own "plugins" (graphs).
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/MESSAGE Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,6 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
+
+Plugins can be auto-configured with "munin-node-configure --shell | sh"
+
+===========================================================================
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/Makefile Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,84 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/04 20:53:56 he Exp $
+#
+
+DISTNAME= ${PKGNAME:S:-node-:_:}
+PKGNAME= munin-node-1.3.1
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=munin/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://munin.sourceforge.net/
+COMMENT= System monitoring tool, client version
+
+DEPENDS+= p5-Net-Server>=0:../../net/p5-Net-Server
+DEPENDS+= p5-Net-SSLeay>=0:../../security/p5-Net-SSLeay
+BUILD_DEPENDS+= htmldoc>=0:../../www/htmldoc
+BUILD_DEPENDS+= html2text>=0:../../textproc/html2text
+
+USE_TOOLS+= perl
+USE_TOOLS+= gmake
+USE_PKGINSTALL= YES
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S:_:-:}
+
+MUNIN_GROUP?= munin
+MUNIN_USER?= munin
+
+PKG_GROUPS= ${MUNIN_GROUP}
+PKG_USERS= ${MUNIN_USER}:${MUNIN_GROUP}::Munin\\ user
+
+STATEDIR= ${VARBASE}/munin/plugin-state
+
+MAKE_DIRS= ${VARBASE}/munin
+MAKE_DIRS+= ${VARBASE}/run/munin
+MAKE_DIRS+= ${VARBASE}/log/munin
+MAKE_DIRS+= ${STATEDIR}
+
+OWN_DIRS= ${VARBASE}/munin
+OWN_DIRS+= ${VARBASE}/run/munin
+OWN_DIRS+= ${VARBASE}/log/munin
+OWN_DIRS+= ${VARBASE}/munin/plugin-state
+
+OWN_DIRS_PERMS+=${VARBASE}/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
+OWN_DIRS_PERMS+=${VARBASE}/run/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
+OWN_DIRS_PERMS+=${VARBASE}/log/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
+OWN_DIRS_PERMS+=${VARBASE}/munin/plugin-state ${MUNIN_USER} ${MUNIN_GROUP} 0775
+
+INSTALL_TARGET= install-doc install-man
+INSTALL_TARGET+=install-node install-node-plugins
+
+BUILD_TARGET= build build-doc build-man
+
+#MAKE_ENV+= PERL=${PERL5:Q}
+#MAKE_ENV+= PERL5_SITELIB=${PERL5_SITELIB}
+MAKE_ENV+= MUNIN_USER=${MUNIN_USER}
+MAKE_ENV+= MUNIN_GROUP=${MUNIN_GROUP}
+MAKE_ENV+= PERL5=${PERL5:Q}
+
+FILES_SUBST+= PERL=${PERL5:Q}
+FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+FILES_SUBST+= STATEDIR=${STATEDIR}
+
+RCD_SCRIPTS+= munin-node
+
+EGDIR= ${PREFIX}/share/examples/munin
+
+CONF_FILES+= ${EGDIR}/munin-node.conf ${PKG_SYSCONFDIR}/munin/munin-node.conf
+
+
+pre-configure:
+ cd ${FILESDIR}; ${TAR} cf - . | (cd ${WRKSRC}; ${TAR} xfp -)
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/node/munin-node.conf ${EGDIR}
+
+#pre-install:
+# sed -e "s!@PKG_SYSCONFDIR@!${PKG_SYSCONFDIR}!; \
+# s!@PERL@!${PERL5}!; \
+# s!@PREFIX@!${PREFIX}!;" \
+# <${WRKSRC}/munin-node.sh \
+# > ${WRKSRC}/rc.d/munin-node
+
+.include "../../mk/bsd.pkg.mk"
+.include "../../lang/python/application.mk"
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/PLIST Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,136 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
+lib/munin/plugins/acpi
+lib/munin/plugins/amavis
+lib/munin/plugins/apache_accesses
+lib/munin/plugins/apache_processes
+lib/munin/plugins/apache_volume
+lib/munin/plugins/apc_envunit_
+lib/munin/plugins/apc_nis
+lib/munin/plugins/bind9
+lib/munin/plugins/bind9_rndc
+lib/munin/plugins/courier_
+lib/munin/plugins/courier_mta_mailqueue
+lib/munin/plugins/courier_mta_mailstats
+lib/munin/plugins/courier_mta_mailvolume
+lib/munin/plugins/cpu
+lib/munin/plugins/cupsys_pages
+lib/munin/plugins/df
+lib/munin/plugins/df_inode
+lib/munin/plugins/dhcpd3
+lib/munin/plugins/exim_mailqueue
+lib/munin/plugins/exim_mailqueue_alt
+lib/munin/plugins/exim_mailstats
+lib/munin/plugins/foldingathome
+lib/munin/plugins/foldingathome_rank
+lib/munin/plugins/foldingathome_wu
+lib/munin/plugins/forks
+lib/munin/plugins/hddtemp
+lib/munin/plugins/hddtemp2
+lib/munin/plugins/hddtemp_smartctl
+lib/munin/plugins/hddtempd
+lib/munin/plugins/if_
+lib/munin/plugins/if_errcoll_
+lib/munin/plugins/interrupts
+lib/munin/plugins/iostat
+lib/munin/plugins/iostat_ops
+lib/munin/plugins/ipac-ng
+lib/munin/plugins/ircu
+lib/munin/plugins/irqstats
+lib/munin/plugins/load
+lib/munin/plugins/loggrep
+lib/munin/plugins/mailman
+lib/munin/plugins/mailscanner
+lib/munin/plugins/memory
+lib/munin/plugins/memory_pools
+lib/munin/plugins/memory_types
+lib/munin/plugins/mhttping
+lib/munin/plugins/multips
+lib/munin/plugins/munin_graph
+lib/munin/plugins/munin_update
+lib/munin/plugins/mysql_bytes
+lib/munin/plugins/mysql_isam_space_
+lib/munin/plugins/mysql_queries
+lib/munin/plugins/mysql_slowqueries
+lib/munin/plugins/mysql_threads
+lib/munin/plugins/named
+lib/munin/plugins/netstat
+lib/munin/plugins/nfs_client
+lib/munin/plugins/nfsd
+lib/munin/plugins/ntp_
+lib/munin/plugins/ntp_kernel_err
+lib/munin/plugins/ntp_kernel_pll_freq
+lib/munin/plugins/ntp_kernel_pll_off
+lib/munin/plugins/ntp_states
+lib/munin/plugins/nut_misc
+lib/munin/plugins/nut_volts
+lib/munin/plugins/open_files
+lib/munin/plugins/perdition
+lib/munin/plugins/ping_
+lib/munin/plugins/plugins.history
+lib/munin/plugins/pm3users_
+lib/munin/plugins/pop_stats
+lib/munin/plugins/postfix_mailqueue
+lib/munin/plugins/postfix_mailstats
+lib/munin/plugins/postfix_mailvolume
+lib/munin/plugins/processes
+lib/munin/plugins/ps_
+lib/munin/plugins/psu_
+lib/munin/plugins/samba
+lib/munin/plugins/sendmail_mailqueue
+lib/munin/plugins/sendmail_mailstats
+lib/munin/plugins/sendmail_mailtraffic
+lib/munin/plugins/sensors_
+lib/munin/plugins/smart_
+lib/munin/plugins/snmp__df
+lib/munin/plugins/snmp__fc_if_
+lib/munin/plugins/snmp__fc_if_err_
+lib/munin/plugins/snmp__if_
+lib/munin/plugins/snmp__if_err_
+lib/munin/plugins/snmp__load
+lib/munin/plugins/snmp__processes
+lib/munin/plugins/snmp__sensors_fsc_bx_fan
+lib/munin/plugins/snmp__sensors_fsc_bx_temp
+lib/munin/plugins/snmp__sensors_fsc_fan
+lib/munin/plugins/snmp__sensors_fsc_temp
+lib/munin/plugins/snmp__sensors_mbm_fan
+lib/munin/plugins/snmp__sensors_mbm_temp
+lib/munin/plugins/snmp__sensors_mbm_volt
+lib/munin/plugins/snmp__users
+lib/munin/plugins/spamstats
+lib/munin/plugins/squid_cache
+lib/munin/plugins/squid_icp
+lib/munin/plugins/squid_requests
+lib/munin/plugins/squid_traffic
+lib/munin/plugins/surfboard
+lib/munin/plugins/swap
+lib/munin/plugins/sybase_space
+lib/munin/plugins/uptime
+lib/munin/plugins/vmstat
+man/man5/munin-node.conf.5
+man/man5/munin.conf.5
+man/man8/munin-cron.8
+man/man8/munin-graph.8
+man/man8/munin-html.8
+man/man8/munin-limits.8
+man/man8/munin-node.8
+man/man8/munin-run.8
+man/man8/munin-update.8
+sbin/munin-node
+sbin/munin-node-configure
+sbin/munin-node-configure-snmp
+sbin/munin-run
+share/doc/munin/COPYING
+share/doc/munin/README.api
+share/doc/munin/README.plugins
+share/doc/munin/munin-doc.html
+share/doc/munin/munin-doc.pdf
+share/doc/munin/munin-doc.txt
+share/doc/munin/munin-faq.html
+share/doc/munin/munin-faq.pdf
+share/doc/munin/munin-faq.txt
+share/examples/munin/munin-node.conf
+share/examples/rc.d/munin-node
+@comment pkg-specific directories:
+@dirrm share/doc/munin
+@dirrm lib/munin/plugins
+@dirrm lib/munin
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/distinfo Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
+
+SHA1 (munin_1.3.1.tar.gz) = f7783b645abbb25524c3f1b6e0fe27185f1de3db
+RMD160 (munin_1.3.1.tar.gz) = a6ea4e1839f4c787457e4051d55007b7bcebd1d4
+Size (munin_1.3.1.tar.gz) = 315743 bytes
+SHA1 (patch-aa) = f4c75a11a5fa026d968a2685f55061c74f51e537
+SHA1 (patch-ab) = bb0f63cdef893d8c224cdd03a4a4125d03f85f80
+SHA1 (patch-ac) = 9ef503b4d20f65e990c332c7789188a6fbad618e
+SHA1 (patch-ad) = 8accd3875324035f2c95903fc37cee4b4a55948a
diff -r dfb0aac50cd3 -r 7f8351f66151 sysutils/munin-node/files/munin-node.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/munin-node/files/munin-node.sh Sun Jun 04 20:53:56 2006 +0000
@@ -0,0 +1,36 @@
+#! /bin/sh
+#
+# $NetBSD: munin-node.sh,v 1.1.1.1 2006/06/04 20:53:57 he Exp $
+#
+# PROVIDE: munin-node
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start munin-node:
+#
+# munin_node=YES
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="munin_node"
+rcvar=$name
+command=@PREFIX@/sbin/munin-node
+command_interpreter=@PERL@
+required_files=@PKG_SYSCONFDIR@/munin/munin-node.conf
+
+if [ ! -d @STATEDIR@ ]; then
+ mkdir @STATEDIR@
+ chown munin:munin /var/run/munin
+fi
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
Home |
Main Index |
Thread Index |
Old Index