esoso / rrdtool Goto Github PK
View Code? Open in Web Editor NEWPowershell wrapper for RRDTool
License: MIT License
Powershell wrapper for RRDTool
License: MIT License
Hi, I'm just use it.
I have noticed while using it right now.
This error is due to Invoke-Expression not being able to properly interpret the coating.
for example, this code is received error below.
PS C:\Users\XXXX> Invoke-Expression ("{0} info {1}" -f $env:ProgramFiles, (Join-Path -Path ([Environment]::GetFolderPath( [Environment+SpecialFolder]::MyDocuments )) -ChildPath "average.rrd" ))
C:\Program : 用語 'C:\Program' は、コマンドレット、関数、スクリプト ファイル、または操作可能なプログラムの名前として認識されません。名前が正しく記述されていることを確認し、パスが含まれている場合はそのパスが正しいことを確認してから、再試行してください。
発生場所 行:1 文字:1
+ C:\Program Files info C:\Users\z1tg8080\Documents\average.rrd
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(Sorry, Japanese output, Add the following information instead.)
PS C:\Users\XXXX> Error[0].CategoryInfo
Category : ObjectNotFound
Activity :
Reason : CommandNotFoundException
TargetName : C:\Program
TargetType : String
The solution to the problem is, for example, for line 45 of the New-RRD function, add an ampersand first, as in this example, and enclose the path in quotation marks.
$cmd = "& '{0}' create {1} --step {2} --start {3} {4} {5}" -f $RRDTool, $FileName, $Step, $StartUnixTime, $DSs, $RRAs
...and more, 52 line Write-Error $Error
was received error cause $Error is Array of All Errors history. this solution is Write-Error $_
Please consider.
Best regards.
In the README.MD file, the last statement in the example code is a call to the Out-RRDGraph cmdlet. This statement includes the parameter -Rigid $true. This would be valid if -Rigid were a boolean parameter, but it is a switch parameter. When I run this code, PowerShell mysteriously attributes the $true value to the -XGrid parameter (which is an unspecified String parameter), leading to an error. Removing $true allows the code to execute properly.
Being able to
Import-Module -Name RRDTool -ArgumentsList
would be useful.
importing the module does not export any commands. have tried in v4 and v5 of powershell.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.