[rrd-users] Re: rrdcgi options

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Tue Sep 28 01:05:21 MEST 1999


> ssis will never work, because the server does not get to parse the output of
> rrdcgi ... rrdcgi talks directly to your browser ... there is no way todo
> this except by adding new functionality to rrdcgi ... 
> 

I've been playing a little with this date/time problem and while
no ready solution came from it I do think this may be a workaround
until something has been built in rrdtool:

Create a (shell) script that is called from your browser. This script
modifies the "$QUERY_STRING" variable so that it contains the current
date and time (or whatever other info wanted).
This way you introduce another variable to the real rrdcgi script that
can be used by <RRD::CV TIME>

To test: Create "/home/httpd/cgi-bin/script.cgi"

---cut---
#!/bin/bash

export QUERY_STRING="TIME=`date +%H:%M:%S`"

/usr/local/bin/rrdcgi /home/httpd/cgi-bin/orig-script.cgi
---cut---

Regards,
Alex

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list