https://github.com/observeinc/mac-host-configuration-scripts
Single line installer script for Mac OS Host Monitoring collection agents
https://github.com/observeinc/mac-host-configuration-scripts
bash-script installation-scripts integrationname-host-monitoring integrations macos
Last synced: about 2 months ago
JSON representation
Single line installer script for Mac OS Host Monitoring collection agents
- Host: GitHub
- URL: https://github.com/observeinc/mac-host-configuration-scripts
- Owner: observeinc
- License: apache-2.0
- Created: 2023-05-22T01:43:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T23:19:55.000Z (about 2 years ago)
- Last Synced: 2024-04-06T00:25:02.720Z (about 2 years ago)
- Topics: bash-script, installation-scripts, integrationname-host-monitoring, integrations, macos
- Language: Shell
- Homepage: https://docs.observeinc.com/en/latest/content/integrations/linux/MacOS-pkgs.html#installing-host-monitoring-on-macos
- Size: 44.9 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Configuration script for MacOS
## Assumptions:
- Assumes user running script can use passwordless sudo
- Assumes homebrew has been installed
- Assumes Apple Silicon (ARM)
- Tested with MacOS Ventura (13)
## What does it do
- Creates a config_files directory in home of logged in user
- Downloads configuration files from this git repository and the Observe linux configuration git repository
- Installs osquery, fluentbit and telegraf
- Subsitutes values for data center, hostname, customer id, data ingest token and observe endpoint in configuration files
- Copies files to respective agent locations, renames existing files with suffix OLD
- Outputs status of services
## Steps to configure
1. Login to machine via ssh
2. Run script with flag values set
Run --help command for list of flags and options
###########################################
## HELP CONTENT
###########################################
### Required inputs
- Required --customer_id OBSERVE_CUSTOMER
- Required --ingest_token OBSERVE_TOKEN
## Optional inputs
- Optional --observe_host_name - Defaults to https://<_OBSERVE_CUSTOMER>.collect.observeinc.com/
- Optional --config_files_clean TRUE or FALSE - Defaults to FALSE
- controls whether to delete created config_files temp directory
- Optional --datacenter defaults to REMOTE
- Optional --appgroup id supplied sets value in fluentbit config
- Optional --branch_input branch of repository to pull scripts and config files from -Defaults to main. This branch must exist in linux and mac repositories!
- Optional --validate_endpoint of observe_hostname using customer_id and ingest_token -Defaults to TRUE
- Optional --module to use for installs -Defaults to mac_host which installs osquery, fluentbit, and telegraf
- Optional --custom_fluentbit_config add an additional configuration file for fluentbit
***************************
### Sample command:
``` bash <(curl -sSL https://raw.githubusercontent.com/observeinc/mac-host-configuration-scripts/main/observe_configure_mac_script.sh) -- -s --customer_id OBSERVE_CUSTOMER --ingest_token OBSERVE_TOKEN --observe_host_name "https://.collect.observeinc.com/" --config_files_clean TRUE --datacenter MY_DATA_CENTER --appgroup MY_APP_GROUP```
***************************