Updated update_graphs, remove some testing stuff, added further instructions to README.
This commit is contained in:
parent
99da7b05f7
commit
430ef27cf5
2
README
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user