Skip to content

Commit

Permalink
metrics.sh: Fix inverted is_active result
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
  • Loading branch information
theCalcaholic authored and nachoparker committed Aug 9, 2021
1 parent fb102d2 commit b840245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ncp/SYSTEM/metrics.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

is_active() {
systemctl is-active -q prometheus-node-exporter || return 0
return 1
systemctl is-active -q prometheus-node-exporter || return 1
return 0
}

tmpl_metrics_enabled() {
Expand Down

0 comments on commit b840245

Please sign in to comment.