=?iso-8859-1?Q?Jos=E9_Maria_Costa_Pereira?= wrote: > > I have a simple script which outputs the following: > > rrdupdate database.rrd N:5:2
This is ment to be executed... (continued later on) > The numbers 5 and 2 are only an example. It may return other > numbers. But one thing is for sure it always returns integer numbers. My > database has 2 data sources. > > First question: The N stands for NOW (in N:5:2)? yes. > Second question: Do I need to have a \n in the end of the line: > rrdupdate .... ? depends on how you process the line. > Third question: This is the error I get when running the script that > outputs the rrdupdate > > D:\scripts>perl c:\mrtg-2.9.17\bin\mrtg stats.cfg > Daemonizing MRTG ... > Do Not close this window. Or MRTG will die > ERROR: Cannot update d:\mrtg\pri\database.rrd with > '999014266:3:2:-1' > expected 2 data source readings (got 3) from > 999014266:3:2:-1:... (continuation) ... and not as an external script for MRTG. Try executing that line. You're not using unix and I don't know how this would work for windows. Maybe writing it out as a batch file then execute this batch file <understatement>but this seems inefficient </understatement>. HTH -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- 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
