directing xm dmesg to syslog
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi all,
I made the logging daemon of the Xen message.
This daemon outputs the messege to syslog if messages were found in the console ring by the polling every one second.
Following is the usage, but usually no option is necessary. It will automatically be daemon.
usage: xenlogd [-h] [-k] [-r]
-h: print help
-k: kill alive logging daemon
-r: restart logging daemon after kill alive one
Best regards,
Katsuhito Minai
Quoted 8 lines · On Tue, 23 May 2006 16:31:44 +0100 Mark Williamson…
Quoted 4 lines
short questin: I want to direct the oputput of xm dmesg in (near) realtime to syslog.
Is this possible?
dom0 Linux doesn't (currently) get any notifications that the xm dmesg output has changed.
Quoted 17 lines
You could write a daemon to poll xm dmesg and send changes to syslog... You might like to consider having it clear the dmesg also, since it uses a fixed-size buffer and won't work once that is full.
Cheers,
MarkSignature · 9 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list [email protected] http://lists.xensource.com/xen-users
tools/xenlogd/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +CC=gcc +CFLAGS=-lxenctrl + +xenlogd: + +clean: + rm -f xenlogd
tools/xenlogd/TODO new file +9 -0
@@ -0,0 +1,9 @@ + +Following is the usage, but usually no option is necessary. +It will automatically be daemon. + +usage: xenlogd [-h] [-n] [-k] [-r] + -h: print help + -n: no daemonize + -k: kill alive logging daemon + -r: restart logging daemon after kill alive one
tools/xenlogd/xenlogd.c new file +283 -0
283 lines not on this page · raw message
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Hi, Minai
I think this is cool tool!
I want you to add xenlogd into /etc/init.d/xend.
And I have small comments.
See the below.
tools/xenlogd/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +CC=gcc +CFLAGS=-lxenctrl + +xenlogd: + +clean: + rm -f xenlogd
You should add -Werror -g option into CFLAGS And you must add .PHONY, build, install section, because of "make tools" and "make install-tools" So you may add "SUBDIRS-y += xenlogd" into tools/Makefile
tools/xenlogd/xenlogd.c new file +18 -0
@@ -0,0 +1,283 @@ +#include <sys/stat.h> +#include <sys/types.h> +#include <sys/wait.h> +#include <stdio.h> +#include <stdlib.h> +#include <syslog.h> +#include <signal.h> +#include <errno.h> +#include <stdarg.h> +#include <fcntl.h> +#include <string.h> + + +#define XCDSIZE (4096) +#define XENHEAD "(XEN) " +#define PIDFILE "/var/run/xenlogd.pid" +#define STARTMSG "logging has been started." +
And STARTMSG isn't used. :-)
This xenlog tools clear a reading part of console buffer. I think xenlogd which don't clear the buffer is more cool. But this fix might modify xen's code.
So this fix is trade off.
Hmm....
I hope other comments from community. :-)
Best Regards,
Akio Takebe
Quoted 58 lines
Hi all,
I made the logging daemon of the Xen message.
This daemon outputs the messege to syslog if messages were found in the console ring by the polling every one second.Following is the usage, but usually no option is necessary. It will automatically be daemon.
usage: xenlogd [-h] [-k] [-r]
-h: print help
-k: kill alive logging daemon
-r: restart logging daemon after kill alive oneSigned-off-by Katsuhito Minai <[email protected]>Best regards,
Katsuhito MinaiQuoted 10 lines · On Tue, 23 May 2006 16:31:44 +0100 Mark Williamson…
Quoted 5 lines
short questin: I want to direct the oputput of xm dmesg in (near) realtime
to syslog.Is this possible?
dom0 Linux doesn't (currently) get any notifications that the xm dmesg output
has changed.Quoted 18 lines
You could write a daemon to poll xm dmesg and send changes to syslog... You
might like to consider having it clear the dmesg also, since it uses a fixed-size buffer and won't work once that is full.Cheers,
MarkSignature · 9 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list [email protected] http://lists.xensource.com/xen-users-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
cover put xen console message into syslog but xm dmesg is not affected
Hi Akio and all
Thank you for your comments. I'm sorry that the answer is late. I will send the following 4 patches following this mail.
[1/4] add read pointer to the xen console ring [2/4] add xenlogd daemon for xen console logging [3/4] modify xend for automatically starting xenlogd [4/4] README of xenlogd
Quoted 4 lines
This xenlog tools clear a reading part of console buffer. I think xenlogd which don't clear the buffer is more cool. But this fix might modify xen's code.
So this fix is trade off.
I solved this problem by adding another read pointer of the console buffer of Xen for xenlogd daemon.
The pointer is used when a negative value is specified
for the fourth argument(named "clear") of the xc_readconsolering() function.
The console can be logged independently by this correction with the operation of the xm dmesg command.
Quoted 4 lines
You should add -Werror -g option into CFLAGS And you must add .PHONY, build, install section, because of "make tools" and "make install-tools" So you may add "SUBDIRS-y += xenlogd" into
tools/Makefile
I decided to put xenlogd on tools/misc in this patch though I made a new directory in the last patch for xenlogd.
And, xenlogd was automatically started from xend python script. So you have nothing to do except applying the patch.
Best regards,
Katsuhito Minai
Quoted 124 lines · On Thu, 15 Jun 2006 22:32:53 +0900 Akio Takebe <[email protected]>…
Hi, Minai
I think this is cool tool!
I want you to add xenlogd into/etc/init.d/xend.And I have small comments.
See the below.diff -r
4f1e39ec05d6tools/xenlogd/Makefiletools/xenlogd/Makefile new file +7
-0@@ -0,0 +1,7 @@ +CC=gcc +CFLAGS=-lxenctrl + +xenlogd: + +clean: + rm -f xenlogdYou should add -Werror -g option into CFLAGS And you must add .PHONY, build, install section, because of "make tools" and "make install-tools" So you may add "SUBDIRS-y += xenlogd" into
tools/Makefilediff -r
4f1e39ec05d6tools/xenlogd/xenlogd.ctools/xenlogd/xenlogd.c new file +18
-0@@ -0,0 +1,283 @@ +#include <sys/stat.h> +#include <sys/types.h> +#include <sys/wait.h> +#include <stdio.h> +#include <stdlib.h> +#include <syslog.h> +#include <signal.h> +#include <errno.h> +#include <stdarg.h> +#include <fcntl.h> +#include <string.h> + + +#define XCDSIZE (4096) +#define XENHEAD "(XEN) " +#define PIDFILE "/var/run/xenlogd.pid" +#define STARTMSG "logging has been started." +And STARTMSG isn't used. :-)
This xenlog tools clear a reading part of console buffer. I think xenlogd which don't clear the buffer is more cool. But this fix might modify xen's code.
So this fix is trade off.
Hmm....
I hope other comments from community. :-)Best Regards,
Akio Takebe
Quoted 53 lines
Hi all,
I made the logging daemon of the Xen message.
This daemon outputs the messege to syslog if messages were found in the console ring by the polling every one second.Following is the usage, but usually no option is necessary. It will automatically be daemon.
usage: xenlogd [-h] [-k] [-r]
-h: print help
-k: kill alive logging daemon
-r: restart logging daemon after kill alive oneSigned-off-by Katsuhito Minai <[email protected]>Best regards,
Katsuhito MinaiQuoted 10 lines · On Tue, 23 May 2006 16:31:44 +0100 Mark Williamson…
Quoted 5 lines
short questin: I want to direct the oputput of xm dmesg in (near) realtime
to syslog.Is this possible?
dom0 Linux doesn't (currently) get any notifications that the xm dmesg output
has changed.Quoted 18 lines
You could write a daemon to poll xm dmesg and send changes to syslog... You
might like to consider having it clear the dmesg also, since it uses a fixed-size buffer and won't work once that is full.Cheers,
MarkSignature · 9 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list [email protected] http://lists.xensource.com/xen-usersQuoted 5 lines
-------------------------------text/plain-------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel