The nMon Pro agent
This steps assumes you already have node and npm installed on your system. For more information on how to install node and npm please see here.
The minimum supported node version is 20
To build the agent follow this steps:
- Clone this repository
git clone https://github.com/codeniner/nmon-pro-agent
- Change to nmon-pro-agent folder
cd nmon-pro-agent
- Install dependencies
npm install --save-dev
- Run the build script
npm run build
You can find the build file at build/agent.js
.
To run the agent: node build/agent.js run <gateway> <key> <server/workstation>
The installer will automatically download a nodejs binary, the agent and will run the initialization All files will be placed in \opt\nmonpro or C:\Program Files\nMon Pro for windows.
On Linux/BSD/MacOS:
curl -L -s https://github.com/codeniner/nmon-pro-agent/releases/latest/download/installer.sh && sudo bash installer.sh <gateway> <key> <server/workstation>
On Windows (PowerShell):
New-Item -ItemType Directory -Force -Path C:\opt\nmonpro; Invoke-WebRequest -Uri https://github.com/codeniner/nmon-pro-agent/releases/latest/download/nMonProAgent-win-x64.exe -OutFile C:\opt\nmonpro\agent -UseBasicParsing; C:\opt\nmonpro\agent init <gateway> <key> <server/workstation>
Replace , , and <server/workstation> with your actual values.
curl -L -s https://github.com/codeniner/nmon-pro-agent/releases/latest/download/installer.sh && sudo bash installer.sh https://nmon.codeniner.com 9d2af6ad-67ad-487a-97f8-0038fb850123 workstation
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js init <gateway> <key> <server/workstation>
On Windows (elevated Command Prompt or PowerShell):
agent.exe init <gateway> <key> <server/workstation>
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js deinit
On Windows:
agent.exe deinit
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js uninstall
On Windows:
agent.exe uninstall
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js update
On Windows:
agent.exe update
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js version
On Windows:
agent.exe version
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js paths
On Windows:
agent.exe paths
On Linux/BSD/MacOS:
sudo /opt/nmonpro/node /opt/nmonpro/agent.js run <gateway> <key> <server/workstation>
On Windows
agent.exe run <gateway> <key> <server/workstation>