From 7363cb54c332e9b9057da74587ac56b6ffa7260a Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 2 Aug 2010 13:49:34 +0000 Subject: [PATCH] Add ykval-munin-queuelength.php. --- Makefile | 1 + ykval-munin-queuelength.php | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 ykval-munin-queuelength.php diff --git a/Makefile b/Makefile index 78d3e07..3365e57 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ install: install -D ykval-import.php $(sbinprefix)/ykval-import install -D ykval-checksum-clients.php $(sbinprefix)/ykval-checksum-clients install -D ykval-munin-ksmlatency.php $(muninprefix)/ykval_ksmlatency + install -D ykval-munin-queuelength.php $(muninprefix)/ykval_queuelength install -D --backup --mode 640 --group $(wwwgroup) ykval-config.php $(etcprefix)/ykval-config.php-template install -D ykval-db.sql $(docprefix)/ykval-db.sql install -D $(DOCS) $(docprefix)/ diff --git a/ykval-munin-queuelength.php b/ykval-munin-queuelength.php new file mode 100755 index 0000000..8c08067 --- /dev/null +++ b/ykval-munin-queuelength.php @@ -0,0 +1,36 @@ +#!/usr/bin/php +addField('ip', $_SERVER['REMOTE_ADDR']); + +$len = $sync->getQueueLength (); +echo "queuelength.value $len\n"; + +#%# family=auto +#%# capabilities=autoconf +?>