From 430ef27cf5ce2cde26d3e7985dea2a8fb1fd86ab Mon Sep 17 00:00:00 2001 From: Leander Hutton Date: Tue, 10 Jun 2014 14:51:32 -0400 Subject: [PATCH] Updated update_graphs, remove some testing stuff, added further instructions to README. --- README | 2 ++ update_graphs.sh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README b/README index d6691d2..b7cabda 100644 --- a/README +++ b/README @@ -12,6 +12,8 @@ Make sure you adjust the settings in the rrd_config file before you install. Run the rrd_init_databases.sh to intialize the databases, then run ./update_rrds.sh &. You may want to put that in rc.local or some equivalent so it runs on boot. +Add the rrd_config path to update_graphs.sh + To have the graphs generated automatically add something like */5 * * * * /path/to/rrd_scripts/update_graphs.sh > /dev/null 2>&1 diff --git a/update_graphs.sh b/update_graphs.sh index b8251cb..e7945ac 100755 --- a/update_graphs.sh +++ b/update_graphs.sh @@ -1,6 +1,11 @@ #!/bin/bash -. /root/rrd_scripts/rrd_config +CONFIGPATH=$(/path/to/config) + +while [ true ] + do + +. ${CONFIGPATH}/rrd_config if [ ! -d $GRAPHDIR ]; then mkdir -p $GRAPHDIR