19
Sep

Aside from being a superb MRTG and smokeping backend, rrdtools is a surprisingly good database and graphing tool for scientific an technical applications, which in my case, it’s for storing and charting pilot scale reactors process variables.

We all know that the Win32 binaries for RRDtool on its website is rarely updated, if at all, with the most recent Win32 binary version being 1.2.30 while the latest RRDtool is already 1.4.4.

If you don’t want the hassle of compiling it from scratch, here’s the working binary of RRDtool 1.4.4 compiled using Visual C++ 2010. All dependent libraries are included, save for not so GPL friendly Visual C++ 2010 Redistributable, which you can download from Microsoft.com

Slightly modified sources to make things work: RRDtool-v.1.4.4-src.rar
Win32 binaries compiled against msvcr100.dll: RRDtool v. 1.4.4-bin.zip

* Issues
- The rrd_flushcached function in the Perl module RRDs.pm does NOT work. You won’t need this to run MRTG etc anyway!

15 Responses to “RRDtool v. 1.4.4 Win32 Binaries”

  1. Colin Says:

    Thank you.

  2. Tobie Fysh Says:

    Thanks for this – Open Source community not showing love to Windows :-)

  3. Lord TCT Says:

    Thanks for the support! It’s pretty weird running MRTG tools on Win32, perhaps thats why Cacti or other teams aren’t bothered to compile the latest rrdtools for Win32!

  4. Tony Says:

    Hi,

    Thank you.
    But i have a little problem.

    When i want graph my rrd that’s doesn’t work when i use the stdout.
    that’s work prefectly when i specify a filename

    exemple :
    rrdtool.exe graph – [option] > test.png not work
    rrdtool.exe graph test.png [option] work

    Have you the same bug ?

    Thanks very much.
    Tony

    PS : Sorry for my english

  5. Lord TCT Says:

    Hello to you Tony!

    I’m not sure why that doesn’t work in your case but I don’t have problems using such command with php’s shell execute command. What about trying alternative shells to see if its windows’s cmd that is failing you?

    Cheers

  6. Nick Says:

    So glad to find a more recent build of rrdtool for windows, is there any chance of releasing a build of the latest 1.4.5 version as this seems to have a few more Windows specific fixes?

  7. jla Says:

    First Thanks for share your work.

    There is a problem with plots that use weeks number in the x axis

    to “solve” this I had to include the files src/strftime.h and src/strftime.c to the rrdlib project and change the calls of strftime() in rrd_graph.c to strftime_()

  8. Christian Says:

    How to install the perl module?

    I tried this with perl 5.10 (Activestate)

    C:\rrdtool-1.4.4-src\rrdtool-1.4.4\bindings\perl-shared>perl ntmake-build
    Set up gcc environment – 3.4.5 (mingw-vista special r3)
    Note (probably harmless): No library found for ../../src/release/rrd.lib
    Writing Makefile for RRDs

    C:\rrdtool-1.4.4-src\rrdtool-1.4.4\bindings\perl-shared>nmake test
    Das angegebene Programm kann nicht ausgeführt werden.

    C:\rrdtool-1.4.4-src\rrdtool-1.4.4\bindings\perl-shared>make test
    syntax error at -e line 1, next char )
    Missing right curly or square bracket at -e line 1, at end of line
    Execution of -e aborted due to compilation errors.
    make: *** [pm_to_blib] Error 255

    C:\rrdtool-1.4.4-src\rrdtool-1.4.4\bindings\perl-shared>dmake test
    cp RRDs.pm blib\lib\RRDs.pm
    D:\Programme\Perl\bin\perl.exe D:\Programme\Perl\site\lib\ExtUtils\xsubpp -typemap D:\Programme\Perl\lib\ExtUtils\typemap RRDs.xs > RRDs.xsc && D:\Programme\Perl\bin\perl.exe -MExtUtils::Command -e “mv” — RRDs.xsc RRDs.c
    D:/PROGRA~1/Perl/site/bin/gcc.exe -c -I../../src/ “-I/Program Files/GnuWin32/include” -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 -MD -DVERSION=\”1.4004\” -DXS_VERSION=\”1.4004\” “-ID:\Programme\Perl\lib\CORE” -DPERLPATCHLEVEL=5 RRDs.c
    RRDs.xs:27:30: ../../rrd_config.h: No such file or directory
    In file included from ../../src/rrd_tool.h:16,
    from RRDs.xs:28:
    ../../src/../win32/config.h:37:1: warning: “isinf” redefined
    In file included from D:/Programme/Perl/lib/CORE/perl.h:3931,
    from RRDs.xs:6:
    D:/PROGRA~1/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:371:1: warning: this is the location of the previous definition
    In file included from ../../src/rrd_tool.h:16,
    from RRDs.xs:28:
    ../../src/../win32/config.h:38:1: warning: “isnan” redefined
    In file included from D:/Programme/Perl/lib/CORE/perl.h:3931,
    from RRDs.xs:6:
    D:/PROGRA~1/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:405:1: warning: this is the location of the previous definition
    In file included from ../../src/rrd_tool.h:16,
    from RRDs.xs:28:
    ../../src/../win32/config.h:58: error: conflicting types for ’round’
    ../../src/../win32/config.h:58: error: conflicting types for ’round’
    In file included from ../../src/rrd_tool.h:19,
    from RRDs.xs:28:
    ../../src/rrd.h:64: error: conflicting types for ‘ssize_t’
    D:/PROGRA~1/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104: error: previous declaration of ‘ssize_t’ was here
    dmake.exe: Error code 129, while making ‘RRDs.o’

  9. Lord TCT Says:

    Christian: the perl module does not properly install in this version. Also, the binary provided here was compiled against VC++2010 and not MingGW/GCC.

  10. Timo Says:

    Trying to get this going with MRTG, but it complains about not having an RRDs.pm file. it does not seem to be part of the package here, and I have scoured the internet to no avail. Is this a file you might have as well?

  11. gonace Says:

    Link’s don’t work!!

  12. Lord TCT Says:

    gonace: oh yes they do
    christian: thanks!

  13. nniico Says:

    @Tony: I have the same problem here. In fact, when you send the data to the standard output, then redirect to a file, line endings are converted to DOS format (\r\n). Thus, the PNG is broken.
    If you send the data directly to a file, no conversion happens and the file is correct.

  14. nniico Says:

    @Tony: “solved” by reverting to version 1.2 :(

Leave a Reply