sharlaan | Voila ma fonction :
Code :
- memoire ()
- {
- rrdtool graph $GRAPHS/$1 -s $2 -e $3 -a GIF \
- -t "Utilisation de la mémoire pour le serveur $4" \
- -l 0 -r \
- DEF:utilise=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE CDEF:utilise_mem=utilise,4096,* AREA:utilise_mem#ff8080:"Utilisé$ DEF:active=/var/db/rrdtool/memoire.rrd:active:AVERAGE CDEF:active_mem=active,4096,* STACK:active_mem#ff80ff:"Active" \
- DEF:inactive=/var/db/rrdtool/memoire.rrd:inactive:AVERAGE CDEF:inactive_mem=inactive,4096,* STACK:inactive_mem#8080ff:"I$ DEF:cache=/var/db/rrdtool/memoire.rrd:cache:AVERAGE CDEF:cache_mem=cache,4096,* STACK:cache_mem#808080:"Cache" \
- DEF:libre=/var/db/rrdtool/memoire.rrd:libre:AVERAGE CDEF:libre_mem=libre,4096,* STACK:libre_mem#80ff80:"Libre" \
- DEF:utilise2=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE CDEF:utilise_mem2=utilise2,4096,* LINE1:utilise_mem2#ff0000 \
- DEF:active2=/var/db/rrdtool/memoire.rrd:active:AVERAGE CDEF:active_mem2=active2,4096,* STACK:active_mem2#ff00ff \
- DEF:inactive2=/var/db/rrdtool/memoire.rrd:inactive:AVERAGE CDEF:inactive_mem2=inactive2,4096,* STACK:inactive_mem2#0000f$ DEF:cache2=/var/db/rrdtool/memoire.rrd:cache:AVERAGE CDEF:cache_mem2=cache2,4096,* STACK:cache_mem2#000000 \
- DEF:libre2=/var/db/rrdtool/memoire.rrd:libre:AVERAGE CDEF:libre_mem2=libre2,4096,* STACK:libre_mem2#00ff00 \
- COMMENT:"\n" \
- COMMENT:"$5\n"
- }
|
Et quand j'execute le script, toutes les autres fonctions marchent, sauf celle là.
Voila le message d'erreur :
Code :
- ERROR: can't parse ' '
- graphs.sh: DEF:utilise2=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE: not found
- ERROR: can't parse ' '
- graphs.sh: DEF:utilise2=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE: not found
- ERROR: can't parse ' '
- graphs.sh: DEF:utilise2=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE: not found
- ERROR: can't parse ' '
- graphs.sh: DEF:utilise2=/var/db/rrdtool/memoire.rrd:utilise:AVERAGE: not found
|
Une idée ? |