node_exporter: Fix textfile collector script
This commit is contained in:
parent
3c0e1c2a9f
commit
5b6b7af580
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ fi
|
||||||
for script in /usr/local/libexec/node-exporter/*; do
|
for script in /usr/local/libexec/node-exporter/*; do
|
||||||
[ -x "$script" ] || continue
|
[ -x "$script" ] || continue
|
||||||
"$VERBOSE" && echo "Processing script '${script}'"
|
"$VERBOSE" && echo "Processing script '${script}'"
|
||||||
target="${OUTDIR}/$(basename "$script")"
|
target="${OUTDIR}/$(basename "$script").prom"
|
||||||
tmpfile="$(mktemp -p "$OUTDIR")"
|
tmpfile="$(mktemp -p "$OUTDIR")"
|
||||||
if "$script" > "$tmpfile" ; then
|
if "$script" > "$tmpfile" ; then
|
||||||
"$VERBOSE" && echo " Success, updating stats"
|
"$VERBOSE" && echo " Success, updating stats"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue