Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Mirror claim process as our container #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The installer will register the WSL distribution called "Netdata", start the age

The agent can be added to Netdata Cloud by running the following as an administrator:

```msiexec.exe /i C:\PATH-TO-MSI\netdata.msi TOKEN=[Claim token] ROOMS=[Room IDs] URL=https://app.netdata.cloud```
```msiexec.exe /i C:\PATH-TO-MSI\netdata.msi TOKEN=[Claim token] ROOMS=[Room IDs] URL=https://api.netdata.cloud```

You take the values of [token] and [rooms] from Netdata Cloud. e.g.

Expand Down
4 changes: 2 additions & 2 deletions src/install-netdata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ if (test-path installed) {
if ($token -ne "0") {
Write-Output "CLAIMING"
if ($rooms -eq "0") {
cmd.exe /c wsl -d netdata netdata-claim.sh -token=$token -url=$url 2>&1 | %{ "$_" }
cmd.exe /c wsl -d /usr/sbin/netdata-claim.sh -token=$token -url=$url -daemon-not-running 2>&1 | %{ "$_" }
} else {
cmd.exe /c wsl -d netdata netdata-claim.sh -token=$token -rooms="$rooms" -url=$url 2>&1 | %{ "$_" }
cmd.exe /c wsl -d /usr/sbin/netdata-claim.sh -token=$token -rooms="$rooms" -url=$url -daemon-not-running 2>&1 | %{ "$_" }
}
}
if ($telemetry -eq "0") {
Expand Down