Skip to content

Instantly share code, notes, and snippets.

View nbrownus's full-sized avatar
💥

Nate Brown nbrownus

💥
  • Defined Networking, Inc
  • Earth
View GitHub Profile
@nbrownus
nbrownus / edgemax-snmp.sh
Last active April 20, 2021 03:00
Pull snmp stats from edgemax, submit to graphite/carbon
#!/bin/sh
# expects the following env vars
# METRIC_PREFIX - At least the hostname to record these stats under in graphite - collectd.someserver
# SNMP_HOST - the host to pull snmp stats from
# CARBON_HOST - The carbon host to send the stats
# CARBON_PORT - The carbon port to send the stats
NOW="$(date +%s)"
@nbrownus
nbrownus / edgemax-snmp.txt
Created October 12, 2016 01:37
Interesting snmp stats from a ubiquiti edgemax
# This is not an inclusive list, there were things I left that, things I totally don't care about or don't know I care about
# snmpwalk -OT -v 2c -c "public" <your routers private ip>
# snmpwalk -OT -v 2c -c "public" <your routers private ip> 1.3
# system
HOST-RESOURCES-MIB::hrSystemProcesses.0 = Gauge32: 32
HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 0
# memory info
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 495532 kB
#!/bin/sh
VERSION="1.7.1"
BUILD="slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
#!/bin/sh
VERSION="2.31"
BUILD="slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
#!/bin/sh
VERSION="1.3.6"
BUILD="slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
client
dev tun
proto udp
remote <YOUR IP OR FQDN> <YOUR PORT>
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
port <PICK A PORT>
proto udp
dev tun
ca ca.bundle.crt
cert server.crt
key private/server.key
dh dh2048.pem
#!/bin/sh
VERSION="0.19.5"
BUILD="slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
cd "$(mktemp -d)"
#!/bin/sh
# sudo pip install --egg SCons
PACKAGE="statsite"
VERSION="0.7.1"
BUILD="slack1"
set -e -x
#!/bin/sh
VERSION="1.0.0"
SHA="4d3727c"
BUILD="$SHA-slack1"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"