Skip to content

Commit

Permalink
Make installation path for jq specific
Browse files Browse the repository at this point in the history
  • Loading branch information
matbgn committed Apr 1, 2022
1 parent 3fe0bed commit 4a351a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prommanager
Original file line number Diff line number Diff line change
Expand Up @@ -921,13 +921,13 @@ cat > \$ALERT_TMP_FILE
eval "\$(/usr/local/bin/shdotenv -e /etc/prometheus/.env.shell2http)"
export title="Status: \$(jq -r '.status' \$ALERT_TMP_FILE) |
Alert: \$(jq -r '.commonLabels.alertname' \$ALERT_TMP_FILE) |
Severity: \$(jq -r '.commonLabels.severity' \$ALERT_TMP_FILE)"
export title="Status: \$(/usr/local/bin/jq -r '.status' \$ALERT_TMP_FILE) |
Alert: \$(/usr/local/bin/jq -r '.commonLabels.alertname' \$ALERT_TMP_FILE) |
Severity: \$(/usr/local/bin/jq -r '.commonLabels.severity' \$ALERT_TMP_FILE)"
export msg="Instance: \$(jq -r '.commonLabels.instance' \$ALERT_TMP_FILE) |
Description: \$(jq -r '.commonAnnotations.description' \$ALERT_TMP_FILE) |
Summary: \$(jq -r '.commonAnnotations.summary' \$ALERT_TMP_FILE)"
export msg="Instance: \$(/usr/local/bin/jq -r '.commonLabels.instance' \$ALERT_TMP_FILE) |
Description: \$(/usr/local/bin/jq -r '.commonAnnotations.description' \$ALERT_TMP_FILE) |
Summary: \$(/usr/local/bin/jq -r '.commonAnnotations.summary' \$ALERT_TMP_FILE)"
eval "set -- \$NOTIFY_SERVICES"
while [ \$# -gt 0 ]; do
Expand Down

0 comments on commit 4a351a1

Please sign in to comment.