This file contains hidden or 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
[[inputs.snmp]] | |
agents = [ "XXX.YYY.ZZZ" ] | |
version = 2 | |
community = "public" | |
name = "esxiSystem" | |
[[inputs.snmp.field]] | |
name = "hostname" | |
oid = "RFC1213-MIB::sysName.0" | |
is_tag = true |
This file contains hidden or 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
{ | |
"Domain": ".YYY.ZZZ", | |
"Interval": 60, | |
"VCenters": [ | |
{ "Username": "XYZ", "Password": "XYZ", "Hostname": "XXX.YYY.ZZZ" } | |
], | |
"InfluxDB": { | |
"Hostname": "XXX.YYY.ZZZ:8086", | |
"Username": "XYZ", |
This file contains hidden or 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
LoadPlugin snmp | |
<Plugin snmp> | |
#QNAP Stuff goes here | |
<Data "qnap_cpu_usage_core"> | |
Type "cpu" | |
Table true | |
InstancePrefix "core" | |
Instance "NAS-MIB::cpuIndex" | |
Values "NAS-MIB::cpuUsage" | |
</Data> |
This file contains hidden or 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 | |
# 2017-01-04 : Install vsphere-influxdb-go on ubuntu 16.04.1 LTS | |
# Install go | |
apt-get update && apt-get upgrade | |
cd /tmp | |
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz | |
tar -xvf go1.7.4.linux-amd64.tar.gz | |
mv go /usr/local |
This file contains hidden or 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 | |
# 2017-01-04 : Install influxdb, telegraf, and grafana on ubuntu 16.04.1 LTS | |
curl -sL https://repos.influxdata.com/influxdb.key | apt-key add - | |
source /etc/lsb-release | |
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | tee /etc/apt/sources.list.d/influxdb.list | |
curl https://packagecloud.io/gpg.key | apt-key add - | |
echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main" | tee /etc/apt/sources.list.d/grafana.list | |
apt-get update | |
apt-get install grafana influxdb telegraf -y |
This file contains hidden or 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 | |
WORKING_DIR=$HOME/docker_work | |
DOCKER_NAME=hello-world | |
docker pull ubuntu | |
mkdir -p $WORKING_DIR | |
cat << 'EOF' > $WORKING_DIR/Dockerfile | |
FROM ubuntu | |
RUN apt-get -y update && apt-get -y upgrade |
This file contains hidden or 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 | |
# Run this as root | |
# Configure docker repo | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |
This file contains hidden or 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 | |
# Run this as root | |
PERSISTENT_DATA_DIR=/srv/docker | |
GITHUB_USER=szukalski | |
GITHUB_REPO=docker-influxdb | |
IMAGE=influxdb | |
CONTAINER=influxdb | |
# Pull the GITHUB repo | |
cd $PERSISTENT_DATA_DIR |
This file contains hidden or 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 | |
# Run this as root | |
PERSISTENT_DATA_DIR=/srv/docker | |
IMAGE=grafana/grafana | |
CONTAINER=grafana | |
CONF_CONTAINER=/etc/grafana | |
CONF_HOST=$PERSISTENT_DATA_DIR/$CONTAINER$CONF_CONTAINER | |
DATA_CONTAINER=/var/lib/grafana | |
DATA_HOST=$PERSISTENT_DATA_DIR/$CONTAINER$DATA_CONTAINER | |
ADMIN_PASSWORD=secret |
This file contains hidden or 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
eval "$(ssh-agent -s)" | |
ssh-add /root/.ssh/id_rsa | |
git clone [email protected]:szukalski/XYZ | |
git add XYZ/blah.file | |
git commit -m "some description" | |
git push origin master |
OlderNewer