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/sh | |
| VERSION="1.7.1" | |
| BUILD="slack1" | |
| set -e -x | |
| DIRNAME="$(cd "$(dirname "$0")" && pwd)" | |
| OLDESTPWD="$PWD" |
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
| # 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 |
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/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)" |
OlderNewer