Updated update_graphs, remove some testing stuff, added further instructions to README. master
authorLeander Hutton <leander@one-button.org>
Tue, 10 Jun 2014 18:51:32 +0000 (14:51 -0400)
committerLeander Hutton <leander@one-button.org>
Tue, 10 Jun 2014 18:51:32 +0000 (14:51 -0400)
README
update_graphs.sh

diff --git a/README b/README
index d6691d20b8d978fa62f61c8a17afb8b779640ba9..b7cabda4461acb9f140aeb03eee30606d53bc389 100644 (file)
--- 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 
index b8251cb0abcd49debd1f5793c15c0a782c0178e8..e7945ac11bc6d5abbed85d290804143544d9ea0f 100755 (executable)
@@ -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