mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1978] Not able to fetch total_ram #3182
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NCaur on GitHub (Aug 14, 2024).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1978
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Agents are having different versions and OS.
Describe the bug
I am trying to fetch the data using the API: https://api.[CompanyDomain]/agents/-h 'X-API-KEY: [API KEY]'
To Reproduce
Steps to reproduce the behavior:
curl https://api.[CompanyDomain]/agents/-h 'X-API-KEY: [API KEY]'
Expected behavior
It should display information like sitename, hostname, agentID,... including total_ram; but whenever I am trying to parse the value in total_ram; I am getting undefined; checked into the raw data, but nothing like total_ram is there.
Snippet from my curl response:
{"agent_id":"0***","alert_template":null,"hostname":"","site_name":"","client_name":"","monitoring_type":"workstation","description":"","needs_reboot":false,"pending_actions_count":1,"status":"overdue","overdue_text_alert":false,"overdue_email_alert":false,"overdue_dashboard_alert":false,"last_seen":"2024-02-15T12:55:15.110723Z","boot_time":1708000484,"checks":{"total":0,"passing":0,"failing":0,"warning":0,"info":0,"has_failing_checks":false},"maintenance_mode":false,"logged_username":"","italic":false,"block_policy_inheritance":false,"plat":"windows","goarch":"amd64","has_patches_pending":false,"version":"2.4.9","operating_system":"Windows 10 Pro, 64 bit v22H2 (build 19045.3324)","public_ip":"","cpu_model":["],"graphics":"","local_ips":"","make_model":"***","physical_disks":["I"],"custom_fields":[],"serial_number":"***DZ"}