[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [hobbit] RE : [hobbit] RE : [hobbit] I can't get any graph on hobbit



I just commented out the "COMMENT" part in hobbitd/hobbitgraph.cgi, and it works. 
(I can see my graphs on hobbit on AIX). 

Here are the lines commented : 
  +815  /* #ifdef RRDTOOL12 */
  +816  /*      strftime(timestamp, sizeof(timestamp), "COMMENT:Updated\\: %d-%b-%Y %H\\:%M\\:%S", localtime(&now)); */
  +817  /*#else */
  +818  /*      strftime(timestamp, sizeof(timestamp), "COMMENT:Updated: %d-%b-%Y %H:%M:%S", localtime(&now)); */
  +819  /*#endif */
  +820  /*      rrdargs[argi++] = strdup(timestamp); */

But I don't know why the COMMENT generates an error in rrd on AIX. 

Thanks Henrik and Rolf for the replies. 

NF 

-----Message d'origine-----
De : FIGARO Nicolas [mailto:nfigaro (at) effigie.fr] 
Envoyé : vendredi 8 juillet 2005 14:35
À : hobbit (at) hswn.dk
Objet : [hobbit] RE : [hobbit] RE : [hobbit] I can't get any graph on hobbit


I started with hobbit 4.0.4, and I use the rrdtool 1.2.10. 

I can create an rrd graph using this command line: 
rrdtool graph ~hobbit/server/www/test.png DEF:avg=la.rrd:la:AVERAGE CDEF:la=avg,100,/ AREA:la#00CC00:"CPU Load Average" -u 1.0

I don't know if I can comment some parts of the hobbitgraph.cfg file, or increase a debug level somewhere . (but the garbage message comes from the rrd_graph_helper.c file of rrdtool, perhaps I should send the problem to the rrd mailing list. ). 

NF 

-----Message d'origine-----
De : Henrik Stoerner [mailto:henrik (at) hswn.dk] 
Envoyé : vendredi 8 juillet 2005 13:56
À : hobbit (at) hswn.dk
Objet : Re: [hobbit] RE : [hobbit] I can't get any graph on hobbit


On Fri, Jul 08, 2005 at 01:48:44PM +0200, FIGARO Nicolas wrote:
> <html><head><title>Invalid request</title></head> <body>Garbage ':
> 08-Jul-2005 13:38:46' after command:
> COMMENT:Updated: 08-Jul-2005 13:38:46</body></html>

The latest (4.0.4) Hobbit version has some changes to hobbitgraph.cfg which were needed for RRDtool 1.2.x. If you originally installed an 
older version (4.0, 4.0.2, maybe even 4.0.3) then it will not update your hobbitgraph.cfg because it's a file that you might customize yourself.

So the easiest solution - if you haven't done any modifications - is 
to just copy the hobbit-4.0.4/hobbitd/etcfiles/hobbitgraph.cfg to your ~hobbit/etc/directory.


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe (at) hswn.dk



To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe (at) hswn.dk