Thanks Henrik,
2005-09-21 16:30:57 hobbitsvc Setup error: Service mysql has a graph
ncv, but no graph-definition
I've add
[mysql]
DEF:questions=mysql.rrd:Questions:AVERAGE
TITLE MySQL Request
AREA:questions#00CCCC:Questions
COMMENT:\n
GPRINT:questions:LAST: \: %5.1lf (cur)
GPRINT:questions:MAX: \: %5.1lf (max)
GPRINT:questions:MIN: \: %5.1lf (min)
GPRINT:questions:AVERAGE: \: %5.1lf (avg)\n
after the :
[mysqlslow]
DEF:slow=mysql.rrd:Slowqueries:AVERAGE
TITLE MySQL Slow Queries
LINE2:slow#00CCCC:Slow Queries
COMMENT:\n
GPRINT:slow:LAST: \: %5.1lf (cur)
GPRINT:slow:MAX: \: %5.1lf (max)
GPRINT:slow:MIN: \: %5.1lf (min)
GPRINT:slow:AVERAGE: \: %5.1lf (avg)\n
[mysqlthread]
DEF:threads=mysql.rrd:Threads:AVERAGE
TITLE MySQL Active Threads
AREA:threads#00CCCC:Threads
COMMENT:\n
GPRINT:threads:LAST: \: %5.1lf (cur)
GPRINT:threads:MAX: \: %5.1lf (max)
GPRINT:threads:MIN: \: %5.1lf (min)
GPRINT:threads:AVERAGE: \: %5.1lf (avg)\n
Nothing changed..
On Wed, 2005-09-21 at 13:58 +0000, Henrik Storner wrote: In <user-a65371cc52e9@xymon.invalid> Etienne Roulland <user-318b6b240fb9@xymon.invalid> writes:
QUERY_STRING="host=sms-sql02b.sms33.cvf&service=mysql&graph_width=576&graph_height=120&first=1&count=1&disp=sms%2dsql02b%2esms33%2ecvf&graph=hourly&action=view" ./hobbitgraph.sh
Segmentation fault
When testing CGI scripts such as hobbitgraph.cgi, you must
provide all of the environment variables that the webserver
normally sets up for you.
Specifically, hobbitgraph expects the REQUEST_URI environment
variable to be set. So:
QUERY_STRING="host=...."
export QUERY_STRING
REQUEST_URI="http://localhost/cgi-bin/hobbitgraph.sh?${QUERY_STRING}"
export REQUEST_URI
./hobbitgraph.sh
Henrik
--
Etienne Roulland -- CVF Bordeaux