Add files via upload
This commit is contained in:
committed by
GitHub
parent
d5dca126a6
commit
5ecb235919
19
lib/netdata.sh
Normal file
19
lib/netdata.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Netdata installation and configuration script
|
||||
|
||||
install_netdata() {
|
||||
log_info "Installing Netdata..."
|
||||
|
||||
# Install dependencies
|
||||
handle_error sudo apt-get update
|
||||
handle_error sudo apt-get install -y curl git
|
||||
|
||||
# Install Netdata from GitHub
|
||||
handle_error bash <(curl -Ss https://my-netdata.io/kickstart.sh) --stable-channel --disable-telemetry
|
||||
|
||||
handle_error sudo systemctl enable netdata
|
||||
handle_error sudo systemctl start netdata
|
||||
|
||||
log_info "Netdata installation completed."
|
||||
}
|
||||
Reference in New Issue
Block a user