[rrd-users] Re: RRD graph not working
0x0 is the size of the image generated. It looks like your rrd may have no data in it... You also seem to have an extra character in the DEF command. Try this: rrdtool graph test.png DEF:ds0=10.254.0.1_1.rrd:ds0:AVERAGE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ahmer Zakir Sent: Saturday, 3 June 2006 6:30 PM To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] RRD graph not working Hello, I am using the rrdtool graph command but it does not create any png file, instead it shows the output 0x0 as shown below: == C:\RRD\rrdtool-1.2.10-win32-perl58\rrdtool\Releaserrdtool graph test.png DEF:ds0a=10.254.0.1_1.rrd:ds0:AVERAGE 0x0 == rrdtool fetch on the same rrd file gives the following output: C:\RRD\rrdtool-1.2.10-win32-perl58\rrdtool\Releaserrdtool fetch 10.254.0.1_1.rrd AVERAGE ds0 ds1 1149236700: -1.#IND00e+000 -1.#IND00e+000 1149237000: -1.#IND00e+000 -1.#IND00e+000 1149237300: -1.#IND00e+000 -1.#IND00e+000 1149237600: -1.#IND00e+000 -1.#IND00e+000 1149237900: -1.#IND00e+000 -1.#IND00e+000 1149238200: -1.#IND00e+000 -1.#IND00e+000 1149238500: -1.#IND00e+000 -1.#IND00e+000 1149238800: -1.#IND00e+000 -1.#IND00e+000 1149239100: -1.#IND00e+000 -1.#IND00e+000 1149239400: -1.#IND00e+000 -1.#IND00e+000 1149239700: -1.#IND00e+000 -1.#IND00e+000 114924: -1.#IND00e+000 -1.#IND00e+000 1149240300: -1.#IND00e+000 -1.#IND00e+000 1149240600: -1.#IND00e+000 -1.#IND00e+000 1149240900: -1.#IND00e+000 -1.#IND00e+000 1149241200: -1.#IND00e+000 -1.#IND00e+000 1149241500: -1.#IND00e+000 -1.#IND00e+000 1149241800: -1.#IND00e+000 -1.#IND00e+000 1149242100: -1.#IND00e+000 -1.#IND00e+000 1149242400: -1.#IND00e+000 -1.#IND00e+000 1149242700: -1.#IND00e+000 -1.#IND00e+000 1149243000: -1.#IND00e+000 -1.#IND00e+000 1149243300: -1.#IND00e+000 -1.#IND00e+000 1149243600: -1.#IND00e+000 -1.#IND00e+000 1149243900: -1.#IND00e+000 -1.#IND00e+000 1149244200: -1.#IND00e+000 -1.#IND00e+000 1149244500: -1.#IND00e+000 -1.#IND00e+000 1149244800: -1.#IND00e+000 -1.#IND00e+000 1149245100: -1.#IND00e+000 -1.#IND00e+000 1149245400: -1.#IND00e+000 -1.#IND00e+000 1149245700: -1.#IND00e+000 -1.#IND00e+000 1149246000: -1.#IND00e+000 -1.#IND00e+000 1149246300: -1.#IND00e+000 -1.#IND00e+000 1149246600: -1.#IND00e+000 -1.#IND00e+000 1149246900: -1.#IND00e+000 -1.#IND00e+000 1149247200: -1.#IND00e+000 -1.#IND00e+000 1149247500: -1.#IND00e+000 -1.#IND00e+000 1149247800: -1.#IND00e+000 -1.#IND00e+000 1149248100: -1.#IND00e+000 -1.#IND00e+000 1149248400: -1.#IND00e+000 -1.#IND00e+000 1149248700: -1.#IND00e+000 -1.#IND00e+000 1149249000: -1.#IND00e+000 -1.#IND00e+000 1149249300: -1.#IND00e+000 -1.#IND00e+000 1149249600: -1.#IND00e+000 -1.#IND00e+000 1149249900: -1.#IND00e+000 -1.#IND00e+000 1149250200: -1.#IND00e+000 -1.#IND00e+000 1149250500: -1.#IND00e+000 -1.#IND00e+000 1149250800: -1.#IND00e+000 -1.#IND00e+000 1149251100: -1.#IND00e+000 -1.#IND00e+000 1149251400: -1.#IND00e+000 -1.#IND00e+000 1149251700: -1.#IND00e+000 -1.#IND00e+000 1149252000: -1.#IND00e+000 -1.#IND00e+000 1149252300: -1.#IND00e+000 -1.#IND00e+000 1149252600: -1.#IND00e+000 -1.#IND00e+000 1149252900: -1.#IND00e+000 -1.#IND00e+000 1149253200: -1.#IND00e+000 -1.#IND00e+000 1149253500: -1.#IND00e+000 -1.#IND00e+000 1149253800: -1.#IND00e+000 -1.#IND00e+000 1149254100: -1.#IND00e+000 -1.#IND00e+000 1149254400: -1.#IND00e+000 -1.#IND00e+000 1149254700: -1.#IND00e+000 -1.#IND00e+000 1149255000: -1.#IND00e+000 -1.#IND00e+000 1149255300: -1.#IND00e+000 -1.#IND00e+000 1149255600: -1.#IND00e+000 -1.#IND00e+000 1149255900: -1.#IND00e+000 -1.#IND00e+000 1149256200: -1.#IND00e+000 -1.#IND00e+000 1149256500: -1.#IND00e+000 -1.#IND00e+000 1149256800: -1.#IND00e+000 -1.#IND00e+000 1149257100: -1.#IND00e+000 -1.#IND00e+000 1149257400: -1.#IND00e+000 -1.#IND00e+000 1149257700: -1.#IND00e+000 -1.#IND00e+000 1149258000: -1.#IND00e+000 -1.#IND00e+000 1149258300: -1.#IND00e+000 -1.#IND00e+000 1149258600: -1.#IND00e+000 -1.#IND00e+000 1149258900: -1.#IND00e+000 -1.#IND00e+000 1149259200: -1.#IND00e+000 -1.#IND00e+000 1149259500: -1.#IND00e+000 -1.#IND00e+000 1149259800: -1.#IND00e+000 -1.#IND00e+000 1149260100: -1.#IND00e+000 -1.#IND00e+000 1149260400: -1.#IND00e+000 -1.#IND00e+000 1149260700: -1.#IND00e+000
[rrd-users] hello evry body
I am unable to work with PHP RRdtool. i have rrdtool 1.2.13and i am unable to install my php4-rrdtool. Are there any version compatibilities ...to work with PHPRRDTool. Please helpme !!.. -- With BestRegards Ravi.Thati -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] help needed here !!!!1
1.I wanted to convert time in seconds into normal representation dd/mm/ and secs:min:hours What should I do to do this. 2.I wanted to read the data from RRDTOOL into php web pages. Please suggest me some ways to go ahead. I am helpless now regaring creating web pages with the data from RRDs. Thanks in advance. With BestRegards Ravi.Thati -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] How can I use RRDTool with PHP?
|Following is my source code: It can work, but always return the image's width and heigth. How can I discard it? Also, is there a better solution use RRDTool with PHP? Sepp ?php $time=date(Y/m/dH\\\:i\\\:s); $cmd=/usr/local/bin/rrdtoolgraphtest.png. DEF:inoctets=test.rrd:input:AVERAGE. DEF:outoctets=test.rrd:output:AVERAGE. COMMENT:\MaxAverageMinNow\\n\. LINE1:inoctets#00FF00:\Intraffic\. GPRINT:inoctets:MAX:\%8.0lf\. GPRINT:inoctets:AVERAGE:\%8.0lf\. GPRINT:inoctets:MIN:\%8.0lf\. GPRINT:inoctets:LAST:\%8.0lf\. LINE1:outoctets#FF:\Outtraffic\. GPRINT:outoctets:MAX:\%8.0lf\. GPRINT:outoctets:AVERAGE:\%8.0lf\. GPRINT:outoctets:MIN:\%8.0lf\. GPRINT:outoctets:LAST:\%8.0lf\. --title\Traffic\-v\Bytespersecond\COMMENT:\LastUpdated\:$time\. -s`date-v-1d+%s`--imginfo'IMGSRC=\%s\WIDTH=\%lu\HEIGHT=\%lu\ALT=\Demo\'; $fp=popen($cmd,r); fpassthru($fp); ? html headtitleRRDToolGraphTest/title/head body /body /html | -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Values in RRD are incorrect
Hello, I am using a perl script to select values from a mysql database and insert those values into a RRDs. I have had to bulk import historical data (approx. 30 days at 1 minute intervals), which has gone without a problem. The graphs are correct and the values in the RRAs are correct. The problems start to come about when I run the script from cron every 5 minutes. Even though the data from the database is correct, and the values inserted into the RRDs are correct, when I fetch the data from the rrd, for two fifths of the data the rates are incorrect by a huge factor. I have included an example of the data that is being updated into the RRd and the corresponding results from an rrd fetch. 1149151620: 3.94e+00 1.908333e+00 1.39e-02 1149151680: 3.66e+00 2.06e+00 1.67e-02 1149151758, 6974702, 4348279, 34864 1149151740: 2.986111e+00 1.708333e+00 3.06e-02 1149151810, 8717127, 5442318, 43698 1149151800: 7.1577206999e+07 7.1579283687e+07 7.1582759975e+07 1149151870, 8717300, 5442414, 43700 1149151860: 5.5870982906e+03 3.5078685897e+03 2.8341880342e+01 1149151930, 8717482, 5442515, 43701 1149151920: 3.008333e+00 1.669444e+00 1.94e-02 1149151990, 8717646, 5442607, 43702 1149151980: 2.78e+00 1.558333e+00 1.67e-02 1149152050, 8717850, 5442721, 43702 1149152040: 3.29e+00 1.838889e+00 2.78e-03 Tha values on the left are the output of the script values and those on the right are the results of the rrd fetch. Each time the cron script runs I see a rate of 10e7, 10e2 and then back to the correct values. Why is this happening and how can I resolve it? Please let me know if further detials are required. (I have attached the values as text in case the columns get wrapped and start upsetting the formatting!) TIA Richard Marshall, Systems Administrator, Vibrant Media -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: How can I use RRDTool with PHP?
It can work, but always return the image's width and heigth. How can I discard it? execute that command (with system or exec or whatever) - it only prints an error or the widthxheightit doesn't output the actual image use an html img tag to load the image or open the image in php (fopen), read it and print it (obviously you have to call the php script within an img tag from a html page) hope that helps -- regards, Georges Toth -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: help needed here !!!!1
2.I wanted to read the data from RRDTOOL into php web pages. Please suggest me some ways to go ahead. I am helpless now regaring creating web pages with the data from RRDs. Thanks in advance. One method I've used is to execute the command for generating the graph in php. And then opening the image (fopen) and printing it. When you call the php script from within an html-img tag, the graph gets displayed as expected :-) -- regards, Georges Toth -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: How can I use RRDTool with PHP?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 5, 2006, at 06:20 , Sepp Wang wrote: |Following is my source code: It can work, but always return the image's width and heigth. How can I discard it? Also, is there a better solution use RRDTool with PHP? Sepp Yes there is a much easier way in PHP to use RRDTool, see the following links to see that RRDTool functions can be embedded in PHP. http://www.daleenterprise.com/amavis-stats http://www.daleenterprise.com/info.php#module_rrdtool I rewrote the PHP module to properly support rrdtool 1.0.x and 1.2.x in PHP4 and PHP5, this is mentioned on the list several time a month yet the same question is asked. You don't need to rebuild PHP to get this module included in PHP, you can build it as a shared module and add the module to the load module section in php.ini Building as shared is as simple as downloading the module source, un pack it, cd into the module source directory, issue the following commands If you have RRDTool installed with a prefix of /usr or /usr/local you can use --with-rrdtool as it will locate the the library. For this example rrdtool 1.2.12 is install with a prefix of /usr/ local/rrdtool-1.2.12, the install prefix is the important information. phpize ./configure --with-rrdtool=/usr/local/rrdtool-1.2.12 make make install Edit php.ini and add the module to the extension load section, restart apache and that should be it. ?php $time=date(Y/m/dH\\\:i\\\:s); $cmd=/usr/local/bin/rrdtoolgraphtest.png. DEF:inoctets=test.rrd:input:AVERAGE. DEF:outoctets=test.rrd:output:AVERAGE. COMMENT:\MaxAverageMinNow\\n\. LINE1:inoctets#00FF00:\Intraffic\. GPRINT:inoctets:MAX:\%8.0lf\. GPRINT:inoctets:AVERAGE:\%8.0lf\. GPRINT:inoctets:MIN:\%8.0lf\. GPRINT:inoctets:LAST:\%8.0lf\. LINE1:outoctets#FF:\Outtraffic\. GPRINT:outoctets:MAX:\%8.0lf\. GPRINT:outoctets:AVERAGE:\%8.0lf\. GPRINT:outoctets:MIN:\%8.0lf\. GPRINT:outoctets:LAST:\%8.0lf\. --title\Traffic\-v\Bytespersecond\COMMENT:\LastUpdated\:$time \. -s`date-v-1d+%s`--imginfo'IMGSRC=\%s\WIDTH=\%lu\HEIGHT=\%lu \ALT=\Demo\'; $fp=popen($cmd,r); fpassthru($fp); ? html headtitleRRDToolGraphTest/title/head body /body /html | -- This really isn't the correct syntax to achieve your goal as it doesn't look like rrd_graph is never called to update the image and your html doesn't look like it's capable of serving the image other than you are passing it raw before any headers are sent. - -- Dale -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEhCxwgKKwRgpESgMRAl63AJ9pHoHKoDoxJzAUigqEgb46mEAeEQCghwS3 wWZ2V7djuoCvtejO4ijhxkM= =uRVz -END PGP SIGNATURE- -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: How can I use RRDTool with PHP?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 5, 2006, at 10:00 , Georges Toth wrote: Hi, Could you please tell me where I can download your php-rrdtool module ? I tried to search the archives, but that somehow didn't work. Have you submitted it to pecl.php.net ? No, I need to make a couple of minor changes to the code, then pass it off to Tobias for approval and then submit it but I've been so busy that I haven't had the time to finish it. Tobias needs to place a link on the RRDTool site so people can locate it. - -- Dale Yes there is a much easier way in PHP to use RRDTool, see the following links to see that RRDTool functions can be embedded in PHP. http://www.daleenterprise.com/amavis-stats http://www.daleenterprise.com/info.php#module_rrdtool I rewrote the PHP module to properly support rrdtool 1.0.x and 1.2.x in PHP4 and PHP5, this is mentioned on the list several time a month yet the same question is asked. -- regards, Georges Toth -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEhECUgKKwRgpESgMRAjIPAJ9Xhe+bT4hOCg2KpUapvDEI/myyLQCfZQXh td6Du7lcEzSQ2WJoRTOhjqc= =CjbQ -END PGP SIGNATURE- -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Fwd: Re: PHP
Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I searched the archives and this is what I came up with. Begin forwarded message: From: Tobias Oetiker [EMAIL PROTECTED] Date: May 26, 2006 10:10:53 AM EDT To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: PHP Hi Michael, Dale, has created/updated php bindings for rrdtool they are in http://oss.oetiker.ch/rrdtool/pub/contrib/ (php_rrdtool) the php4 in svn contrib has been orphant for some time :-( cheers tobi -- ETH Zurich Tobias Oetiker, IT Support Group D-ITET (ISG.EE) ETL F24.2, Physikstrasse 3, 8092 Zurich, Switzerland Phone +41 44 63 25286, http://people.ee.ethz.ch/oetiker/ -- Unsubscribe mailto:[EMAIL PROTECTED] subject=unsubscribe Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi -- Dale -- Attached file removed by Ecartis and put at URL below -- -- Type: application/pgp-signature -- Desc: This is a digitally signed message part -- Size: 189 bytes -- URL : http://lists.ee.ethz.ch/p/16-PGP.sig -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi