Skip to content

Instantly share code, notes, and snippets.

@fisherwei
fisherwei / zbx_export_templates.json
Last active August 30, 2021 14:08
zabbix pfsense template: monitor gateway status by API
requirements:
- zabbix (tested on 5.2)
- pfsense api installed (https://github.com/jaredhendrickson13/pfsense-api)
usage:
- create api token on pfsense(by api plugin)
- paste id and token into macros in zabbix host config: {$CLIENT_ID} {$CLIENT_TOKEN}
- import and link this template
@fisherwei
fisherwei / README.md
Created November 6, 2019 02:53 — forked from mayli/README.md

usage

ban.py

`kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=web | python2 ./ban.py`

ratecounter.py

`kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=web | python2 ratecounter.py web`

kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=tracker | python2 ratecounter.py tracker