RRDTool 1.3 for Windows

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
rgomez
Posts: 4
Joined: Sun Feb 01, 2009 10:06 pm

RRDTool 1.3 for Windows

Post by rgomez »

Does anyone have the last RRDTool version for windows compiled? I'm trying to do it but it's giving me a lot of errors.

I would like some help. I won't be able to migrate from my Linux Box (with RRDTool 1.3) to Windows with RRDTool 1.2.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rrdtool versions are posted on the main rrdtool site, or the external Windows site which is on the downloads page.

I suggest you stick with rrdtool 1.2.x with cacti though.
rgomez
Posts: 4
Joined: Sun Feb 01, 2009 10:06 pm

Post by rgomez »

The problem is that When I try to run the conversion script:

Code: Select all

'Set the Variables
strComputer = "."
strInputDir = "C:\Back"
strCactiDir = "C:\Cacti"
strLogFile = "C:\Cacti\log\Restored.txt"

'Create a shell Executor
Set objShell = CreateObject("WScript.Shell")

'Create File and Open
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile(strLogFile, TRUE)

'Open the Computer Object
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

'Open the Input Directory and Return a List of all Files
Set colFileList = objWMIService.ExecQuery _
    ("ASSOCIATORS OF {Win32_Directory.Name='" & strInputDir & "'} Where " _
        & "ResultClass = CIM_DataFile")

'Loop through the files and if it's an XML file restore it
For Each objFile In colFileList
    If objFile.Extension = "xml" Then
	objShell.Run strCactiDir & "\rrdtool.exe restore -f " & strInputDir  & "\" _
	    & objFile.FileName & "." & objFile.Extension & " " & _
	    strCactiDir & "\rra\" & objFile.FileName & ".rrd"

	objOutputFile.WriteLine(objFile.FileName & " was restored.")
    End If
Next
I get the error that the xml files (that came from my Linux Host running RRDTool 1.3) were created with a newer version of RRDTool and it doesn't convert the file.[/code]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests