Agent Client Collector installation on mac devices

Pranita2
Kilo Guru

Hello folks,

 

Can anyone provide me step by step configuration of agent client collector on MAC devices.

Any quick help is appreciated.

 

Thanks,

Pranita Bahuguni

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Pranita2 ,

Below are the various ways to install :

 

Install Agent Client Collector on a system that uses macOS. You can either use a single-line command script or follow a manual installation procedure if the agent is not connected to the instance or you want enhanced customization options.

To enable data collection, add the following lines to the sudoers file (sudo visudo):
_servicenow ALL= SETENV: /Library/Caches/servicenow/agent-client-collector/osquery/bin/osqueryi *, /usr/sbin/lsof
Defaults:_servicenow !requiretty
Defaults exempt_group += _servicenow

View solution in original post

7 REPLIES 7

Are we sure this is correct? When trying to sudoers file with visudo I get:-
sudo visudo /etc/sudoers.d/01_servicenow
/etc/sudoers.d/01_servicenow:3:26: invalid operator "+=" for "exempt_group"

If you just save it anyway you get this when running any sudo commands:-

charliwest_0-1701183159765.png

 

Preston_83
Tera Contributor

For this to work, I had to use this sudoers file entry:

_servicenow ALL= SETENV: /Library/Caches/servicenow/agent-client-collector/osquery/bin/osqueryi *, /usr/sbin/lsof, /usr/sbin/system_profiler
Defaults:_servicenow !requiretty
Defaults exempt_group += _servicenow

 Hope this helps

ssr99
Tera Contributor

Hi @Pranita2 



Could you please share single line command you have used for acc installation on mac, I am using below command but its giving error.

ACC_API_KEY=<api_key> ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events bash -c "$(curl -L https://<instance URL>/api/sn_agent/agents/install_agent)"