1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

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

View file

@ -13,5 +13,5 @@ if [ "$1" = "config" ]; then
exit 0 exit 0
fi 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; echo "24h_visitors.value" $VISITORS;