[hobbit] MRTG graphs

Christophe Truffier ctruffier at pack-solutions.com
Fri Jun 2 16:01:28 CEST 2006


Henrik Stoerner wrote:
> On Fri, Jun 02, 2006 at 03:49:06PM +0200, Christophe Truffier wrote:
>>> Try this on your hobbit server:
>>>
>>> REQUEST_METHOD="GET" \
>>> SCRIPT_NAME="hobbitgraph.sh" \
>>> QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view" \
>>> ~hobbit/cgi-bin/hobbitgraph.sh
>> I've just try:
>>
>> grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" 
>> SCRIPT_NAME="hobbitgraph.sh" 
>> QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" 
>> /usr/lib/hobbit/cgi-bin/hobbitgraph.sh
>> Segmentation fault
>>
>> looking à cgierror.log (after launching the same command with strace):
>> 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable 
>> REQUEST_URI
> 
> Add a REQUEST_URI="" to that command, then.

Yes, now it works... so here's the result:
grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" 
SCRIPT_NAME="hobbitgraph.sh" 
QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" 
/usr/lib/hobbit/cgi-bin/hobbitgraph.sh
Content-type: image/png
Expires: Fri, 02 Jun 2006 14:02:39 GMT

Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>can't handle RRD file version 0003</body></html>

grunt:/var/lib/hobbit/rrd/master# rrdtool -V
RRDtool 1.2.11  Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch>
                Compiled Mon Jan  9 17:04:13 UTC 2006

Maybe the rrdtool version isn't supported ?

Thanks for help

-- 
Christophe Truffier
Pack-Solutions



More information about the Xymon mailing list