From: Mario A. P. <row...@gm...> - 2010-03-31 20:29:00
|
Buchan, The revision 164 do_devmon.c from the devmon svn was working good with 4.2.3 After upgrade to 4.3.0 beta2 the revision 6171 and 6222 ( from xymon svn) do not work. Even with the last branch 4.3.0 from the svn I'm having lot of core files and rrdctl. files? Do you know why the rrdctl files? But my question is what changes are really necessary at the revision 164 in order to work with 4.3.0 ? The diff is between 164(devmon) and 6222(svn xymon) : diff xymon-4.2.3/hobbitd/rrd/do_devmon.c diff/6222 4c4 < /* Copyright (C) 2004-2006 Henrik Storner <he...@hs...> */ --- > /* Copyright (C) 2004-2009 Henrik Storner <he...@hs...> */ 14c14 < int do_devmon_rrd(char *hostname, char *testname, char *msg, time_t tstamp) --- > int do_devmon_rrd(char *hostname, char *testname, char *classname, char *pagepaths, char *msg, time_t tstamp) 18c18 < static char *devmon_tpl = NULL; --- > static void *devmon_tpl = NULL; 68,69d67 < devmon_params[0] = "rrdcreate"; < devmon_params[1] = rrdfn; 74c72 < devmon_params[numds+2] = xstrdup(columns[numds]); --- > devmon_params[numds] = xstrdup(columns[numds]); 78,82c76 < devmon_params[numds+2] = rra1; < devmon_params[numds+3] = rra2; < devmon_params[numds+4] = rra3; < devmon_params[numds+5] = rra4; < devmon_params[numds+6] = NULL; --- > devmon_params[numds] = NULL; 115,116c109 < snprintf(rrdfn, sizeof(rrdfn)-1, "%s.%s.rrd", rrdbasename, ifname); < rrdfn[sizeof(rrdfn)-1] = '\0'; --- > setupfn2("%s.%s.rrd", rrdbasename, ifname); 118c111 < create_and_update_rrd(hostname, rrdfn, devmon_params, devmon_tpl); --- > create_and_update_rrd(hostname, testname, classname, pagepaths, devmon_params, devmon_tpl); 127a121 > Thanks in advance, Mario. On Wed, Mar 31, 2010 at 12:21 PM, Mario Andre Panza <row...@gm...>wrote: > HI Bunchan, How are ayou?! > > I'm still having problems with the revision 6222, do you have a new > revision? > > Thanks in advance, > > Mario. > > > #0 0x00cf8402 in __kernel_vsyscall () > > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 > #4 <signal handler called> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 > #6 0x0804e750 in do_devmon_rrd (hostname=0xb7f5e337 "b304-s10", > testname=0xb7f5e340 "if_load", > classname=0xb7f5e374 "imation/imation_network/Infrastructure_Devices", > pagepaths=0x80700be "", > msg=0xb7f5e3a3 "status b304-s10.if_load green Wed Mar 31 09:37:26 > 2010", tstamp=1270039405) at rrd/do_devmon.c:87 > #7 0x080598e4 in update_rrd (hostname=0xb7f5e337 "b304-s10", > testname=0xb7f5e340 "if_load", > msg=0xb7f5e3a3 "status b304-s10.if_load green Wed Mar 31 09:37:26 > 2010", tstamp=1270039405, sender=0xb7f5e328 "129.220.11.51", > ldef=0x857fd08, classname=0xb7f5e374 > "imation/imation_network/Infrastructure_Devices", pagepaths=0x80700be "") at > do_rrd.c:649 > #8 0x0804a420 in main (argc=2, argv=0xbfe26434) at hobbitd_rrd.c:349 > > [New process 5633] > #0 0x00bd6402 in __kernel_vsyscall () > (gdb) bt > #0 0x00bd6402 in __kernel_vsyscall () > > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 > #4 <signal handler called> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 > #6 0x0804e704 in do_devmon_rrd (hostname=0xb7ed434b "neuss-r1", > testname=0xb7ed4354 "if_load", > classname=0xb7ed4388 "imation/imation_network/Infrastructure_Devices", > pagepaths=0x80700be "", > msg=0xb7ed43b7 "status neuss-r1.if_load green Wed Mar 31 09:38:02 > 2010", tstamp=1270039405) at rrd/do_devmon.c:83 > #7 0x080598e4 in update_rrd (hostname=0xb7ed434b "neuss-r1", > testname=0xb7ed4354 "if_load", > msg=0xb7ed43b7 "status neuss-r1.if_load green Wed Mar 31 09:38:02 > 2010", tstamp=1270039405, sender=0xb7ed433c "129.220.11.51", > ldef=0x8fe97f8, classname=0xb7ed4388 > "imation/imation_network/Infrastructure_Devices", pagepaths=0x80700be "") at > do_rrd.c:649 > #8 0x0804a420 in main (argc=2, argv=0xbffe0854) at hobbitd_rrd.c:349 > > [New process 32473] > #0 0x00bee402 in __kernel_vsyscall () > (gdb) bt > #0 0x00bee402 in __kernel_vsyscall () > > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 > #4 <signal handler called> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 > #6 0x0804e750 in do_devmon_rrd (hostname=0xb7fb0e0a "b304-s2", > testname=0xb7fb0e12 "if_load", > classname=0xb7fb0e46 "imation/imation_network/Infrastructure_Devices", > pagepaths=0x80700be "", > msg=0xb7fb0e75 "status b304-s2.if_load green Wed Mar 31 08:22:07 2010", > tstamp=1270034884) at rrd/do_devmon.c:87 > #7 0x080598e4 in update_rrd (hostname=0xb7fb0e0a "b304-s2", > testname=0xb7fb0e12 "if_load", > msg=0xb7fb0e75 "status b304-s2.if_load green Wed Mar 31 08:22:07 2010", > tstamp=1270034884, sender=0xb7fb0dfb "129.220.11.51", > ldef=0x9635758, classname=0xb7fb0e46 > "imation/imation_network/Infrastructure_Devices", pagepaths=0x80700be "") at > do_rrd.c:649 > #8 0x0804a420 in main (argc=2, argv=0xbfb1c324) at hobbitd_rrd.c:349 > > > [New process 29610] > #0 0x00ddb402 in __kernel_vsyscall () > (gdb) bt > #0 0x00ddb402 in __kernel_vsyscall () > > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 > #4 <signal handler called> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 > #6 0x0804e704 in do_devmon_rrd (hostname=0xb7f18544 "b304-s4", > testname=0xb7f1854c "if_load", > classname=0xb7f18580 "imation/imation_network/Infrastructure_Devices", > pagepaths=0x80700be "", > msg=0xb7f185af "status b304-s4.if_load green Wed Mar 31 07:37:03 2010", > tstamp=1270032173) at rrd/do_devmon.c:83 > #7 0x080598e4 in update_rrd (hostname=0xb7f18544 "b304-s4", > testname=0xb7f1854c "if_load", > msg=0xb7f185af "status b304-s4.if_load green Wed Mar 31 07:37:03 2010", > tstamp=1270032173, sender=0xb7f18535 "129.220.11.51", > ldef=0x93c45c8, classname=0xb7f18580 > "imation/imation_network/Infrastructure_Devices", pagepaths=0x80700be "") at > do_rrd.c:649 > #8 0x0804a420 in main (argc=2, argv=0xbff54ef4) at hobbitd_rrd.c:349 > > #0 0x00aac402 in __kernel_vsyscall () > (gdb) bt > #0 0x00aac402 in __kernel_vsyscall () > > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 > #4 <signal handler called> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 > #6 0x0804e750 in do_devmon_rrd (hostname=0xb7ee3151 "b304-s3", > testname=0xb7ee3159 "if_load", > classname=0xb7ee318d "imation/imation_network/Infrastructure_Devices", > pagepaths=0x80700be "", > msg=0xb7ee31bc "status b304-s3.if_load green Wed Mar 31 05:51:59 2010", > tstamp=1270025883) at rrd/do_devmon.c:87 > #7 0x080598e4 in update_rrd (hostname=0xb7ee3151 "b304-s3", > testname=0xb7ee3159 "if_load", > msg=0xb7ee31bc "status b304-s3.if_load green Wed Mar 31 05:51:59 2010", > tstamp=1270025883, sender=0xb7ee3142 "129.220.11.51", > ldef=0x8b5fb40, classname=0xb7ee318d > "imation/imation_network/Infrastructure_Devices", pagepaths=0x80700be "") at > do_rrd.c:649 > #8 0x0804a420 in main (argc=2, argv=0xbfcfea64) at hobbitd_rrd.c:349 > > > > > > On Wed, Feb 10, 2010 at 7:34 AM, Buchan Milne <bg...@st...>wrote: > >> On Tuesday, 9 February 2010 19:41:19 mario andre wrote: >> > Hi Bunchan, >> > >> > I've got lot of core with rev 6222. >> > >> > -------------------- Core files with do_devmon.c from revision 6222 >> > >> > [root@isslu410 core_old]# gdb ../../bin/hobbitd_rrd core.6545 >> > GNU gdb Fedora (6.8-37.el5) >> > Copyright (C) 2008 Free Software Foundation, Inc. >> > License GPLv3+: GNU GPL version 3 or later >> > <http://gnu.org/licenses/gpl.html >> > >> > This is free software: you are free to change and redistribute it. >> > There is NO WARRANTY, to the extent permitted by law. Type "show >> copying" >> > and "show warranty" for details. >> > This GDB was configured as "i386-redhat-linux-gnu"... >> > Cannot access memory at address 0x524149 >> > (gdb) bt >> > #0 0x0086a402 in ?? () >> > #1 0x00513040 in ?? () >> > #2 0x0062eff4 in ?? () >> > #3 0xb7f636c0 in ?? () >> > #4 0xbf94c2c8 in ?? () >> > #5 0x00514a21 in ?? () >> > #6 0x00000006 in ?? () >> > #7 0xbf94c23c in ?? () >> > #8 0x00000000 in ?? () >> > >> >> This binary is stripped, so this backtrace is quite useless. It would help >> if >> you could try again with a non-stripped hobbitd_rrd with debugging >> enabled. >> >> >> > ----------------- COre files with original do_devmon.c from xymon 4.3.0 >> > beta2 >> > >> > (gdb) bt >> > #0 0x00fc7402 in __kernel_vsyscall () >> > #1 0x00513040 in raise () from /lib/i686/nosegneg/libc.so.6 >> > #2 0x00514a21 in abort () from /lib/i686/nosegneg/libc.so.6 >> > #3 0x08069eb3 in sigsegv_handler (signum=11) at sig.c:57 >> > #4 <signal handler called> >> > #5 0x0055a4c9 in strcat () from /lib/i686/nosegneg/libc.so.6 >> > #6 0x0804e704 in do_devmon_rrd (hostname=0xb7f0f6ab "Cisco_4507R_02", >> > testname=0xb7f0f6ba "if_load", >> > classname=0xb7f0f6ee "cosc/network/601_El_Camino_Real,cosc/temp", >> > pagepaths=0x80700be "", >> > msg=0xb7f0f718 "status Cisco_4507R_02.if_load green Wed Feb 3 >> 20:12:57 >> > 2010", tstamp=1265256364) at rrd/do_devmon.c:83 >> > #7 0x080598e4 in update_rrd (hostname=0xb7f0f6ab "Cisco_4507R_02", >> > testname=0xb7f0f6ba "if_load", >> > msg=0xb7f0f718 "status Cisco_4507R_02.if_load green Wed Feb 3 >> 20:12:57 >> > 2010", tstamp=1265256364, sender=0xb7f0f69b "172.29.186.131", >> > ldef=0x8f4cb08, classname=0xb7f0f6ee >> > "cosc/network/601_El_Camino_Real,cosc/temp", pagepaths=0x80700be "") at >> > do_rrd.c:649 >> > #8 0x0804a420 in main (argc=2, argv=0xbfc803a4) at hobbitd_rrd.c:349 >> > >> >> The first part (lines 93-96 according to the lines on the side) of hunk 4 >> (the >> "Line 79 Line 90" one) of this patch should have fixed this: >> >> >> http://hobbitmon.svn.sf.net/viewvc/hobbitmon/branches/4.3.0/hobbitd/rrd/do_devmon.c?r1=6171&r2=6222 >> >> This was forward-ported from the fixes for 4.2.x. I will try and test this >> myself the coming weekend. >> >> Regards, >> Buchan >> > > |