Hi, I am familiar with some Linux distros as well as Unix. But I always skipped OSX (Mac).
Could anybody assist how to manage Netdata agent at MacOS?
I installed Netdata using brew. Then I tried to claim a node. First I realized that netdata-claim.sh does not exist at usual location, so I copied it from another linux server :
sudo ./netdata-claim.sh -token=TKN -room=RM -url=https://app.netdata.cloud Unable to communicate with Netdata daemon, querying config from disk instead. Token: **************** Base URL: https://app.netdata.cloud ... Connection attempt 1 successful ./netdata-claim.sh: line 404: /usr/sbin/netdatacli: No such file or directory The claim was successful but the agent could not be notified (0)- it requires a restart to connect to the cloud.
Then I found a useful command to determine where Netdata files are located on Mac:
brew list netdata ... /opt/homebrew/Cellar/netdata/1.29.3/homebrew.mxcl.netdata.plist ... /opt/homebrew/Cellar/netdata/1.29.3/sbin/netdata /opt/homebrew/Cellar/netdata/1.29.3/sbin/netdata-claim.sh /opt/homebrew/Cellar/netdata/1.29.3/sbin/netdatacli ...
Next I wanted to unclaim the node (it appeared in cloud with unreacheable status) to repeat the claiming again. I removed the folder:
sudo rm -rf /var/lib/netdata/cloud.d
Somewhere I read how to restart macos service and tried the command:
sudo launchctl load -w /opt/homebrew/Cellar/netdata/1.29.3/homebrew.mxcl.netdata.plist /opt/homebrew/Cellar/netdata/1.29.3/homebrew.mxcl.netdata.plist: Path had bad ownership/permissions Load failed: 122: Path had bad ownership/permissions sudo launchctl unload /opt/homebrew/Cellar/netdata/1.29.3/homebrew.mxcl.netdata.plist /opt/homebrew/Cellar/netdata/1.29.3/homebrew.mxcl.netdata.plist: Could not find specified service Unload failed: 113: Could not find specified service # Command `sudo launchctl list | grep netdata` show nothing.
At the result I think I have Netdata agent installed but I don’t know how to manage the service. Please advise.