From b508c27b64cab55c0196e90da0ec4615156b9d7d Mon Sep 17 00:00:00 2001 From: Patrick Stadler Date: Sun, 22 Mar 2015 13:27:24 +0100 Subject: [PATCH] fix README markup --- README.md | 6 +----- lib/utils/loader.sh | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e39faf6..9941cd5 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ $ git clone git@github.com:pstadler/metrics.sh.git ### Requirements -metrics.sh has been tested on Ubuntu 14.04 and Mac OS X but is supposed to run on most *NIX-like operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available when running on *NIX. POSIX compliancy means that metrics.sh works with minimalistic command interpreters such as [dash](http://manpages.ubuntu.com/manpages/trusty/en/man1/dash.1.html). Built-in metrics do **not** require root privileges. +metrics.sh has been tested on Ubuntu 14.04 and Mac OS X but is supposed to run on most Unix-like operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available when running on *nix. POSIX compliancy means that metrics.sh works with minimalistic command interpreters such as [dash](http://manpages.ubuntu.com/manpages/trusty/en/man1/dash.1.html). Built-in metrics do **not** require root privileges. ## Metrics @@ -122,10 +122,6 @@ network_eth1.out: 0.03 ... ``` -### Daemonize / init.d / upstart - -TODO - ## Writing custom metrics / reporters TODO \ No newline at end of file diff --git a/lib/utils/loader.sh b/lib/utils/loader.sh index 432cb52..b54452d 100644 --- a/lib/utils/loader.sh +++ b/lib/utils/loader.sh @@ -2,7 +2,7 @@ get_available_reporters () { local result - for file in `ls ./reporters/*.sh $CUSTOM_REPORTERS_PATH/*.sh 2>/dev/null`; do + for file in `ls ./reporters/*.sh $CUSTOM_REPORTERS_PATH/*.sh 2> /dev/null`; do local filename=$(basename $file) local reporter=${filename%.*} result=$(echo "$result $reporter") @@ -12,7 +12,7 @@ get_available_reporters () { get_available_metrics () { local result - for file in `ls ./metrics/*.sh $CUSTOM_METRICS_PATH/*.sh 2>/dev/null`; do + for file in `ls ./metrics/*.sh $CUSTOM_METRICS_PATH/*.sh 2> /dev/null`; do local filename=$(basename $file) local metric=${filename%.*} # register metric