Updated update_graphs, remove some testing stuff, added further instructions to README.

This commit is contained in:
Leander Hutton 2014-06-10 14:51:32 -04:00
parent 99da7b05f7
commit 430ef27cf5
2 changed files with 8 additions and 1 deletions

2
README
View File

@ -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. 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 To have the graphs generated automatically add something like
*/5 * * * * /path/to/rrd_scripts/update_graphs.sh > /dev/null 2>&1 */5 * * * * /path/to/rrd_scripts/update_graphs.sh > /dev/null 2>&1

View File

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
. /root/rrd_scripts/rrd_config CONFIGPATH=$(/path/to/config)
while [ true ]
do
. ${CONFIGPATH}/rrd_config
if [ ! -d $GRAPHDIR ]; then if [ ! -d $GRAPHDIR ]; then
mkdir -p $GRAPHDIR mkdir -p $GRAPHDIR