GithubHelp home page GithubHelp logo

rrdtool's People

Contributors

esoso avatar tukamok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tukamok

rrdtool's Issues

when "$PSScriptRoot" include space char, occurred error on Invoke-NativeCommand in RRDTool.psm1

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.

Statement in README.MD using incorrect syntax

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.