I'm building a system for our shop and trying to make use of the REST API. I have things set up and working mostly. However, the problem I'm having is when I request asset information, the first time I'll get a full reply as follows with all the asset info, disk info, and IP addresses, but when I refresh the page, without changing anything, most of that info is missing. See the two examples below.
Does anybody have any suggestions on what could be wrong?
stdClass Object([data]=> stdClass Object([identifier]=> xxxxxxxx-202b-446d-8e87-xxxxxxxxxxxx
[name]=> DC4
[group]=>GroupName[description]=>WindowsServer2016Standard[tags]=>Array()[type]=> windows
[client_version]=>5.4.8[last_updated]=>[last_seen_online]=>2018-07-21T21:47:08Z[last_reboot]=>[external_url]=> https://myurl.com/details
[cpu_usage]=>1[memory_usage]=>56[memory_total]=>4294414336[firewall_enabled]=>1[antivirus_enabled]=> not_installed
[antivirus_up_to_date]=> not_installed
[uac_enabled]=>1[event_logs]=> stdClass Object([error]=>22349[warning]=>39190[information]=>152570)[updates]=> stdClass Object([critical]=>0[important]=>3[moderate]=>0[low]=>0[unspecified]=>1)[asset_info]=>Array([0]=> stdClass Object([category_name]=>System[category_data]=> stdClass Object([Name]=> DC4
[Manufacturer]=> QEMU
[Model]=>Standard PC (i440FX + PIIX,1996)[Type]=> x64-based PC
[CPU]=>Common KVM processor
[Number of Processors]=>2[Number of LogicalProcessors]=>4[DNS HostName]=> dc4
[Domain]=> ad.domain.ca
[OwnerName]=>WindowsUser[Roles]=> LM_Workstation, LM_Server,Backup_Domain_Controller,Timesource, NT, DFS
[Status]=> OK
))[1]=> stdClass Object([category_name]=> BIOS
[category_data]=> stdClass Object([Name]=>Intel IGD BDSM enabled at 0x%08x, size %lldMB, dev 00:02.0[Manufacturer]=>SeaBIOS[SMBIOS Version]=> rel-1.10.2-0-g5f4c7b1-prebuilt.qemu-project.org
[SMBIOS MajorVersion]=>2[SMBIOS MinorVersion]=>8[Version]=> BOCHS -1[ReleaseDate]=>Monday,March31,20145:00 PM
[Status]=> OK
[Description]=>Intel IGD BDSM enabled at 0x%08x, size %lldMB, dev 00:02.0))[2]=> stdClass Object([category_name]=>OperatingSystem[category_data]=> stdClass Object([Name]=>WindowsServer2016Standard[Version]=>10.0.14393.0[BuildType]=>MultiprocessorFree[RegisteredUser]=>WindowsUser[ProductKey]=>ProductKey[SerialNumber]=>SerailNumber[ServicePackMajorVersion]=>0[ServicePackMinorVersion]=>0[SystemDevice]=> \Device\HarddiskVolume2
[SystemDirectory]=> C:\Windows\system32
[WindowsDirectory]=> C:\Windows
[InstallDate]=>Monday,January8,20183:48 AM
[LocalDate and Time]=>Saturday,July21,20181:32 PM
[LastBootUpTime]=>Wednesday,July4,20182:53 PM
[LastLoggedOnUser]=>Domain\administrator
)))[public_ip_address]=>my IP
[ip_addresses]=>Array([0]=> stdClass Object([name]=>Ethernet[mac]=> EE7B1B81F723
[ips]=>Array([0]=> stdClass Object([ip]=> internal IP
[v6]=>[download]=>12108[upload]=>5449))))[disks]=>Array([0]=> stdClass Object([name]=> C:[system]=>1[free_percentage]=>40[total_value]=>33040380))[installed_software]=>Array())[meta]=> stdClass Object([response_code]=>200[error_message]=>))
Â
stdClass Object([data]=> stdClass Object([identifier]=> xxxxxxxx-202b-446d-8e87-xxxxxxxxxxxx
[name]=> DC4
[group]=>GroupName[description]=>WindowsServer2016Standard[tags]=>Array()[type]=> windows
[client_version]=>5.4.8[last_updated]=>[last_seen_online]=>2018-07-21T21:55:03Z[last_reboot]=>[external_url]=> https://myurl.com/app/main/systems/systemId/details[cpu_usage]=>0[memory_usage]=>0[memory_total]=>0[firewall_enabled]=>[antivirus_enabled]=> not_installed
[antivirus_up_to_date]=> not_installed
[uac_enabled]=>[event_logs]=>[updates]=>[asset_info]=>Array()[public_ip_address]=>MyPublic IP
[ip_addresses]=>Array()[disks]=>Array()[installed_software]=>Array())[meta]=> stdClass Object([response_code]=>200[error_message]=>))
Asset info not loading every time
in REST API
Posted
Hey everyone,
I'm building a system for our shop and trying to make use of the REST API. I have things set up and working mostly. However, the problem I'm having is when I request asset information, the first time I'll get a full reply as follows with all the asset info, disk info, and IP addresses, but when I refresh the page, without changing anything, most of that info is missing. See the two examples below.
Does anybody have any suggestions on what could be wrong?
Â
Â