mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
710334b615
The "lrrd" service seems to be some historical cruft, that is no longer in use. It is still an alias for the "munin" service (port 4949) in /etc/services, but probably not in use anymore.
36 lines
1.2 KiB
INI
36 lines
1.2 KiB
INI
#!/bin/sh
|
|
|
|
# 2007-06-07 Kai Ove Gran
|
|
#
|
|
# This script will configure and launch muninlite on floppyfw
|
|
# (http://www.zelow.no/floppyfw/. Keep in mind that you floppyfw will have to
|
|
# be compiled with support for inetd for this to work.
|
|
# You will also have to open tcp port 4949 from the host running munin.
|
|
#
|
|
# Please read about how to configure muninlite at:
|
|
# http://sourceforge.net/projects/muninlite
|
|
#
|
|
# Please read about how to configure munin at:
|
|
# http://munin.projects.linpro.no/
|
|
|
|
# If munin is running on a host outside your local network, you will have to
|
|
# move this line to your firewall.init and change x.x.x.x to the IP of the
|
|
# external host. IT IS NOT RECOMMENDED TO ALLOW CONNECTIONS TO YOUR FLOPPYFW
|
|
# FROM AN EXTERNAL HOST! This might be a security risk.
|
|
|
|
#iptables -A INPUT -p TCP --dport 4949 -s x.x.x.x -j ACCEPT
|
|
|
|
|
|
if [ -f /sbin/inetd ]; then
|
|
echo "munin stream tcp nowait root /usr/local/bin/muninlite" >> /etc/inetd.conf
|
|
PID=$(ps | grep -v grep | grep inetd | sed 's/^ \{1,\}//' | cut -d\ -f1)
|
|
if [ ! -z "$PID" ]; then
|
|
echo "inetd already running.. restarting.."
|
|
kill -HUP $PID
|
|
else
|
|
echo "Starting inetd."
|
|
inetd /etc/inetd.conf
|
|
fi
|
|
else
|
|
echo "inetd not found, not installing muninlite"
|
|
fi
|