summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-20 15:53:20 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-20 15:53:20 +0200
commit282a0a2accdcaea8df928ba1b9269f028564803e (patch)
tree7bb4db2e3c41c64e6a9a9c1a5cce7106acc4ef0c /hosts/jenkins
parent725299cee516e7b16f073f7cf0e401be9fa7052d (diff)
downloadjenkins.debian.net-282a0a2accdcaea8df928ba1b9269f028564803e.tar.xz
save update_jdn output in /var/log/jenkins/update_jdn.log and logrotate it
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/jenkins')
-rw-r--r--hosts/jenkins/etc/logrotate.d/jenkins.debian.net-email (renamed from hosts/jenkins/etc/logrotate.d/jenkins.debian.net)0
-rw-r--r--hosts/jenkins/etc/logrotate.d/jenkins.debian.net-update_jdn9
-rw-r--r--hosts/jenkins/usr/lib/cgi-bin/nph-tail.cgi8
3 files changed, 17 insertions, 0 deletions
diff --git a/hosts/jenkins/etc/logrotate.d/jenkins.debian.net b/hosts/jenkins/etc/logrotate.d/jenkins.debian.net-email
index 995de184..995de184 100644
--- a/hosts/jenkins/etc/logrotate.d/jenkins.debian.net
+++ b/hosts/jenkins/etc/logrotate.d/jenkins.debian.net-email
diff --git a/hosts/jenkins/etc/logrotate.d/jenkins.debian.net-update_jdn b/hosts/jenkins/etc/logrotate.d/jenkins.debian.net-update_jdn
new file mode 100644
index 00000000..c1f207a7
--- /dev/null
+++ b/hosts/jenkins/etc/logrotate.d/jenkins.debian.net-update_jdn
@@ -0,0 +1,9 @@
+/var/log/jenkins/update_jdn.log {
+ daily
+ copytruncate
+ missingok
+ rotate 7
+ compress
+ delaycompress
+ notifempty
+}
diff --git a/hosts/jenkins/usr/lib/cgi-bin/nph-tail.cgi b/hosts/jenkins/usr/lib/cgi-bin/nph-tail.cgi
new file mode 100644
index 00000000..66c6e601
--- /dev/null
+++ b/hosts/jenkins/usr/lib/cgi-bin/nph-tail.cgi
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo "HTTP/1.0 200 OK"
+echo "Connection: close"
+echo "Content-type: text/plain"
+echo ""
+tail -F /var/log/xymon/*.log
+