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