Skip to content

Commit

Permalink
remove "-n" flag from /usr/bin/awk (#1269)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shdubsh authored and SuperQ committed Feb 23, 2019
1 parent d3f69fb commit 5deabe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipmitool
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/awk -nf
#!/usr/bin/awk -f

#
# Converts output of `ipmitool sensor` to prometheus format.
Expand Down

0 comments on commit 5deabe5

Please sign in to comment.