Problem of value in the graph

Sebastien Sans sebastien.sans at procapital.fr
Thu Mar 29 17:58:52 CEST 2007


 


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#@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





More information about the Xymon mailing list