munin-node install problems
Matt Craig
matcraig at nmsu.edu
Thu Aug 3 16:12:15 UTC 2006
FreeBSD 6.1 STABLE
Installing munin-node from packages using portupgrade does not
successfully install. I have one of my FreeBSD servers set up as a NFS
server serving some FreeBSD NFS clients. The NFS server exports the
usr/src/, usr/obj, and usr/ports directories to the NFS clients. This
way, I only need to recompile the src on one machine. It also allows me
to build packages using portupgrade on the NFS server and install them
on the NFS clients, so I don't have to download the src for each package
on each separate machine.
When I install the munin-node on the NFS server, I get no problems and
everything works. However, when I install munin-node on the NFS
clients, not even one install works. It doesn't install the
munin-node.sh in /usr/local/etc/rc.d, and the process will not start.
Below are the details of the install. I copy pasted from "You need a
group "munin"." to "Would you like me to set up log rotation [y]? y" for
both installs. As you can see, they are quite different. Note the
"./+INSTALL: /usr/local/etc/rc.d/munin-node.sh: not found" from the
install on the NFS Client.
Using portupgrade -NfPP on a NFS client.
-----------------------------------------------------------------------------------------------------------------
You need a group "munin".
Would you like me to create it [y]? y
Done.
Initializing new plugins..done.
./+INSTALL: /usr/local/etc/rc.d/munin-node.sh: not found
Would you like me to set up log rotation [y]? y
-----------------------------------------------------------------------------------------------------------------
Using portupgrade -Nfp on NFS server. Also saw same install when you do
a make install.
-----------------------------------------------------------------------------------------------------------------
You need a group "munin".
Would you like me to create it [y]? y
Done.
===> Generating temporary packing list
mkdir -p /usr/local/etc/munin/plugins
mkdir -p /usr/local/etc/munin/plugin-conf.d
mkdir -p /usr/local/share/munin/plugins
mkdir -p /usr/local/sbin
mkdir -p /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin
mkdir -p /var/log
mkdir -p /var/run/munin
mkdir -p /usr/local/var/munin/plugin-state
chgrp munin /usr/local/var/munin/plugin-state
chmod 775 /usr/local/var/munin/plugin-state
chmod 755 /usr/local/etc/munin/plugin-conf.d
./install-sh -m 0755 build/node/munin-node /usr/local/sbin/
./install-sh -m 0755 build/node/munin-node-configure /usr/local/sbin/
test -f "/usr/local/etc/munin/munin-node.conf" || ./install-sh -m 0644
build/node/munin-node.conf /usr/local/etc/munin/
./install-sh -m 0755 build/node/munin-run /usr/local/sbin/
./install-sh -m 0755 build/node/munin-node-configure-snmp /usr/local/sbin/
echo Done.
Done.
for p in build/node/node.d.freebsd/* build/node/node.d/*;
do \
if test -f "$p" ;
then \
family=`sed -n 's/^#%# family=\(.*\)$/\1/p'
$p`; \
test "$family" ||
family=contrib; \
if echo "auto manual contrib snmpauto" | grep
$family >/dev/null; then \
test -f
"/usr/local/share/munin/plugins/`basename $p`" \
|| ./install-sh -m 0755 $p
/usr/local/share/munin/plugins/; \
fi; \
fi \
done
./install-sh -m 0644 build/node/plugins.history
/usr/local/share/munin/plugins/
#TODO:
#configure plugins.
install -o root -g wheel -m 555
/usr/ports/sysutils/munin-node/work/munin-node.sh
/usr/local/etc/rc.d/munin-node.sh
install -o root -g wheel -m 444
/usr/ports/sysutils/munin-node/work/munin-1.2.4/build/node/munin-node.conf
/usr/local/etc/munin/munin-node.conf.sample
install -o root -g wheel -m 444 files/plugins.conf
/usr/local/etc/munin/plugin-conf.d/plugins.conf.sample
********************************************************************
Unless this file already existed, a sample configuration file
has been placed in /usr/local/etc/munin/munin-node.conf.
Please edit it according to your needs.
********************************************************************
The Munin client will *not* be started automatically. To allow it
to start, put this line in /etc/rc.conf:
munin_node_enable="YES"
Then, it will be started on the next boot. If this line is already
present, the client will be started now. Otherwise, edit
/etc/rc.conf and execute this command:
/usr/local/etc/rc.d/munin-node.sh start
********************************************************************
Initializing new plugins..done.
Starting munin_node.
Would you like me to set up log rotation [y]? y
-----------------------------------------------------------------------------------------------------------------
Doing a make install on the NFS clients works just fine, but this is not
the optimal solution for me, as it defeats the purpose of my NFS setup.
I don't know if it is the munin-node port or if it has something to do
with FreeBSD or portupgrade, so I am posting this on both mailing lists.
More information about the freebsd-ports
mailing list