Révision 90b60cdb
Plugin trafic_ro_24h: remove duplicate "curl" token
The plugin always emitted an error message (without failing) before.
| plugins/trafic_ro/trafic_ro_24h | ||
|---|---|---|
| 13 | 13 |
exit 0 |
| 14 | 14 |
fi |
| 15 | 15 |
|
| 16 |
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 ".")"
|
|
| 16 |
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 ".")" |
|
| 17 | 17 |
echo "24h_visitors.value" $VISITORS; |
Formats disponibles : Unified diff