Add a macOS Monitor

Monitor and view critical performance metrics of macOS servers including CPU, memory, disk utilization, processes, and network traffic from a single console.

Prerequisite

  • Python version 3 or above

Add a MacOS Monitor

  1. Log in to OpManager Nexus and go to Server > Server Monitors > Servers (+) > OS X.
  2. Use the toggle button to install the agent as root or non root and set proxy.
    For example, to install the agent as a root user with proxy enabled, execute the following command:
  3. wget https://staticdownloads.site24x7.com/server/Site24x7InstallScript.sh
    bash Site24x7InstallScript.sh -automation=true -i -key=<DeviceKey> -proxy=<UserName>:<ProxyPassword>@proxyhost:<ProxyPort>

Having trouble installing the agent? Try with an alternative method. Execute the following command:

curl -LO https://staticdownloads.site24x7.com/server/Site24x7MonitoringAgent.install
bash Site24x7MonitoringAgent.install -i -automation=true -key=<DeviceKey>

Restart the Agent

If you are restarting the agent as a root user, execute the below command:

/opt/site24x7/monagent/bin/monagent restart

For a non root user, execute the below command:

<home_dir_of_user_who_installed_the_agent>/site24x7/monagent/bin/monagent restart

Start/Stop the Agent

To start the agent,

  • As a root user
    /opt/site24x7/monagent/bin/monagent start
  • As a non root user
    <home_dir_of_user_who_installed_the_agent>/site24x7/monagent/bin/monagent start

To stop the agent,

  • As a root user
    /opt/site24x7/monagent/bin/monagent stop
  • As a non root user
    <home_dir_of_user_who_installed_the_agent>/site24x7/monagent/bin/monagent stop

Uninstall the Agent

To uninstall the OS X agent,

  • as a root user
    /opt/site24x7/monagent/bin/uninstall
  • as a non root user
    <home_dir_of_user_who_installed_the_agent>/site24x7/monagent/bin/uninstall
Shortlink has been copied!