Plugin trafic_ro_24h: remove duplicate "curl" token

The plugin always emitted an error message (without failing) before.
This commit is contained in:
Lars Kruse 2020-03-26 02:15:32 +01:00
parent c7f6227a11
commit 90b60cdb34
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ if [ "$1" = "config" ]; then
exit 0
fi
VISITORS="$(echo '<doc><item>munin</item></doc>' | curl curl --silent -X POST -H 'Content-type: text/xml' -d @- http://api.trafic.ro/rest/0.01/sumar-site/$RID | xmlstarlet sel -t -m "/sumar-site/vizitatori_ultimele_24_ore" -v ".")"
VISITORS="$(echo '<doc><item>munin</item></doc>' | curl --silent -X POST -H 'Content-type: text/xml' -d @- http://api.trafic.ro/rest/0.01/sumar-site/$RID | xmlstarlet sel -t -m "/sumar-site/vizitatori_ultimele_24_ore" -v ".")"
echo "24h_visitors.value" $VISITORS;