Your message dated Fri, 16 Oct 2009 15:45:01 +0200
with message-id <[email protected]>
and subject line faimond has option -T
has caused the Debian Bug report #290539,
regarding fai: timestamp rarely logged
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
290539: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=290539
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fai
Version: 2.6.5
Severity: wishlist
Tags: patch
It would be very helpful if more timestamps were logged. The following
patch to /usr/share/fai/subroutines-linux accomplishes part of that:
sndmon() {
- echo "$sndhostname $*" | nc $monserver 4711
+ echo "`date +'%b %e %T'` $sndhostname $*" | nc $monserver 4711
- echo "$sndhostname $*" | nc $monserver 4711 2>/dev/null
+ echo "`date +'%b %e %T'` $sndhostname $*" | nc $monserver 4711
2>/dev/null
Similartly, /usr/lib/fai/nfsroot/usr/share/fai/subroutines can be
modified with at least the following:
- echo "Calling task_$taskname"
+ echo "`date +'%b %e %T'` Calling task_$taskname"
- echo "Calling hook: $hook.$cl"
+ echo "`date +'%b %e %T'` Calling hook: $hook.$cl"
- echo "Source hook: $hook.$cl.source"
+ echo "`date +'%b %e %T'` Source hook: $hook.$cl.source"
For all of these, there might be a standard way to get this standard
date format, but this at least matches the format used by syslog
&cetera.
Charles
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (90, 'testing'), (80, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-686
Locale: LANG=C, LC_CTYPE=C
Versions of packages fai depends on:
ii debootstrap 0.2.45 Bootstrap a basic Debian system
ii nfs-user-server [nfs-server 2.2beta47-20 User space NFS server
ii perl 5.8.4-3 Larry Wall's Practical Extraction
-- no debconf information
--- End Message ---
--- Begin Message ---
faimond has the optopn -T which add a timestamp to the log.
This option should be availble since 3.2.1. IT was introduced in
commit 4545.
--
regards Thomas
--- End Message ---