Go to All Forums

API - Get Server OS Version

Using the API, I would like to get the OS Version of the server. Like Ubuntu 20.04.6 LTS  x86_64. When using the API today I am only able to get if is Linux or Windows

Like (1) Reply
Replies (1)

Hello João,

Hope you are doing great. 

Kindly try this GET API: api/reports/summary/<MONITOR_ID>?period=3&unit_of_time=1&maintenance_required=false

In the response, under the "server asset" section, the OS, its distribution (also known as distro) and version will be provided.

"server_asset": [
                    "os": "Ubuntu 22.04.3 LTS",
                    "cpu_cores": "12",
                    "ip_address": "XYZ.0.0.1",
                    "hostname": "test_machine006",
                    "cpu_processor": "Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz",
                    "os_architecture": "x86_64",
                    "total_ram": "15794"

Hope this helps.

Happy monitoring!
Site24x7 team.
Like (0) Reply

Was this post helpful?