[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem of value in the graph
- To: <hobbit (at) hswn.dk>
- Subject: Problem of value in the graph
- From: "Sebastien Sans" <sebastien.sans (at) procapital.fr>
- Date: Thu, 29 Mar 2007 17:58:52 +0200
- Thread-index: AcdyCRU9dsZd5x6zSPyKQOM2YMkrEgAEeMjQ
Hello
I'm using hobbit 4.2.0.
I did a custom graph.
the problem is that the value in the graph is different that the one given
by the script !
The value "current" is above or below the good value.
Here is the configuration:
hobbitgraph.cfg
[httpd]
TITLE Httpd
YAXIS Connexions Httpd
DEF:avg=3D3Dhttpd.rrd:httpd:AVERAGE
CDEF:httpd=3D3Davg,1,/
-l 0
LINE2:httpd# (at) COLOR@:Connexions
GPRINT:httpd:LAST: \: %5.1lf (cur)
GPRINT:httpd:MAX: \: %5.1lf (max)
GPRINT:httpd:MIN: \: %5.1lf (min)
GPRINT:httpd:AVERAGE: \: %5.1lf (avg)\n
rrd.sh:
if [ "$TESTNAME" =3D3D "httpd" ]
then
HTTPD=3D3D`/bin/ps -eaf|grep httpd|wc -l`
# The RRD dataset definitions
echo "DS:httpd:GAUGE:600:0:10000"
# The filename
echo "httpd.rrd"
# The data
echo "$HTTPD"
fi
Thanks for your help.
Sébastien SANS