Hi Bernard,
what are your plans for 3.0.7? Any time now ? :-) If not, I would like to
commit a small patch to enable syslogging error mesages for "gmond". But it can
wait for 3.0.8.
diff -up ~/ganglia-3.0.6.200802141157/gmond/gmond.c gmond/
--- /home/ftt5aa7/ganglia-3.0.6.200802141157/gmond/gmond.c Thu Feb 14
20:58:58 2008
+++ gmond/gmond.c Mon Feb 25 13:26:43 2008
@@ -27,6 +27,7 @@
#include "dtd.h" /* the DTD definition for our XML */
#include "g25_config.h" /* for converting old file formats to new */
#include "daemon_init.h"
+#include <syslog.h>
/* When this gmond was started */
apr_time_t started;
@@ -191,6 +192,7 @@ process_configuration_file(void)
cleanup_threshold = cfg_getint( tmp, "cleanup_threshold");
}
+extern int daemon_proc; /* defined in error.c */
static void
daemonize_if_necessary( char *argv[] )
{
@@ -213,6 +215,8 @@ daemonize_if_necessary( char *argv[] )
if(!args_info.foreground_flag && should_daemonize && !debug_level)
{
apr_proc_detach(1);
+ openlog(argv[0],LOG_PID,LOG_DAEMON);
+ daemon_proc = 1;
}
}
Also for 3.0.8, I would like to drop in the trunk version of
libmetrics/linux/metrics.c. It [will soon] contain a fix for a nasty overflow
problem in some Braodcom NICs (BCM5708, bnx2 driver) that leads to spurious
petabyte spikes in the network metrics. The problem is fixed in later driver
releases, but is present in some popular "enterprise" distros like RHEL4. The
risk is minimal and I am running it for more than a week, but it is definitely
not for 3.0.7.
Cheers
Martin
------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www: http://www.knobisoft.de
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers