From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/symon/files/symon-init.d | 32 ++++++++++++++++++++++++++++++++ net-analyzer/symon/files/symon.conf | 14 ++++++++++++++ net-analyzer/symon/files/symux-init.d | 32 ++++++++++++++++++++++++++++++++ net-analyzer/symon/files/symux.conf | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 net-analyzer/symon/files/symon-init.d create mode 100644 net-analyzer/symon/files/symon.conf create mode 100644 net-analyzer/symon/files/symux-init.d create mode 100644 net-analyzer/symon/files/symux.conf (limited to 'net-analyzer/symon/files') diff --git a/net-analyzer/symon/files/symon-init.d b/net-analyzer/symon/files/symon-init.d new file mode 100644 index 000000000000..3d48b793e597 --- /dev/null +++ b/net-analyzer/symon/files/symon-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symon" + start-stop-daemon \ + --pidfile /run/symon.pid \ + --exec /usr/sbin/symon \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symon" + start-stop-daemon --start --exec /usr/sbin/symon -- -u + eend $? +} + +stop() { + ebegin "Stopping symon" + start-stop-daemon --stop --pidfile /run/symon.pid + eend $? +} diff --git a/net-analyzer/symon/files/symon.conf b/net-analyzer/symon/files/symon.conf new file mode 100644 index 000000000000..920662185e58 --- /dev/null +++ b/net-analyzer/symon/files/symon.conf @@ -0,0 +1,14 @@ +# +# Demo configuration for symon. See symon(8) for BNF. +# + +monitor { cpu(0), mem, + if(lo), +# cpuiow(0), +# sensor(fan0), sensor(in0), sensor(temp0), +# if(eth0), if(eth1), if(eth2), +# df(sda), +# smart(sda), +# io(hda), io(hdb), io(hdc), io(hdd) + io(sda) +} stream to 127.0.0.1 2100 diff --git a/net-analyzer/symon/files/symux-init.d b/net-analyzer/symon/files/symux-init.d new file mode 100644 index 000000000000..452d4581b807 --- /dev/null +++ b/net-analyzer/symon/files/symux-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symux" + start-stop-daemon \ + --pidfile /run/symux.pid \ + --exec /usr/sbin/symux \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symux" + start-stop-daemon --start --exec /usr/sbin/symux + eend $? +} + +stop() { + ebegin "Stopping symux" + start-stop-daemon --stop --pidfile /run/symux.pid + eend $? +} diff --git a/net-analyzer/symon/files/symux.conf b/net-analyzer/symon/files/symux.conf new file mode 100644 index 000000000000..fa0ed50631d7 --- /dev/null +++ b/net-analyzer/symon/files/symux.conf @@ -0,0 +1,35 @@ +# +# Demo symux configuration. See symux(8) for BNF. +# + +mux 127.0.0.1 2100 + +source 127.0.0.1 { + accept { cpu(0), mem, + if(lo), +# cpuiow(0), +# sensor(fan0), sensor(in0), sensor(temp0), +# if(eth0), if(eth1), if(eth2), +# df(sda), +# smart(sda), +# io(hda), io(hdb), io(hdc), io(hdd) + io(sda) + } + datadir "/var/lib/symon/rrds/localhost" +} + +# an example showing the write directive +# +# source 10.0.0.2 { +# accept { cpu(0), mem, if(eth0), if(eth1), +# if(lo), if(eth2), io(sda) +# } +# +# write cpu(0) in "/var/lib/symon/rrds//cpu0.rrd" +# write mem in "/var/lib/symon/rrds//mem.rrd" +# write if(eth0) in "/var/lib/symon/rrds//if_eth0.rrd" +# write if(eth1) in "/var/lib/symon/rrds//if_eth1.rrd" +# write if(lo) in "/var/lib/symon/rrds//if_lo.rrd" +# write if(eth2) in "/var/lib/symon/rrds//if_eth2.rrd" +# write io(sda) in "/var/lib/symon/rrds//io_sda.rrd" +# } -- cgit v1.2.3