[rrd-users] rrd-users Digest, Vol 2, Issue 11

Eduardo Witter ewitter at gmail.com
Fri Feb 16 19:58:27 CET 2007


Hi,

I'm using rrd to make simple graphics (no perl, no ruby, no python, just
like the first example in the Alex van den Bogaerdt's tutorial) successfuly
in PowerPC/Linux, but now I'm facing troubles to reduce the total size of
(libpng+lifreetype+libart+librrd).

I tried:
-strip-unneeded;
-static/dynamic libs use;
-disable of python, ruby, perl;

I have a 769 kb executable file... can I do something else?

Thanks.

Eduardo Witter

2007/2/16, rrd-users-request at lists.oetiker.ch <
rrd-users-request at lists.oetiker.ch>:
>
> Send rrd-users mailing list submissions to
>         rrd-users at lists.oetiker.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> or, via email, send a message with subject or body 'help' to
>         rrd-users-request at lists.oetiker.ch
>
> You can reach the person managing the list at
>         rrd-users-owner at lists.oetiker.ch
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rrd-users digest..."
>
>
> Today's Topics:
>
>    1. Re: setting last_update (Alex van den Bogaerdt)
>    2. Re: setting last_update (Dan Langille)
>    3. Call for help: Windows developer trying to get    started...
>       (David Taylor)
>    4. Re: setting last_update (Alex van den Bogaerdt)
>    5. Re: Call for help: Windows developer trying to    getstarted...
>       (Mike Johnson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 Feb 2007 16:53:45 +0100
> From: Alex van den Bogaerdt <alex at ergens.op.het.net>
> Subject: Re: [rrd-users] setting last_update
> To: rrd-users at lists.oetiker.ch
> Message-ID: <20070215155345.GD1276 at ergens.op.het.net>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Feb 15, 2007 at 10:48:56AM -0500, Dan Langille wrote:
>
> > > You could try a much more simple case as well:
> > >
> > > rrdtool create test.rrd DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
> > > rrdtool dump test.rrd
> >
> > That looks OK
>
> > # rrdtool dump test.rrd | less
> > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> >         <step> 300 </step> <!-- Seconds -->
> >         <lastupdate> 1171554437 </lastupdate> <!-- 2007-02-15
> > 07:47:17 PST -->
>
>
> Hmmm....
>
> Try adding "--start=0".  Perhaps it isn't as harmless as it looks.
>
> If that's not the problem, perhaps you can find out what is ?
>
> > Should this be moved to the developers list?
>
> Maybe, maybe not.  Users can debug problems, so I don't think
> it is off topic here and now.
>
> --
> Alex van den Bogaerdt
> http://www.vandenbogaerdt.nl/rrdtool/
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 15 Feb 2007 11:27:52 -0500
> From: "Dan Langille" <dan at langille.org>
> Subject: Re: [rrd-users] setting last_update
> To: Alex van den Bogaerdt <alex at ergens.op.het.net>
> Cc: rrd-users at lists.oetiker.ch
> Message-ID: <45D443B8.24634.33257451 at dan.langille.org>
> Content-Type: text/plain; charset=US-ASCII
>
> On 15 Feb 2007 at 16:53, Alex van den Bogaerdt wrote:
>
> > On Thu, Feb 15, 2007 at 10:48:56AM -0500, Dan Langille wrote:
> >
> > > > You could try a much more simple case as well:
> > > >
> > > > rrdtool create test.rrd DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
> > > > rrdtool dump test.rrd
> > >
> > > That looks OK
> >
> > > # rrdtool dump test.rrd | less
> > > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> > >         <step> 300 </step> <!-- Seconds -->
> > >         <lastupdate> 1171554437 </lastupdate> <!-- 2007-02-15
> > > 07:47:17 PST -->
> >
> >
> > Hmmm....
> >
> > Try adding "--start=0".  Perhaps it isn't as harmless as it looks.
>
> Well, you are correct:
>
> [dan at supernews:~/tmp] $ rm test.rrd
> [dan at supernews:~/tmp] $ rrdtool create test.rrd --start=0
> DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
> [dan at supernews:~/tmp] $ rrdtool dump test.rrd  | head
> <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
>         <step> 300 </step> <!-- Seconds -->
>         <lastupdate> 944503488000 </lastupdate> <!-- 31900-02-15
> 00:00:00 PST -->
>
>         <ds>
>                 <name> x </name>
>                 <type> GAUGE </type>
>                 <minimal_heartbeat> 600 </minimal_heartbeat>
>                 <min> NaN </min>
>                 <max> NaN </max>
> [dan at supernews:~/tmp] $
>
>
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 15 Feb 2007 11:07:42 -0800
> From: David Taylor <david.taylor at sl.com>
> Subject: [rrd-users] Call for help: Windows developer trying to get
>         started...
> To: rrd-users at lists.oetiker.ch
> Message-ID: <45D4AF7E.40407 at sl.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello folks,
>
> I'm pretty sure that this is a standard message that goes out once in a
> while and apologize if I have missed some obvious resource.
>
> For all the best reasons I am trying to get started with RRDTool.  As  a
> developer I am familiar with C/C++ and my preferred Windows development
> environment is Visual Studio 2005.
>
> If possible I would like to get started without having to build RRDTool
> itself.
>
> Our intention is to integrate RRDTool with a Windows-based and
> Java-based proprietary solution.
>
> I have looked over the material on the web site but there seems to be a
> lot of stuff that suggests that the preferred RRDTool environment is
> Linux.
>
> Please would someone point me at the method of installing RRDTool and
> setting up the necessary environment variables, libraries and such like
> on 32 bit Windows XP SP2?
>
> Thanks in advance.
>
> David
> --
>
> David W. Taylor
> Developer | SL Corporation | http://www.sl.com
>
> david.taylor at sl.com <mailto:david.taylor at sl.com> | Tel: +1.415.927.8555 |
> Fax: +1.415.927.8401
>
> ------------------------------------------------------------------------
>
> Email communication may contain privileged or confidential information
> proprietary to SL Corporation. If you have received this communication
> in error, we ask that you advise the sender by reply e-mail and
> immediately delete the message and any attachments without copying or
> disclosing the contents.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070215/0c228c72/attachment.html
>
> ------------------------------
>
> Message: 4
> Date: Fri, 16 Feb 2007 04:24:28 +0100
> From: Alex van den Bogaerdt <alex at ergens.op.het.net>
> Subject: Re: [rrd-users] setting last_update
> To: rrd-users at lists.oetiker.ch
> Message-ID: <20070216032428.GH1276 at ergens.op.het.net>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Feb 15, 2007 at 11:27:52AM -0500, Dan Langille wrote:
>
> > > Try adding "--start=0".  Perhaps it isn't as harmless as it looks.
> >
> > Well, you are correct:
> >
> > [dan at supernews:~/tmp] $ rm test.rrd
> > [dan at supernews:~/tmp] $ rrdtool create test.rrd --start=0
> > DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
> > [dan at supernews:~/tmp] $ rrdtool dump test.rrd  | head
> > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> >         <step> 300 </step> <!-- Seconds -->
> >         <lastupdate> 944503488000 </lastupdate> <!-- 31900-02-15
> > 00:00:00 PST -->
>
>
> I don't know what exactly is going wrong, and why it does not go wrong
> on 32-bit systems, but the following patch seems to fix the problem.
>
> I currently have no source unzipped, could someone on 32-bit please
> verify that my patch does not break rrdtool ?
>
>
> --- rrdtool-1.2.19/src/parsetime.c.orig Thu Feb 15 22:15:36 2007
> +++ rrdtool-1.2.19/src/parsetime.c      Thu Feb 15 22:16:57 2007
> @@ -850,7 +850,7 @@
>               if ( ptv->tm.tm_hour == 30 ){
>                 ptv->tm.tm_hour = hour_sv;
>                }
> -             if ( ptv->tm.tm_hour == 30000 ){
> +             if ( ptv->tm.tm_year == 30000 ){
>                 ptv->tm.tm_year = year_sv;
>                }
>             };
>
>
> Thanks in advance.
> --
> Alex van den Bogaerdt
> http://www.vandenbogaerdt.nl/rrdtool/
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 16 Feb 2007 13:01:51 -0000
> From: "Mike Johnson" <mike at quick.co.jp>
> Subject: Re: [rrd-users] Call for help: Windows developer trying to
>         getstarted...
> To: <rrd-users at lists.oetiker.ch>
> Message-ID: <001301c751ca$a4076460$33e018ac at qcl.quick.co.jp>
> Content-Type: text/plain; charset="us-ascii"
>
> I started trying to link to RRDtool, but even trying to compile it for
> Windows is very difficult.
>
>
>
> After wasting quite a lot of time I gave that up and just called it as an
> external application passing in the command line. I also switched to using
> C# and .Net 2 as well. It does not seem to be that much of an overhead,
> and
> I can buffer data in my application to cut down on the number of calls to
> RRDtool.
>
>
>
> I think there is a lot to learn in the calls to rrdtool and getting an
> application working, without the extra work of trying to compile and/or
> link
> to it when it's almost undocumented.
>
>
>
> I'm using version 1.2.15, which is the latest windows binary I could find.
>
>
>
> The only problem I've had is with graphs, when re-using the output file
> name
> sometimes the file remains locked even when the graph is no longer
> displayed, so I have a small pool temporary filenames.
>
>
>
>
>
> public static void CallRRDTool(string cmd)
>
> {
>
>    lock (sync) // rrdtool may not be thread safe
>
>    {
>
>       Process rrdtool = new Process();
>
>       rrdtool.StartInfo.FileName = "RRDTool.exe";
>
>       rrdtool.StartInfo.CreateNoWindow = true;
>
>       rrdtool.StartInfo.UseShellExecute = false;
>
>       rrdtool.StartInfo.RedirectStandardError = true;
>
>       rrdtool.StartInfo.RedirectStandardOutput = true;
>
>       rrdtool.StartInfo.Arguments = cmd;
>
>
>
>       rrdtool.Start();
>
>       rrdtool.WaitForExit(2000);
>
>
>
>       string output = rrdtool.StandardOutput.ReadToEnd().Trim();
>
>       if (output.Length != 0)
>
>       {
>
>          logmsg("RRDtool Stdout: " + output);
>
>          logmsg("RRDtool Cmd: " + cmd);
>
>       }
>
>       output = rrdtool.StandardError.ReadToEnd().Trim();
>
>       if (output.Length != 0)
>
>       {
>
>          logmsg("RRDtool Stderr: " + output);
>
>          logmsg("RRDtool Cmd: " + cmd);
>
>       }
>
>    }
>
> }
>
>
>
>
>
> -----Original Message-----
> From: rrd-users-bounces at lists.oetiker.ch
> [mailto:rrd-users-bounces at lists.oetiker.ch] On Behalf Of David Taylor
> Sent: 15 February 2007 19:08
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] Call for help: Windows developer trying to
> getstarted...
>
>
>
> Hello folks,
>
> I'm pretty sure that this is a standard message that goes out once in a
> while and apologize if I have missed some obvious resource.
>
> For all the best reasons I am trying to get started with RRDTool.  As  a
> developer I am familiar with C/C++ and my preferred Windows development
> environment is Visual Studio 2005.
>
> If possible I would like to get started without having to build RRDTool
> itself.
>
> Our intention is to integrate RRDTool with a Windows-based and Java-based
> proprietary solution.
>
> I have looked over the material on the web site but there seems to be a
> lot
> of stuff that suggests that the preferred RRDTool environment is Linux.
>
> Please would someone point me at the method of installing RRDTool and
> setting up the necessary environment variables, libraries and such like on
> 32 bit Windows XP SP2?
>
> Thanks in advance.
>
> David
>
> --
>
> David W. Taylor
> Developer | SL Corporation | http://www.sl.com
> david.taylor at sl.com | Tel: +1.415.927.8555 | Fax: +1.415.927.8401
>   _____
>
>
> Email communication may contain privileged or confidential information
> proprietary to SL Corporation. If you have received this communication in
> error, we ask that you advise the sender by reply e-mail and immediately
> delete the message and any attachments without copying or disclosing the
> contents.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070216/6ca4686e/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
> End of rrd-users Digest, Vol 2, Issue 11
> ****************************************
>



-- 
Eduardo Witter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070216/cad2293a/attachment.html 


More information about the rrd-users mailing list