mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[mpdstats_] remove "-q" from netcat call (Closes: 576)
This commit is contained in:
parent
37bb2b77f0
commit
d6ea0c926d
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ do_autoconf () {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo version | $NCBIN -q 2 $MPDHOST $MPDPORT 1>/dev/null 2>&1
|
echo version | "$NCBIN" "$MPDHOST" "$MPDPORT" 1>/dev/null 2>&1
|
||||||
if [ "$?" != 0 ] ; then
|
if [ "$?" != 0 ] ; then
|
||||||
echo "no (connection failed)"
|
echo "no (connection failed)"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -129,6 +129,6 @@ $ACTION.label $ACTION"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "$ACTION.value "
|
printf "$ACTION.value "
|
||||||
echo stats | $NCBIN -q 2 $MPDHOST $MPDPORT | awk " /^${ACTION}/ {print \$2}"
|
echo stats | "$NCBIN" "$MPDHOST" "$MPDPORT" | awk "/^${ACTION}:/ {print \$2}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue