From 83c9b117471dba863619886f2d30ff4ef92ff7b4 Mon Sep 17 00:00:00 2001 From: Cole White <42356806+shdubsh@users.noreply.github.com> Date: Sat, 23 Feb 2019 10:37:06 -0700 Subject: [PATCH] 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 --- text_collector_examples/ipmitool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_collector_examples/ipmitool b/text_collector_examples/ipmitool index 1b1ad9fd..d3b9df3f 100755 --- a/text_collector_examples/ipmitool +++ b/text_collector_examples/ipmitool @@ -1,4 +1,4 @@ -#!/usr/bin/awk -nf +#!/usr/bin/awk -f # # Converts output of `ipmitool sensor` to prometheus format.