-#!/bin/sh
-WWWPREFIX=/var/www/
+#!/bin/bash
+WWWPREFIX=.
WSIZE=800
HSIZE=250
LINE2:concurrentqueries#0000ff:"concurrent queries"
rrdtool graph --start -$1 $WWWPREFIX/hitrate-$2.png -w $WSIZE -h $HSIZE -l 0\
- -v "percentage" -U % \
+ -v "percentage" \
-t "cache hits" \
DEF:cachehits=pdns_recursor.rrd:cache-hits:AVERAGE \
DEF:cachemisses=pdns_recursor.rrd:cache-misses:AVERAGE \
outgoing-timeouts nsspeeds-entries negcache-entries all-outqueries throttled-out\
cache-hits cache-misses answers0-1 answers1-10 answers10-100 answers100-1000 answers-slow"
-UVARIABLES=$(echo $VARIABLES | tr [a-z] [A-Z] | tr - _ )
+UVARIABLES=$(echo $VARIABLES | tr '[a-z]' '[A-Z]' | tr - _ )
./rec_control GET $VARIABLES |
(