Added xinetd stuff

This commit is contained in:
Matthew Connelly 2015-02-19 22:08:38 +00:00
parent bc679d92d4
commit 760a1ae363
2 changed files with 25 additions and 2 deletions

View File

@ -8,10 +8,23 @@ Install `munin-node`:
cd /etc/munin-node
wget -O munin-node.tar.gz https://github.com/MaffC/openwrt-munin-node/archive/master.tar.gz
tar xzf munin-node.tar.gz plugins.d
tar xzf munin-node.tar.gz xinetd-munin-node.conf
tar xzf munin-node.tar.gz munin-node -C /usr/local/bin/
rm munin-node.tar.gz`
Install dependencies for included plugins as needed:
Install dependencies for included plugins as needed (note xinetd is not a plugin dependency and is needed for general operation unless you have another inetd):
`opkg update
opkg install perl curl iwinfo`
opkg install perl curl iwinfo xinetd`
Add munin to your `/etc/services` file (feel free to change the port):
`vi /etc/services
# add the following line:
munin 4949/tcp`
Configure, enable and start the inetd server:
`mv /etc/munin-node/xinetd-munin-node.conf /etc/xinetd.d/munin-node
/etc/init.d/xinetd enable
/etc/init.d/xinetd start`

10
xinetd-munin-node.conf Normal file
View File

@ -0,0 +1,10 @@
service munin
{
socket_type = stream
protocol = tcp
wait = no
user = root
group = root
server = /usr/local/bin/munin-node
disable = no
}