First, you would need to install brew on your macOS.
To do so, please visit https://brew.sh/ and follow their installation instructions.
Once you have installed brew on your macOS, you can verify it by running:
brew --version
Then, you can run the S.M.A.R.T. Tools installation command:
brew install smartmontools
When it finishes installing, you can check it with:
smartctl --version
And that’s it. You have now smartmontools installed on your server or PC, and our macOS Server Monitoring agent can pick up your disk health metrics.