I use to get the same thing on my NT/2000 versions of Perl scripts. The combination I found that works is this: - Make sure that your output file (GIF/PNG) is formatted like this: c:\\inetpub\\graphs\\output.gif - Make sure that your RRD definitions are like this: c\\:\\inetpub\\wwwroot\\mrtg\\rrdtool\\drmateo_e4.rrd:ds0:AVERAGE
The reasons for this are: - Windows uses \ as directory layer separators, but Perl uses that as an escape code for special characters, that is why when you want to send a \ to the RRD Perl module you need to feed it a \\. Otherwise Perl thinks it's an escape character meant for the Perl interpreter. - The \\ is required before the : of the "c\\:\\inet..." because RRDTool is looking for : as a field separator, so you need to tell the RRD Perl module to treat it like a special character. So we need to feed it a \: but as stated above when we need to feed the RRD Perl module a \ we need to send a \\ to get past Perl thinking it's an escape character for it. - We don't need a \\: in the output file definition because RRDTool isn't using : as a field separator and will treat it literally. I hope this helps, and doesn't just confuse the problem further. :-) Feel free to email me if you would like me to try and come up with a better explanation. Jason... -----Original Message----- From: Alvaro Cornejo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 9:40 AM To: [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Can't Parse DEF error on NT Hi I've tried your suggestion C\\:\\... and some combinations of it but still couldn't get it done. Either I get the same "can't parse DEF.." error or the rrdtool said it can't find the specified file, dependig on the combination of \\, \, //, etc I use. Regards Alvaro -----Original Message----- From: Stephan Harren [mailto:[EMAIL PROTECTED] Sent: MiƩrcoles, 13 de Agosto de 2003 05:26 To: Alvaro Cornejo Cc: rrd-users@list.ee.ethz.ch Subject: Re: [rrd-users] Can't Parse DEF error on NT > Error: RRDs::graph failed, can't parse DEF > 'in0=C:/inetpub/wwwroot/mrtg/rrdtool/drmateo_e4.rrd:ds0:AVERAGE' -2 > > I've tried to define the path-to-rrd-file with "\\", "\", "/" and "//" > but I always get the same error. Try this: C\\:\\Inetpub\\wwwroot\\mrtg\\rrdtool\\......... Best regards, Stephan -- Stephan Harren Manager Site Operations MFN-IS ------------------------------- Phone +49 69 90554 153 Fax +49 69 90554 111 Cell +49 173 7011126 -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi