auto br1
iface br1 inet manual
bridge_ports eth1
bridge_stp on
bridge_fd 0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy to /etc/apache2/conf.d | |
# Add env=!log_exclude after log type on vhost config | |
SetEnvIf Request_URI "/server-status/?auto" log_exclude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSL_ERROR_BAD_MAC_ALERT | |
Preference Name Value | |
security.tls.insecure_fallback_hosts IP.OR.URL | |
Then Ctrl+F5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#requires jq -> http://stedolan.github.io/jq/ | |
#optional change working_dir | |
working_dir=${1-$(pwd)} | |
cd $working_dir | |
user="github_username" | |
token="application token" | |
organization="Organization_Name" |
Download https://github.com/prometheus/node_exporter/releases
cd /opt
wget https://url-to-release
tar zxf foo-release.tar.gz
mv foo-release prometheus
useradd --no-create-home --shell /bin/false prometheus
chown -Rf prometheus.prometheus prometheus/
# Edit /etc/sysctl.conf
# Add
kernel.core_pattern=/tmp/core.%e.%p.%h.%t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the command-line arguments to pass to the server. | |
ARGS='--collector.diskstats.ignored-devices="^(ram|loop|fd)\\d+$"' | |
# Prometheus-node-exporter supports the following options: | |
# --collector.diskstats.ignored-devices="^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$": Regexp of devices to ignore for diskstats. | |
# --collector.filesystem.ignored-mount-points="^/(sys|proc|dev)($|/)": Regexp of mount points to ignore for filesystem collector. | |
# --collector.ipvs.procfs="/proc": procfs mountpoint. | |
# --collector.megacli.command="megacli": Command to run megacli. | |
# --collector.ntp.server="": NTP server to use for ntp collector. | |
# --collector.textfile.directory="": Directory to read text files with metrics from. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goaccess access.log --log-format='%h %v %^[%d:%t %^] "%r" %s %b "%R" "%u"' --date-format='%d/%b/%Y' --time-format=%T --enable-panel=REFERRERS --enable-panel=KEYPHRASES -q -a > foo-report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
Verify all paths
service netdata stop
apt-get install python-mysqldb
ln -s /usr/lib/netdata/conf.d/python.d/mysql.conf /etc/netdata/python.d/mysql.conf
echo "mysql=force" >> /etc/netdata/charts.d.conf