LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue with rrdtool not displaying graph? (https://www.linuxquestions.org/questions/linux-newbie-8/issue-with-rrdtool-not-displaying-graph-771361/)

your_shadow03 11-24-2009 10:14 PM

Issue with rrdtool not displaying graph?
 
I have rrdtool RPM installed on my new CentOS 5.2.I have designed a HTML page where the rrdtool create graph into.
Code:

<html>
    <head>
        <title>Monitoring the Servers</title>
        <meta http-equiv="refresh" content="60" />
    </head>
    <body>
        <img src="imgs/13000.png"/><br/>
        <img src="imgs/13200.png"/><br/>
        <img src="imgs/86400.png"/><br/>
        <img src="imgs/86500.png"/><br/>
        <img src="imgs/12000.png"/><br/>
        <img src="imgs/32000.png"/><br/>
        <img src="imgs/46400.png"/><br/>
        <img src="imgs/36400.png"/><br/>
</html>

Small snippet of code from where its getting filled from:
Code:

#!/bin/bash

cd /monitor/gra

END=`rrdtool last comma1.rrd`
HEIGHT=300
WIDTH=1150

#for x in 13000 86400 864000; do
for x in 13000 86400; do

START=$((${END}-${x}))

TYPE=AVERAGE
if [ $x = '13000' ]; then TYPE=LAST; fi

DOCROOT='/var/www/html'

echo $TYPE $START $END
rrdtool graph $DOCROOT/imgs/commaAvg_web_$x.png \
    -a PNG \
    -r \
    -l 0 \
    -h ${HEIGHT} \
    -w ${WIDTH} \
    -s ${START} \
    -e ${END} \
    -t "1 Min Load Average For All Web Servers" \
    DEF:ws4=Comma1:$TYPE \
    DEF:ws6=Comma2.rrd:CommaAvg:$TYPE \
    DEF:ws7=Comma3.rrd:CommaAvg:$TYPE \
    DEF:ws8=Comma4.rrd:CommaAvg:$TYPE \
    ..
    ..
    ..
    LINE1:ws4#0000CC:"Comma1" \
    LINE1:ws6#00CCCC:"Comma2" \
    LINE1:ws7#CC00CC:"Comma3" \
    LINE1:ws8#00CC00:"tvl10web08" \
    ..

But its not displaying the graph but just displays X and Y axis.
any suggestions?


All times are GMT -5. The time now is 08:22 PM.