[28866] in Source-Commits
athinfod-cluster-config commit: add two queries for counting logins to athinfod for cluster
daemon@ATHENA.MIT.EDU (Sean P. Preston)
Fri Aug 24 16:33:47 2018
Date: Fri, 24 Aug 2018 16:33:38 -0400
From: "Sean P. Preston" <wpreston@mit.edu>
Message-Id: <201808242033.w7OKXcg4016460@drugstore.mit.edu>
To: source-commits@mit.edu
https://github.com/mit-athena/athinfod-cluster-config/commit/3a9bf6216ebbf69efb1918eeb9499a2064915725
commit 3a9bf6216ebbf69efb1918eeb9499a2064915725
Author: Sean Preston <wpreston@mit.edu>
Date: Fri Aug 3 10:49:37 2018 -0700
add two queries for counting logins to athinfod for cluster
debian/changelog | 8 ++++++++
debian/debathena-athinfod-cluster-config.defs | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e7ae151..e4d7b6b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debathena-athinfod-cluster-config (1.9) unstable; urgency=low
+
+ * Add login-count and login-count-pr to return integer counts
+ * of the current month's and previous month's logins, to athinfod
+ * queries for cluster
+
+ -- Sean Preston <wpreston@mit.edu> Fri, 03 Aug 2018 13:36:06 -0400
+
debathena-athinfod-cluster-config (1.8) unstable; urgency=low
* Add reactivate, kern.log and syslog to athinfod queries for cluster
diff --git a/debian/debathena-athinfod-cluster-config.defs b/debian/debathena-athinfod-cluster-config.defs
index a38b6aa..8043882 100644
--- a/debian/debathena-athinfod-cluster-config.defs
+++ b/debian/debathena-athinfod-cluster-config.defs
@@ -9,3 +9,5 @@ dmesg /usr/lib/athinfod/is_cluster && dmesg
syslog /usr/lib/athinfod/is_cluster && cat /var/log/syslog
kern.log /usr/lib/athinfod/is_cluster && cat /var/log/kern.log
reactivate.log /usr/lib/athinfod/is_cluster && cat /var/log/athena-reactivate
+login-count /usr/lib/athinfod/is_cluster && expr `last | wc -l` - 2
+login-count-pr /usr/lib/athinfod/is_cluster && expr `last -f /var/log/wtmp.1 | wc -l` - 2