Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Server registration: OS Info "Unknown" #1

Open
roydejong opened this issue Sep 9, 2017 · 0 comments
Open

Server registration: OS Info "Unknown" #1

roydejong opened this issue Sep 9, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@roydejong
Copy link
Owner

When the agent runs as a service, even when running under the root user, the OS info no longer seems to be reported correctly.

Bad payload
The payload sent during registration (running as service under root user) looks like this:

{  
   "push_server_enabled":true,
   "os_info":{  
      "platform":"Linux",
      "distro":"unknown",
      "release":"unknown",
      "codename":"",
      "kernel":"4.10.0-32-generic",
      "arch":"x64",
      "hostname":"guardhouse",
      "logofile":"linux"
   }
}

Expected payload
The payload sent when running manually, not as a service, under the root user:

{  
   "push_server_enabled":true,
   "os_info":{  
      "platform":"Linux",
      "distro":"Ubuntu",
      "release":"17.04",
      "codename":"zesty",
      "kernel":"4.10.0-32-generic",
      "arch":"x64",
      "hostname":"guardhouse",
      "logofile":"ubuntu"
   }
}

We're using the systeminformation npm module, may need to look into how it works.

@roydejong roydejong added the bug label Sep 9, 2017
@roydejong roydejong added this to the v1.0 milestone Sep 9, 2017
@roydejong roydejong self-assigned this Sep 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant