-
-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
bugIssues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future versionIssues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version
Description
I am trying to write a script to get disk space usage over the past 30 days, which does work but on a handful of sensors I get a weird error. I have also tried to use Get-SensorHistory -id 11079 which again produces the same error, so I know that it isn't my script, but there appears to be something wrong with the PrtgAPI PowerShell module? Below is the full output:
PS C:\> Get-SensorHistory -Id 11079
Get-SensorHistory : Input string was not in a correct format.
At line:1 char:1
+ Get-SensorHistory -Id 11079
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SensorHistory], FormatExc
eption
+ FullyQualifiedErrorId : System.FormatException,PrtgAPI.PowerShell.Cmdlet
s.GetSensorHistory
Here is the output of Get-PrtgClient -Diagnostic:
PSVersion : 5.1.18362.145
PSEdition : Desktop
OS : Microsoft Windows 10 Enterprise
PrtgAPIVersion : 0.9.10
Culture : en-GB
CLRVersion : .NET Framework 4.8 (528040)
PrtgVersion : 19.4.54.1506
PrtgLanguage : english.lng
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future versionIssues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version