Aaron,

Can you post the commands sent to rrdtool and the result to the rrd-users mailling list list?

It seems to be a RRDtool problem, and we're abusing RRdtool doing that. :)

Javier

Aaron Daubman wrote:
Here's some more possibly helpful info:

I changed the rrd_pipe function to allow further debugging:
---snip---
    function rrd_pipe ($command) {
        if (!is_array($GLOBALS["rrd_pipe"])) {
            $GLOBALS["rrd_pipe"]["resource"] =
                #proc_open(get_config_option("rrdtool_executable"). " -",
                proc_open("/usr/home/aaron/bin/fakerrd",
                    array(0=> array("pipe","r"),
1=>array("pipe","w")), $GLOBALS["rrd_pipe"]["pipe"]);
            $GLOBALS["gc_save_vars"]["rrd_pipe"]=true;
        }
---snip---

fakerrd is a shell script as follows:
---snip---
#!/bin/sh
tee /usr/home/aaron/rrdinput.txt | /usr/local/bin/rrdtool - 2>&1 | tee
/usr/home/aaron/rrdout.txt
---snip---

Since I preserve the pipe the php script spits out the same info I
pasted earlier (with the same error).  I can now, however, replay
exactly what rrdtool is seeing off-line using the rrdinput.txt file.

The rrdinput.txt file is just the graph ...really-long-line...
statemets like above.

If I replay it, I get this (towards the tail end):
---snip---
597x257
OK u:2.61 s:0.20 r:2.82
597x257
OK u:2.65 s:0.22 r:2.87
597x257
OK u:2.71 s:0.22 r:2.93
ERROR: RPN final stack size != 1
OK u:2.71 s:0.23 r:2.94
Bus error (core dumped)
---snip---

core dump, eh?  that's interesting - so it seems rrdtool doesn't
handle large ammounts of piped data well?  or do you think it would be
something else?

after noticing the core dump, I checked and saw that the script was
also generating a '/usr/local/jffnms/htdocs/rrdtool.core' when run
from the web interface.

Thanks,
     ~Aaron


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]

I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to