Projet

Général

Profil

Révision 90b60cdb

ID90b60cdb34f59dccfd0a356bc1cc4d3aa9e7c674
Parent c7f6227a
Enfant 69ab03d6

Ajouté par Lars Kruse il y a plus de 5 ans

Plugin trafic_ro_24h: remove duplicate "curl" token

The plugin always emitted an error message (without failing) before.

Voir les différences:

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