[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible trbo monitor: condense information
Holger Levsen
gitlab at salsa.debian.org
Mon Aug 24 12:36:31 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
d6221a6a by Holger Levsen at 2020-08-24T13:36:17+02:00
reproducible trbo monitor: condense information
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/jenkins-shell-monitor.sh
Changes:
=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -8,33 +8,38 @@
# to be run manually on jenkins in a terminal
#
-SEQ=$(seq 1 60)
+SEQ1=$(seq 1 10)
+SEQ2=$(seq 1 60)
#
# main
#
main_loop() {
+ # data updated every....
SCHROOT_SESSIONS=$(find /var/lib/schroot/session/ | wc -l)
SCHROOT_MOUNTS=$(mount | grep /run/schroot| wc -l)
- for i in 1 2 3 4 5 ; do
+ REPRO_WORKERS=$(ps fax | grep _worker.sh | grep -v grep | wc -l)
+ for i in $SEQ1 ; do
reset
- echo -n "$(date -u)"
echo " $(uptime)"
echo
- echo "relevant line from ~jenkins/offline_nodes:"
+ echo "relevant lines from ~jenkins/offline_nodes:"
grep -A 2342 Also ~jenkins/offline_nodes
echo
figlet $(cat ~/userContent/reproducible/trbo.status)
echo " ^^^ trbo status"
echo
- echo "schroot sessions: $SCHROOT_SESSIONS"
- echo "schroot mounts: $SCHROOT_MOUNTS"
+ echo "uptime: $(uptime)"
+ echo "schroot sessions: $SCHROOT_SESSIONS"
+ echo "schroot mounts: $SCHROOT_MOUNTS"
+ echo "debian repro workers: $REPRO_WORKERS"
echo
- df -h /dev/vda1 /var/lib/jenkins/userContent/reproducible /srv/workspace /tmp
+ df -h /dev/vda1 /var/lib/jenkins/userContent/reproducible /srv/workspace /tmp | awk '{printf "%-42s %-6s %-6s %s\n", $6, $2, $4, $5}'
echo
- free -h
+ free -h | cut -b1-47
echo
- for j in $SEQ ; do
+ echo "$(date -u)"
+ for j in $SEQ2 ; do
echo -n "."
sleep 1
done
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d6221a6afdbd1e672b2afdee5abe44c1c29e7055
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d6221a6afdbd1e672b2afdee5abe44c1c29e7055
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200824/97dd3219/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list