Skip to content

Instantly share code, notes, and snippets.

View mikenye's full-sized avatar
🤓

Mike Nye mikenye

🤓
  • Xpanse Pty Ltd
  • Perth, Western Australia
  • 20:49 (UTC +08:00)
View GitHub Profile
@mikenye
mikenye / pfsense_telegraf.conf
Created November 9, 2018 02:57
Telegraf config to fetch data from pfSense
[[inputs.snmp]]
agents = [ "firewall.ip.address.here:161" ]
version = 1
community = "public"
interval = "10s"
timeout = "20s"
[[inputs.snmp.field]]
name = "host"
oid = ".1.3.6.1.2.1.1.5.0"
is_tag = true
@mikenye
mikenye / Pretty docker container health.md
Last active November 17, 2020 10:01
Pretty docker container health
docker inspect CONTAINER_NAME | jq .[0].State.Health.Log | jq .[-1]

Example:

docker inspect piaware | jq .[0].State.Health.Log | jq .[-1]