Operating System - Linux
1753873 Members
7495 Online
108809 Solutions
New Discussion юеВ

Re: ICE Linux mond crashes on nodes with multiple network interfaces

 
Peter_Vreman
Occasional Contributor

ICE Linux mond crashes on nodes with multiple network interfaces

The mond process crashes when a node has more than 8 networking interfaces.

The network data packet that mon needs to send will be >1024 requiring a realloc of memory. This realloc of memory command is broken in the liblinux_data library. I have fixed the code using the following patch.

--- linux_data_lib.c.old 2008-08-26 13:00:28.000000000 +0200
+++ linux_data_lib.c 2008-08-26 12:34:11.000000000 +0200
@@ -1275,7 +1275,7 @@
strlen(metric_footer);

if (out_length > BUF_SIZE)
- realloc(out_string, out_length * sizeof(char));
+ out_string= realloc(out_string, out_length * sizeof(char));

strncat(out_string, cpuuser, strlen(cpuuser));
strncat(out_string, cpunice, strlen(cpunice));
@@ -1958,7 +1958,7 @@
strlen(metric_header) + strlen(metric_footer);

if (out_length > BUF_SIZE)
- realloc(out_string, out_length * sizeof(char));
+ out_string= realloc(out_string, out_length * sizeof(char));

strncat(out_string, name, strlen(name));
strncat(out_string, rxbytes, strlen(rxbytes));


Regards,
Peter
5 REPLIES 5
Christopher Grandinetti
Frequent Advisor

Re: ICE Linux mond crashes on nodes with multiple network interfaces

Hello Peter,

Thank you for the detailed posting.

Unfortunately, this is a big week for vactions and many members of the team are out. I'm working on getting you a reply to your 2 postings.

Are you a licensed ICE-Linux user, or are you just using the trial version? Also, what version are you running; 2.00 or 2.00.01 (recently released)?

If you are a licensed user, I may need to request that you submit a formal support case for each of these issues; but I'll need a developer to review the postings first.

Regards,
-Chris
Peter_Vreman
Occasional Contributor

Re: ICE Linux mond crashes on nodes with multiple network interfaces

Christopher,

Thanks for the quick reply.

I'm using the 2.00.01 release that included the supermon-hp-2-0.43 src rpm.

At the moment it is a trail license to investigate the monitoring capabilities. Next month 100+ nodes arrive with official licenses.

Regards,
Peter
Christopher Grandinetti
Frequent Advisor

Re: ICE Linux mond crashes on nodes with multiple network interfaces

Hi Peter,

Thank you for your quick reply with the answers to my questions.

Since you don't have offically licensed nodes yet, you won't be able to submit a formal case, so we'll need to continue to use the forum; which is fine.

I will have someone on the team look into your posts as soon as possible; although it may take a few days due to vacations.

Reagrds,
-Chris
Christopher Grandinetti
Frequent Advisor

Re: ICE Linux mond crashes on nodes with multiple network interfaces

Hi Peter,

I wanted to let you know that the ICE-Linux development engineer who is responsible for this area of the product is currently looking into your posting and proposed fix.

I'll update this posting after he completes his investigation.

Regards,
-Chris
Christopher Grandinetti
Frequent Advisor

Re: ICE Linux mond crashes on nodes with multiple network interfaces

Hi Peter,

The developer has looked into this issue and would like to thank you for the posting and for your suggested fix. He will be using your fix along with additional code changes that we're identified during the investigation to create a complete fix for the reported issue.

This fix will be included in the next release of ICE-Linux; currently being planned as ICE-Linux v2.10, scheduled for release in January 2009.

Regards,
-Chris