Skip to content

hetrixtools/agent-win

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Alpha] HetrixTools Server Monitoring Agent (Windows)

Please Note: this is an Alpha version, still needing a lot more work to be production ready.

Method 1 - Use the already compiled agent

Install method:

Alternative install method:

  • Open Command Prompt as Administrator
  • Navigate to the folder where the HetrixToolsAgent.exe executable is located
  • Run the following commands:
HetrixToolsAgent.exe --startup auto install
HetrixToolsAgent.exe start

Stop & Uninstall

  • Open Command Prompt as Administrator
  • Navigate to the folder where the HetrixToolsAgent.exe executable is located
  • Run the following commands:
HetrixToolsAgent.exe stop
HetrixToolsAgent.exe remove
taskkill /IM "HetrixToolsAgent.exe" /F

Alternative Stop & Uninstall

  • Open Command Prompt as Administrator
  • Run the following commands:
sc delete HetrixToolsAgent
taskkill /IM "HetrixToolsAgent.exe" /F

Upgrading From Previous Versions

  • First stop and uninstall the agent as explained above
  • Then install the new agent as explained at the beginning of this guide

Method 2 - Compile the agent yourself

If you wish to compile the executable yourself, then please follow the steps below.

Requirements

You will need Python 2.7.18 x86 with pip installed

Install the needed dependencies

pip install -r requirements.txt

You may also need to run the following command globally or in your build environment

python scripts\pywin32_postinstall.py -install

Build

Download this repository into its own folder on your computer

Inside that folder, run the following command

pyinstaller --onefile --clean --icon=icon.ico HetrixToolsAgent.py

If no errors are encountered, the agent executable will be compiled in the /dist/ folder.
Once you have the agent executable, follow the same instructions as on Method 1.