[rrd-users] Re: One more problem..

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Aug 6 02:02:02 MEST 2001


Kyrre Baker wrote:

> I can't seem to stop bother the list, but i hope someone can help me out
> here. I`ve got some information (Temperature-readings). The output looks
> like this.
>     19
>     -7
>      0
>      0
> To day i use MRTG`s configuration with the "rrdtool" option set, but it
> seems like this don`t read negative values. Is there any way (that i can
> understand) for me to read this values into an *.rrd, with the negative
> values intact?
> 
> I have tried to understand the manuals, but i can't seem to get anything out
> of it yet. Anyone want to help me out here?

Modify the script so that it doesn't output "19\n-7\n0\n0\n" but instead
let it output "rrdupdate whatever.rrd N:19:-7" (fill in the proper name
for "whatever").  Then have your OS process this as a command, from within
unix this is done by surrounding it by backticks, I'm sure you'll find a
way if on windows.

Whatever variant you can think of will work, you can for instance read
the variables into a shell script and process them from there, or you
can create and then execute a batch file.  As long as the resulting
command (rrdupdate yourdatabase.rrd N:19:-7) is executed, you're fine.

No more MRTG, just the script and the rrdupdate command.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| 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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list