Replies: 10 comments 17 replies
-
I haven't released the exe files because I haven't checked that they work properly yet. I can manually upload them to the latest release if someone wants to test. If they work then I'll include them in releases going forward. They're available as Linux binaries, so the hub should work well enough in WSL, but the agent may not give you the right numbers. I'm not entirely sure how that works. |
Beta Was this translation helpful? Give feedback.
-
Okay thank you for this. I'm still learning a lot so I will let someone else test as I may not be much help in trouble shooting. Also, is there a way to add more than one filesystem per agent? To monitor multiple disks? |
Beta Was this translation helpful? Give feedback.
-
I added the Windows builds in case anyone wants to test: https://github.com/henrygd/beszel/releases/tag/v0.1.0 Check #36 for status of multiple disks feature. |
Beta Was this translation helpful? Give feedback.
-
Okay, I'm not sure what I'm doing wrong but I don't see where to put in the public key. I run the agent and a window pops up and quickly goes away and nothing happens. |
Beta Was this translation helpful? Give feedback.
-
I think for the agent you'd need to run it from the terminal and do something like this: set KEY="..." && "C:\path\to\beszel-agent.exe" I'm not a windows person though so maybe someone else can help. I'm not sure if it will work anyway so don't spend a lot of time on it please. |
Beta Was this translation helpful? Give feedback.
-
I can't seem to find the windows binary release. Help.! |
Beta Was this translation helpful? Give feedback.
-
I compiled and tried it on my Windows machine. Windows Defender immediately detected it as a threat. |
Beta Was this translation helpful? Give feedback.
-
I am guessing it would give details of the guest OS when run in WSL. Am I mistaken? |
Beta Was this translation helpful? Give feedback.
-
I now build Windows binary myself and use it with exceptions added in Windows defender, It has been working quite well. There is just one feature that I miss. Windows hosts do not seem to report temperature. Is this intended? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add multiple drives in windows? I didn't figure out how this can work right now. Here my Script that runs during the installation task of my PowerShellAppDeploymentToolkit: $NSSMPath = "nssm.exe"
$ServiceName = "beszelagent"
$beszelPath = "$envProgramFiles\beszel-agent"
$ExePath = "$envProgramFiles\beszel-agent\agent.exe"
$EnvVar = "KEY=ssh-ed25519 AAA##################"
if (-Not (Test-Path $beszelPath -PathType Container)) {
Write-ADTLogEntry -Message "Folder $beszelPath does not exist, creating it..."
New-ADTFolder -Path "$beszelPath"
} else {
Write-ADTLogEntry -Message "Folder $beszelPath already exists."
}
$Service = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
if ($Service) {
Write-Host "The service '$ServiceName' exists. It will now be stopped and deleted..."
# If the service is running, stop it
if ($Service.Status -eq "Running") {
Write-ADTLogEntry -Message "Stopping the service '$ServiceName'..."
Start-ADTProcess -FilePath "$envSystem32Directory\sc.exe" -ArgumentList "stop $ServiceName"
Start-Sleep -Seconds 3 # Wait time for stopping the service
}
# Delete service using sc.exe
Write-ADTLogEntry -Message "Deleting the service '$ServiceName'..."
Start-ADTProcess -FilePath "$envSystem32Directory\sc.exe" -ArgumentList "delete $ServiceName"
}
Write-ADTLogEntry -Message "Copying latest file '$ServiceName'..."
Copy-ADTFile -Path "$($adtSession.DirFiles)\agent.exe" -Destination "$envProgramFiles\beszel-agent"
Write-ADTLogEntry -Message "Setting path for the service '$ServiceName'..."
Start-ADTProcess -FilePath $NSSMPath -ArgumentList "install $ServiceName `"$ExePath`"" -UseShellExecute -Wait
Write-ADTLogEntry -Message "Setting SSH key for the service '$ServiceName'..."
Start-ADTProcess -FilePath $NSSMPath -ArgumentList "set $ServiceName AppEnvironmentExtra `"$EnvVar`"" -UseShellExecute -Wait
Write-ADTLogEntry -Message "Enabling autostart for the service '$ServiceName'..."
Start-ADTProcess -FilePath $NSSMPath -ArgumentList "set $ServiceName Start SERVICE_AUTO_START" -UseShellExecute -Wait
Write-ADTLogEntry -Message "Starting the service '$ServiceName'..."
Start-Service -Name "$ServiceName" -ErrorAction SilentlyContinue |
Beta Was this translation helpful? Give feedback.
-
As the title, can the agent be installed on a windows pc without docker?
Beta Was this translation helpful? Give feedback.
All reactions