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:
parent
c7f6227a11
commit
90b60cdb34
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue