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
#!/usr/bin/python | |
import os | |
import subprocess | |
for root, dirs, files in os.walk("."): | |
for file in files: | |
if file.endswith(".png"): | |
fpath = os.join.path(root,file) | |
subprocess.call(["exiv2","delete",fpath]); subprocess.call(["optipng","-o7",fpath]) | |
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
service SERVICENAME | |
{ | |
type = UNLISTED | |
disable = no | |
flags = REUSE | |
user = root | |
socket_type = stream | |
protocol = tcp | |
wait = no | |
log_on_failure += USERID |
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
datadir="/var/lib/proxysql" | |
admin_variables= | |
{ | |
admin_credentials="PSQLUSER:PSQLPASS" | |
mysql_ifaces="0.0.0.0:6032;/var/tmp/proxysql_admin.sock" | |
} |
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
{ | |
"client": { | |
"name": "HOSTNAME", | |
"address": "HOSTIPADDRESS", | |
"subscriptions": [ "SUBSCRIPTIONS" ] | |
} | |
} |
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
[program:consul_template] | |
command=/usr/local/bin/consul-template -config=/etc/consul.d/consult | |
stopsignal=INT | |
user=consul | |
stdout_logfile=/var/log/consult.log | |
stdout_logfile_maxbytes=50MB | |
stdout_logfile_backups=10 | |
autostart=false | |
autorestart=true |
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
update global_variables set | |
-- UserDataMonitor | |
variable_value="DBMONUSER" | |
where variable_name='mysql-monitor_username'; | |
update global_variables set | |
-- PasswordDataMonitor | |
variable_value="DBMONPASS" | |
where variable_name='mysql-monitor_password'; |
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
INSERT OR REPLACE INTO mysql_servers | |
(hostgroup_id,hostname,port,comment) | |
VALUES {{ range $i, $s := service "mydb"}}{{if $i }},{{end}} | |
(1,'{{.Address}}',{{.Port}},'{{.Node}}'){{end}}; | |
SAVE MYSQL SERVERS TO DISK; |
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
{ | |
"rabbitmq": { | |
"ssl": { | |
"private_key_file": "SSLKEY", | |
"cert_chain_file": "SSLCERT" | |
}, | |
"port": 5671, | |
"host": "SENSUHOST", | |
"user": "SENSUUSER", | |
"password": "SENSUPASSWORD", |
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
{ | |
"server": false, | |
"datacenter": "LOCATION", | |
"data_dir": "/var/consul", | |
"encrypt": "CONSULKEY", | |
"log_level": "INFO", | |
"client_addr": "0.0.0.0", | |
"enable_syslog": true, | |
"start_join": ["CLUSTERIP"] | |
} |
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
{ | |
"checks": [ | |
{ | |
"id": "memory-check", | |
"name": "mem", | |
"script": "/usr/lib64/nagios/plugins/check_used_mem", | |
"interval": "30s" | |
}, | |
{ | |
"id": "cpu-check", |
NewerOlder