Created
December 20, 2019 08:23
-
-
Save georgegoh/713836327bbb3e112017187b4e3a9162 to your computer and use it in GitHub Desktop.
One-liner for spinning up snmp-notifer in kube for alertmanager
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
kubectl run snmp-notifier --image=docker.io/maxwo/snmp-notifier \ | |
--port=9464 --expose \ | |
--env="SNMP_DESTINATION=127.0.0.1:162" \ | |
--env="SNMP_DESCRIPTION_TEMPLATE=/etc/snmp_notifier/description-template.tpl" \ | |
-- '--snmp.trap-description-template=$(SNMP_DESCRIPTION_TEMPLATE)' \ | |
'--snmp.destination=$(SNMP_DESTINATION)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Corresponding config for alertmanager.yml:
Note that sending Watchdog alerts FAILS because severity is None.