Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-SystemInformation: Deserializing the object of type PrtgAPI.SysInfoData1[[PrtgAPI.DeviceProcessInfo #237

Closed
Ash258 opened this issue Sep 10, 2021 · 1 comment
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version

Comments

@Ash258
Copy link

Ash258 commented Sep 10, 2021

Describe the bug

For one of my ubuntu host PRTG cannot get proper system information. Instead of datetime it returns Unavailable

image

Steps to reproduce

There is no direct steps to reproduce, unless you know how to simulate the process to get unavailable data.
To reproduce it should be possible to use the json data at the bottom on some test device or just mock them.

pwsh@7.2.0-preview.9> Get-SystemInfo -Id 2167
Get-SystemInfo: There was an error deserializing the object of type PrtgAPI.SysInfoData`1[[PrtgAPI.DeviceProcessInfo, PrtgAPI, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null]]. String 'Unavailable' was not recognized as a valid DateTime.

What is the output of Get-PrtgClient -Diagnostic?

pwsh@7.2.0-preview.9> Get-PrtgClient -Diagnostic

PSVersion      : 7.2.0-preview.9
PSEdition      : Core
OS             : Microsoft Windows 10.0.19043
PrtgAPIVersion : 0.9.16
Culture        : en-GB
CLRVersion     : .NETCoreApp,Version=v6.0
PrtgVersion    : 21.3.69.1333
PrtgLanguage   : english.lng

Additional context

Clear json data:

{
	"kind": "processes",
	"receivetime": "10-09-2021 06:56:18.128",
	"error": 0,
	"message": "OK",
	"data": [
		{
			"displayname": "systemd",
			"properties": {
				"processid": "1",
				"runstatus": "Runnable",
				"caption": "systemd",
				"creationdate": "Unavailable"
			}
		},
		{
			"displayname": "kthreadd",
			"properties": {
				"processid": "2",
				"runstatus": "Runnable",
				"caption": "kthreadd",
				"creationdate": "Unavailable"
			}
		}
	]
}
@Ash258 Ash258 added the alleged-bug Bugs raised by people helpfully using the Bug Report template! label Sep 10, 2021
@Ash258 Ash258 changed the title Get-SystemInformation: Deserializing the object of type PrtgAPI.SysInfoData1[[PrtgAPI.DeviceProcessInfo` Get-SystemInformation: Deserializing the object of type PrtgAPI.SysInfoData1[[PrtgAPI.DeviceProcessInfo Sep 10, 2021
@lordmilko lordmilko added bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version and removed alleged-bug Bugs raised by people helpfully using the Bug Report template! labels Sep 10, 2021
@lordmilko
Copy link
Owner

Hi @Ash258,

Please be advised I have pushed a new pre-release version of PrtgAPI which should have a fix for this issue. Please see the manual installation instructions for information on running this version

Regards,
lordmilko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version
Projects
None yet
Development

No branches or pull requests

2 participants