aboutsummaryrefslogtreecommitdiff
path: root/text_collector_examples
diff options
context:
space:
mode:
authorCole White <42356806+shdubsh@users.noreply.github.com>2019-02-23 10:37:06 -0700
committerBen Kochie <superq@gmail.com>2019-02-23 18:37:06 +0100
commit83c9b117471dba863619886f2d30ff4ef92ff7b4 (patch)
tree3905e05c805efb800630bb8f8b6d47ba24784ad8 /text_collector_examples
parent0dc14762ef33ee8574b060ae2aeaa8ecf6221c4d (diff)
downloadprometheus_node_collector-83c9b117471dba863619886f2d30ff4ef92ff7b4.tar.bz2
prometheus_node_collector-83c9b117471dba863619886f2d30ff4ef92ff7b4.tar.xz
prometheus_node_collector-83c9b117471dba863619886f2d30ff4ef92ff7b4.zip
remove "-n" flag from /usr/bin/awk (#1269)
This flag causes no ipmi data to be emitted and an error log is generated on each invocation: "awk: not an option: -nf". I was unable to locate a "-n" flag in the mawk or gawk man pages, so I tested it by manually changing the script on a running Debian buster system. The issue was resolved and metrics were emitted. Signed-off-by: Cole White <cwhite@wikimedia.org>
Diffstat (limited to 'text_collector_examples')
-rwxr-xr-xtext_collector_examples/ipmitool2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_collector_examples/ipmitool b/text_collector_examples/ipmitool
index 1b1ad9f..d3b9df3 100755
--- a/text_collector_examples/ipmitool
+++ b/text_collector_examples/ipmitool
@@ -1,4 +1,4 @@
1#!/usr/bin/awk -nf 1#!/usr/bin/awk -f
2 2
3# 3#
4# Converts output of `ipmitool sensor` to prometheus format. 4# Converts output of `ipmitool sensor` to prometheus format.