Disable POC because it makes collectd crash
This commit is contained in:
parent
b64b741b28
commit
4e69de76eb
|
@ -33,15 +33,17 @@ http_upload_disk_usage() {
|
||||||
echo "PUTVAL \"${HOSTNAME}/xmpp_upload_data_avg/count\" interval=$INTERVAL $(date +%s):${avg}"
|
echo "PUTVAL \"${HOSTNAME}/xmpp_upload_data_avg/count\" interval=$INTERVAL $(date +%s):${avg}"
|
||||||
}
|
}
|
||||||
|
|
||||||
client_stats(){
|
# XXX la syntaxe de la boucle while ci-dessous fait échouer le démarrage de collectd.
|
||||||
return 0
|
# exec plugin: exec_read_one: error = /srv/xmpp.chapril.org/tools/metrology/collectd_exec_xmpp.sh: 44: /srv/xmpp.chapril.org/tools/metrology/collectd_exec_xmpp.sh: Syntax error: redirection unexpected
|
||||||
# Fonction pas encore activée car je n'aime pas l'idée de créer dans influxdb autant de noms de métriques que de clients XMPP.
|
#client_stats(){
|
||||||
# Il faut encore étudier le format d'envoi de collectd.
|
# return 0
|
||||||
while read -r line ; do
|
# # Fonction pas encore activée car je n'aime pas l'idée de créer dans influxdb autant de noms de métriques que de clients XMPP.
|
||||||
clientname=$(echo ${line} | awk '{print $2}')
|
# # Il faut encore étudier le format d'envoi de collectd.
|
||||||
count=$(echo ${line} | awk '{print $1}')
|
# while read -r line ; do
|
||||||
echo "PUTVAL \"${HOSTNAME}/xmpp_client_${clientname}/count\" interval=$INTERVAL $(date +%s):${count}"
|
# clientname=$(echo ${line} | awk '{print $2}')
|
||||||
done < <(ejabberdctl connected_users | sed -r 's;^.*@chapril.org/([^. -]+).*;\1;' | sort | uniq -c | sort -n)
|
# count=$(echo ${line} | awk '{print $1}')
|
||||||
}
|
# echo "PUTVAL \"${HOSTNAME}/xmpp_client_${clientname}/count\" interval=$INTERVAL $(date +%s):${count}"
|
||||||
|
# done < <(ejabberdctl connected_users | sed -r 's;^.*@chapril.org/([^. -]+).*;\1;' | sort | uniq -c | sort -n)
|
||||||
|
#}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue