maxwo/snmp_notifier

How to change Hex-String to String on varbind 3

gedit5858 opened this issue · 0 comments

What did you do?
I have two k8s clusters apparently configured exactly the same, however, one sends traps correctly (text string in varbind 3) while the other sends Hex-String in varbind 3.

Where in the SNMP Notifier configuration can I control the varbind 3 string type?

What did you expect to see?
text string in varbind 3
What did you see instead? Under which circumstances?
hex-string. for example. .3 = Hex-STRING:

Environment

  • System information:

    insert output of uname -srm here
    Linux 4.14.35-1902.8.4.el7uek.x86_64 x86_64

  • SNMP notifier version:
    snmp-notifier:v0.3.0
    insert output of snmp_notifier --version here

  • Alertmanager version:

    insert output of alertmanager --version here
    alertmanager:v0.18.0

  • Prometheus version:

    insert output of prometheus -version here (if relevant to the issue)

  • Alertmanager command line:

insert command line here
  • SNMP notifier command line:
insert command line here
  • Prometheus alert file:
insert configuration here (if relevant to the issue)

{{- if (len .Alerts) gt 0 -}}
{{- range $severity, $alerts := (groupAlertsByLabel .Alerts "severity") -}}
Status: {{ $severity }}
{{- range $index, $alert := $alerts }}

  • Alert: {{ $alert.Labels.alertname }}
    Summary: {{ $alert.Annotations.summary }}
    Description: {{ $alert.Annotations.description }}
    {{ end }}
    {{ end }}
    {{ else -}}
    Status: OK
    {{- end -}}
  • Logs:
insert logs relevant to the issue here