mysql bugfix + updated rrd functions

This commit is contained in:
Serghey Rodin 2012-04-28 22:44:22 +03:00
commit 46e0bc239b
14 changed files with 161 additions and 110 deletions

View file

@ -10,7 +10,6 @@
#----------------------------------------------------------#
# Argument defenition
update=$1
period=${1-daily}
# Includes
@ -68,7 +67,7 @@ for host in $hosts; do
RRA:MAX:0.5:288:797
fi
if [ -z "$update" ]; then
if [ "$period" = 'daily' ]; then
# Defining host credentials
host_str=$(grep "HOST='$host'" $conf)
for key in $host_str; do
@ -107,14 +106,14 @@ for host in $hosts; do
--end "$end" \
--vertical-label "Queries" \
--x-grid "$grid" \
-c "BACK#484439" \
-c "SHADEA#484439" \
-c "SHADEB#484439" \
-c "FONT#DDDDDD" \
-c "CANVAS#202020" \
-c "BACK#7a766d" \
-c "SHADEA#7a766d" \
-c "SHADEB#7a766d" \
-c "FONT#FFFFFF" \
-c "CANVAS#302c2d" \
-c "GRID#666666" \
-c "MGRID#AAAAAA" \
-c "FRAME#202020" \
-c "FRAME#302c2d" \
-c "ARROW#FFFFFF" \
DEF:a=$RRD/db/mysql_$host.rrd:A:AVERAGE \
DEF:s=$RRD/db/mysql_$host.rrd:S:AVERAGE \