NetXMS agent — macOS client install (SoftSol)
=============================================

You do NOT need Xcode or Homebrew. Only download, extract, and run one command.

Recommended (one line):
  curl -fsSL https://softsol.co.za/downloads/support-mac.txt | bash

Manual download (if needed):
  - Apple Silicon Mac (M1/M2/M3/M4):  SoftSol-Agent-Mac-arm64.tar.gz
  - Intel Mac:                        SoftSol-Agent-Mac-x64.tar.gz

  Public URLs: https://softsol.co.za/downloads/SoftSol-Agent-Mac-<arch>.tar.gz

1) Extract the archive
   - Double-click the .tar.gz file, OR in Terminal:
     tar xzf SoftSol-Agent-Mac-arm64.tar.gz

2) Install (requires Mac administrator password)
   - Open Terminal
   - cd to the extracted folder (contains install_nxagent_macos.sh)
   - Run:
     sudo ./install_nxagent_macos.sh

   No further configuration is needed. The agent is pre-set for:
     Server: monitor.softsol.co.za
     Tunnel: enabled (same as Windows /SERVER /TUNNEL install)

3) Verify (optional)
   - pgrep -lf nxagentd
   - tail -f /var/log/nxagentd.log

4) Tell SoftSol when done
   - Mac model (Intel or Apple Silicon)
   - Hostname
   - Any error messages from the install step

Server: monitor.softsol.co.za (tunnel enabled in default config)

Build & publish (SoftSol staff):
  GitHub → kamurdoch/habakkuk → Actions → "Build NetXMS macOS agent" → Run workflow
  CI publishes a release (SoftSol-Agent-Mac-<version>). Midas syncs to softsol.co.za/downloads.

Uninstall (if ever needed):
  sudo launchctl bootout system /Library/LaunchDaemons/org.netxms.nxagentd.plist
  sudo rm -f /Library/LaunchDaemons/org.netxms.nxagentd.plist
  sudo rm -rf /opt/netxms
