[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jenkins-shell-monitor.sh: shrink screen usage by two rows
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Jan 13 23:51:40 GMT 2022
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
eb67bb02 by Holger Levsen at 2022-01-14T00:51:19+01:00
jenkins-shell-monitor.sh: shrink screen usage by two rows
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/jenkins-shell-monitor.sh
Changes:
=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set noexpandtab:
-# Copyright © 2020 Holger Levsen (holger at layer-acht.org)
+# Copyright © 2020-2022 Holger Levsen (holger at layer-acht.org)
# released under the GPLv2
#
#
@@ -126,11 +126,8 @@ main_loop() {
echo
echo "uptime: $(uptime -p | cut -d ' ' -f2-)"
echo -e "load averages: $LOAD"
- echo -e "systemctl status summary: $SYS_STATE"
- echo -e "systemctl jobs: $SYS_JOBS"
- echo -e "systemctl failed: $SYS_FAILED"
- echo "logged in user sessions: $(uptime | rev |cut -d ',' -f1-4 | rev | cut -d ',' -f1 | sed "s#users##" | xargs echo)"
- echo "logged in users: $(w -h | awk '{print $1}' | sort -u | xargs echo)"
+ echo -e "systemctl status summary: $SYS_STATE ($SYS_JOBS / $SYS_FAILED failed )"
+ echo "total number of user sessions / users: $(uptime | rev |cut -d ',' -f1-4 | rev | cut -d ',' -f1 | sed "s#users##" | xargs echo) / $(w -h | awk '{print $1}' | sort -u | xargs echo)"
echo "number of open files: $LSOF"
echo -e "schroot: (sessions / mounts / base dirs) $SCHROOT_SESSIONS / $SCHROOT_MOUNTS / $SCHROOT_BASE_DIRS"
echo "diffoscope processes: $DIFFOSCOPE_PROCS"
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/eb67bb0279491514d31a6febe2979bf30df94d9d
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/eb67bb0279491514d31a6febe2979bf30df94d9d
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/20220113/32454eb5/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list