Skip to main content
Version: 2.0.0

Mac

Steps to install zensor in Mac:

  1. On your Mac, do one of the following:

    • Click the Launchpad icon  image in the Dock, type Terminal in the search field, then click Terminal.
    • In the Finder  image, open the /Applications/Utilities folder, then double-click Terminal.
  2. Run the Install via CLI command starting with [curl -so] that is for installation of Zensor.

 image

  1. Then run sudo /Library/Ossec/bin/zensor-control start

Mac (intel based)

Steps to install zensor in Mac (intel based):

  1. Run the command sudo su

  2. Then run echo "ZENSOR_MANAGER='IPADDRESS'" > /tmp/zensor_envs && curl -so zensor-agent.pkg https://[zensor-download-link]/zensor-agent-1.0.0-1.pkg && sudo installer -pkg zensor-agent.pkg -target /

note

In "ZENSOR_MANAGER='IPADDRESS'", replace IPADDRESS with your IP address.

  1. Finally, run /Library/Ossec/bin/zensor-control start

Uninstallation

Steps to uninstall zensor in Mac:

1. sudo su
2. /Library/Ossec/bin/zensor-control stop
3. /bin/rm -r /Library/Ossec
4. /bin/launchctl unload /Library/LaunchDaemons/com.zensor.agent.plist
5. /bin/rm -f /Library/LaunchDaemons/com.zensor.agent.plist
6. /bin/rm -rf /Library/StartupItems/ZENSOR
7. /usr/bin/dscl . -delete "/Users/zensor
8. /usr/bin/dscl . -delete "/Groups/zensor
9. /usr/sbin/pkgutil --forget com.zensor.pkg.zensor-agent