Add influx, snmp, more IPs to spreadsheet

master
Jeff Moe 6 years ago
parent 261ee661a7
commit 4a80029344

@ -0,0 +1,27 @@
# Clone Debian Buster template, set up IPs, hostname, ssh keys
apt update
apt -y dist-upgrade
apt install influxdb
# Set up network interfaces, /etc/network/interfaces
auto lo
iface lo inet loopback
auto ens18 ens19 ens20 ens21 ens22 ens22:0 ens22:1
iface ens18 inet static
address 10.22.22.116/24
gateway 10.22.22.254
dns-nameservers 10.22.22.254
dns-search forksand.com
iface ens19 inet static
address 10.68.68.116/24
iface ens20 inet static
address 10.3.1.116/24
iface ens21 inet static
address 10.3.2.116/24
iface ens22 inet static
address 10.99.99.116/24
iface ens22:0 inet static
address 10.99.1.116/24
iface ens22:1 inet static
address 10.99.2.116/24

@ -63,3 +63,14 @@ https://grafana.com/dashboards/6742
# Unbound DNS
https://grafana.com/dashboards/3930
#######################################################
# libvirt_exporter
go get github.com/kumina/libvirt_exporter
go build github.com/kumina/libvirt_exporter
# Then copy this binary to targets sf-001 sf-002 sf-003 sf-004
~/go/bin/libvirt_exporter
apt install libvirt-daemon

@ -29,3 +29,31 @@ iface ens22:1 inet static
# Set up SNMP on the target switch/device.
##################################################
# Build generator XXX no needed?
sudo apt install build-essential libsnmp-dev
sudo apt -t stretch-backports install golang
go get github.com/prometheus/snmp_exporter/generator
# Needs snmp-mibs-downloader from Debian non-free
# ... enable non-free repos ....
apt install snmp-mibs-downloader
# ... disable non-free repos ....
##################################################
# Run daemon XXX start on boot etc:
jebba@snmp1:~/devel/snmp_exporter-0.11.0.linux-amd64$ ./snmp_exporter --log.level="debug"
# Log into switch, enable SNMP for 10.22.22.115, set SNMP community to "public" XXX temp, for setup.
# XXX set time on switch XXX ntp
# Go to this URL:
http://10.22.22.115:9116/snmp?target=10.22.22.240
http://10.22.22.115:9116/snmp?target=10.3.1.240
http://10.22.22.115:9116/snmp?target=10.3.2.240
http://10.22.22.115:9116/snmp?target=10.68.68.240
http://10.22.22.115:9116/snmp?target=10.99.1.240
http://10.22.22.115:9116/snmp?target=10.99.2.240

Loading…
Cancel
Save