Add number of generated captchas during the last 24h
This commit is contained in:
parent
4e69de76eb
commit
32809974da
|
@ -11,6 +11,7 @@ main() {
|
||||||
while
|
while
|
||||||
ejabberdctl_stats
|
ejabberdctl_stats
|
||||||
http_upload_disk_usage
|
http_upload_disk_usage
|
||||||
|
captcha_stats
|
||||||
#client_stats # XXX pas encore activée
|
#client_stats # XXX pas encore activée
|
||||||
sleep "$INTERVAL"
|
sleep "$INTERVAL"
|
||||||
do true; done
|
do true; done
|
||||||
|
@ -33,6 +34,10 @@ 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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
captcha_stats() {
|
||||||
|
echo "PUTVAL \"${HOSTNAME}/xmpp_captcha_lastday/count\" interval=$INTERVAL $(date +%s):$(find /var/lib/ejabberd/chapril_captchas/ -mindepth 1 -maxdepth 1 -type f -mtime 1 | grep -v EXPERIMENTAL | wc -l)"
|
||||||
|
}
|
||||||
|
|
||||||
# XXX la syntaxe de la boucle while ci-dessous fait échouer le démarrage de collectd.
|
# XXX la syntaxe de la boucle while ci-dessous fait échouer le démarrage de collectd.
|
||||||
# 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
|
# 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
|
||||||
#client_stats(){
|
#client_stats(){
|
||||||
|
|
Loading…
Reference in New Issue